Sha256: 06a9450999bc903146661fbeee9dd407ae815061897dc0775f2deacc586ee277

Contents?: true

Size: 835 Bytes

Versions: 43

Compression:

Stored size: 835 Bytes

Contents

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

    attr_reader :id, :jtag
    alias_method :get_name, :id
    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

43 entries across 43 versions & 1 rubygems

Version Path
rjgit-6.8.0.0 lib/tag.rb
rjgit-6.7.0.0 lib/tag.rb
rjgit-6.6.0.0 lib/tag.rb
rjgit-6.5.0.0 lib/tag.rb
rjgit-6.4.0.1 lib/tag.rb
rjgit-6.4.0.0 lib/tag.rb
rjgit-6.2.0.0 lib/tag.rb
rjgit-6.1.0.0 lib/tag.rb
rjgit-5.13.0.0 lib/tag.rb
rjgit-5.12.0.0 lib/tag.rb
rjgit-5.10.0.0 lib/tag.rb
rjgit-5.9.0.1 lib/tag.rb
rjgit-5.9.0.0 lib/tag.rb
rjgit-5.8.1.0 lib/tag.rb
rjgit-5.7.0.2 lib/tag.rb
rjgit-5.7.0.1 lib/tag.rb
rjgit-5.7.0.0 lib/tag.rb
rjgit-5.6.1.0 lib/tag.rb
rjgit-5.6.0.0 lib/tag.rb
rjgit-5.5.1.0 lib/tag.rb