Sha256: a301f175b82bb4e6b513a9d25d70d849990bd8f67bb99b1b41fdc8acc030b7ee

Contents?: true

Size: 614 Bytes

Versions: 7

Compression:

Stored size: 614 Bytes

Contents

module GemVersionCheck
  class Report

    def initialize(project_names, options = {})
      @project_names = project_names
      @options       = options
      @only          = options[:only] || []
      @except        = options[:except] || []
    end

    def generate
      @check_failed = false
      @project_names.inject([]) do |result, project_name|
        project = Project.new(project_name, only: @only, except: @except)
        project.report
        @check_failed = true if project.check_failed?
        result << project
      end
    end

    def check_failed?
      @check_failed
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gem_version_check-0.5.1 lib/gem_version_check/report.rb
gem_version_check-0.5.0 lib/gem_version_check/report.rb
gem_version_check-0.5.2 lib/gem_version_check/report.rb
gem_version_check-0.4.1 lib/gem_version_check/report.rb
gem_version_check-0.4.0 lib/gem_version_check/report.rb
gem_version_check-0.3.1 lib/gem_version_check/report.rb
gem_version_check-0.3.0 lib/gem_version_check/report.rb