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
semantic_puppet-1.1.0 lib/semantic_puppet/dependency/source.rb
semantic_puppet-1.0.4 lib/semantic_puppet/dependency/source.rb
semantic_puppet-1.0.3 lib/semantic_puppet/dependency/source.rb
puppet-5.5.22 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.22-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.22-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.22-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.21 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.21-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.21-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.21-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.20 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.20-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.20-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.20-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.19 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.19-x86-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.19-x64-mingw32 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.19-universal-darwin lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb
puppet-5.5.18 lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb