Sha256: 74ea34386c84107284329a0e167d431aa021e2534c49e3ee0b53cc7149a7ed71

Contents?: true

Size: 803 Bytes

Versions: 17

Compression:

Stored size: 803 Bytes

Contents

module RJGit
  
  import 'org.eclipse.jgit.revwalk' 
  import 'org.eclipse.jgit.revwalk.RevTag'
  
  class Tag

    attr_reader :id, :jtag
    RJGit.delegate_to(RevTag, :@jtag)
    
    def initialize(jtag)
      @jtag = jtag
      @id = ObjectId.to_string(jtag.get_id)
    end
    
    def full_message
      @full_message ||= @jtag.get_full_message
    end
    
    def short_message
      @short_message ||= @jtag.get_short_message
    end 
    
    def actor
      @actor ||= Actor.new_from_person_ident(@jtag.get_tagger_ident)
    end
    
    def name
      @name ||= @jtag.get_tag_name
    end

    def type
      @type ||= @jtag.get_type
    end
    
    def object
      @object ||= @jtag.get_object
    end
    
    def object_type
      @object_type ||= object.get_type
    end
    
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rjgit-4.1.1.0 lib/tag.rb
rjgit-4.1.0.0 lib/tag.rb
rjgit-4.0.3.0 lib/tag.rb
rjgit-4.0.1.0 lib/tag.rb
rjgit-0.3.12 lib/tag.rb
rjgit-0.3.11 lib/tag.rb
rjgit-0.3.10 lib/tag.rb
rjgit-0.3.9 lib/tag.rb
rjgit-0.3.8 lib/tag.rb
rjgit-0.3.7 lib/tag.rb
rjgit-0.3.6 lib/tag.rb
rjgit-0.3.5 lib/tag.rb
rjgit-0.3.4 lib/tag.rb
rjgit-0.3.3 lib/tag.rb
rjgit-0.3.2 lib/tag.rb
rjgit-0.3.1 lib/tag.rb
rjgit-0.3.0 lib/tag.rb