Sha256: afd539784dff4c54f1081ddc2bf38383e461cd4e6cb39dd3902ace4a661c79f4

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

require 'prospectus'
require 'pkgforge'

module ProspectusPkgforge
  ##
  # Helper for automatically adding pkgforge deps
  module DepItems
    def self.extended(other) # rubocop:disable Metrics/MethodLength
      other.deps do
        PkgForge.load_from_file.deps.each do |dep_name, current_hash|
          current_version = current_hash[:version]
          item do
            name dep_name

            expected do
              github_release
              repo "amylum/#{dep_name}"
            end

            actual do
              static
              set current_version
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prospectus_pkgforge-0.0.5 lib/prospectus_pkgforge.rb
prospectus_pkgforge-0.0.4 lib/prospectus_pkgforge.rb
prospectus_pkgforge-0.0.3 lib/prospectus_pkgforge.rb
prospectus_pkgforge-0.0.2 lib/prospectus_pkgforge.rb
prospectus_pkgforge-0.0.1 lib/prospectus_pkgforge.rb