Sha256: 5972df4eb66ac5a3960ec5fd98f55110744973b9ffe129d0c967d4bc937f5121

Contents?: true

Size: 724 Bytes

Versions: 33

Compression:

Stored size: 724 Bytes

Contents

module Rugged
  class Tag < Rugged::Reference
    def name
      canonical_name.sub(%r{^refs/tags/}, "")
    end

    class Annotation
      def self.prettify_message(msg, strip_comments = true)
        Rugged::prettify_message(msg, strip_comments)
      end

      def inspect
        "#<Rugged::Tag::Annotation:#{object_id} {name: #{name.inspect}, message: #{message.inspect}, target: #{target.inspect}>"
      end

      def to_hash
        {
          :message => message,
          :name => name,
          :target => target,
          :tagger => tagger,
        }
      end

      def modify(new_args, force=True)
        args = self.to_hash.merge(new_args)
        Tag.create(args, force)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rugged-0.24.0b12 lib/rugged/tag.rb
rugged-0.24.0b11 lib/rugged/tag.rb
rugged-0.24.0b9 lib/rugged/tag.rb
rugged-0.24.0b8 lib/rugged/tag.rb
rugged-0.24.0b7 lib/rugged/tag.rb
rugged-0.24.0b6 lib/rugged/tag.rb
rugged-0.24.0b5 lib/rugged/tag.rb
rugged-0.24.0b4 lib/rugged/tag.rb
rugged-0.24.0b3 lib/rugged/tag.rb
rugged-0.24.0b2 lib/rugged/tag.rb
rugged-0.23.3 lib/rugged/tag.rb
rugged-0.24.0b0 lib/rugged/tag.rb
rugged-0.23.2 lib/rugged/tag.rb
rugged-0.23.1.6.g1346734.pre lib/rugged/tag.rb
rugged-0.23.1 lib/rugged/tag.rb
rugged-0.23.0 lib/rugged/tag.rb
rugged-0.23.0b4 lib/rugged/tag.rb
rugged-0.23.0b2 lib/rugged/tag.rb
rugged-0.22.2 lib/rugged/tag.rb
rugged-0.23.0b1 lib/rugged/tag.rb