Sha256: 154c4e7c1d0305e67e02fb2e5336f57c6754716d5c3cd5e60b859a79350d93d0

Contents?: true

Size: 623 Bytes

Versions: 227

Compression:

Stored size: 623 Bytes

Contents

require 'semantic_puppet/dependency'

module SemanticPuppet
  module Dependency
    class Source
      def self.priority
        0
      end

      def priority
        self.class.priority
      end

      def create_release(name, version, dependencies = {})
        version = Version.parse(version) if version.is_a? String
        dependencies = dependencies.inject({}) do |hash, (key, value)|
          hash[key] = VersionRange.parse(value || '>= 0.0.0')
          hash[key] ||= VersionRange::EMPTY_RANGE
          hash
        end
        ModuleRelease.new(self, name, version, dependencies)
      end
    end
  end
end

Version data entries

227 entries across 227 versions & 4 rubygems

Version Path
puppet-5.5.18-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.18-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.18-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.17-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.17 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.17-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.17-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.16 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.16-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.16-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.16-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.14 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.14-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.14-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.14-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.13 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.13-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.13-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb