Sha256: 409fee255467c57f19cc39936151cab05154ff64f331bdc0b1f26b86cf512576

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 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(@jtag.get_tagger_ident)
    end
    
    def name
      @name ||= @jtag.get_tag_name
    end

    def type
      @type ||= @jtag.get_type
    end
    
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rjgit-0.2.0 lib/tag.rb
rjgit-0.1.0 lib/tag.rb