Sha256: 712be425d80587f9885cabc9e3bc0f80c3d39a2e20f94d4344b588d4b210ff6a

Contents?: true

Size: 540 Bytes

Versions: 11

Compression:

Stored size: 540 Bytes

Contents

module Vim
  module Flavor
    class PlainVersion < Gem::Version
      attr_accessor :original_tag_name

      def initialize(tag_name)
        @original_tag_name = tag_name
        super(self.class.normalize_tag_name(tag_name))
      end

      def self.normalize_tag_name(tag_name)
        tag_name.to_s.sub(/^v/, '')
      end

      def self.correct?(tag_name)
        super(normalize_tag_name(tag_name))
      end

      def to_s()
        @original_tag_name
      end

      def to_revision()
        to_s
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vim-flavor-4.0.3 lib/vim-flavor/plainversion.rb
vim-flavor-4.0.2 lib/vim-flavor/plainversion.rb
vim-flavor-4.0.1 lib/vim-flavor/plainversion.rb
vim-flavor-4.0.0 lib/vim-flavor/plainversion.rb
vim-flavor-3.0.0 lib/vim-flavor/plainversion.rb
vim-flavor-2.2.2 lib/vim-flavor/plainversion.rb
vim-flavor-2.2.1 lib/vim-flavor/plainversion.rb
vim-flavor-2.2.0 lib/vim-flavor/plainversion.rb
vim-flavor-2.1.1 lib/vim-flavor/plainversion.rb
vim-flavor-2.1.0 lib/vim-flavor/plainversion.rb
vim-flavor-2.0.0 lib/vim-flavor/plainversion.rb