Sha256: caa34cf8a359d9f13bb95f44c03125439a814c4e19b249b5d27675bdc9f5349f

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 Bytes

Contents

module Papers
  class Gem < DependencySpecification
    def pretty_hash
      {
        name: name_without_version,
        license: license,
        license_url: @license_url,
        project_url: @project_url
      }
    end

    def self.introspected
      Bundler.load.specs.map do |spec|
        # Bundler versions aren't controlled by the Gemfile
        if spec.name == 'bundler'
          spec.name
        elsif spec.licenses.include?(Papers.config.version_whitelisted_license)
          spec.name
        else
          "#{spec.name}-#{spec.version}"
        end
      end
    end

    def self.manifest_key
      "gems"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
papers-2.1.0 lib/papers/dependency_specification/gem.rb
papers-2.0.0 lib/papers/dependency_specification/gem.rb
papers-1.4.0 lib/papers/dependency_specification/gem.rb
papers-1.3.2 lib/papers/dependency_specification/gem.rb
papers-1.3.1 lib/papers/dependency_specification/gem.rb
papers-1.3.0 lib/papers/dependency_specification/gem.rb
papers-1.2.0 lib/papers/dependency_specification/gem.rb