Sha256: 79a6719f234916664472cf881de3bb9b468aaf09217038b04837338438fc89d5

Contents?: true

Size: 326 Bytes

Versions: 2

Compression:

Stored size: 326 Bytes

Contents

module Space
  module Models
    class Repo
      class Dependency
        attr_reader :repo, :ref

        def initialize(repo, ref)
          @repo = repo
          @ref = ref
        end

        def name
          repo.name
        end

        def fresh?
          repo.ref == ref
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space-0.0.5 lib/space/models/repo/dependency.rb
space-0.0.4 lib/space/models/repo/dependency.rb