Skip to content

Commit

Permalink
Bump version to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 6, 2016
1 parent d681f72 commit a1bbeae
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end

require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.threshold = 47.3
verify.threshold = 48.8
end

task :default => [:spec, :rubocop, :verify_measurements]
44 changes: 43 additions & 1 deletion lib/multi_xml/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
module MultiXml
VERSION = '0.5.5'.freeze unless defined?(MultiXML::VERSION)
module Version
module_function

# @return [Integer]
def major
0
end

# @return [Integer]
def minor
6
end

# @return [Integer]
def patch
0
end

# @return [Integer, NilClass]
def pre
nil
end

# @return [Hash]
def to_h
{
:major => major,
:minor => minor,
:patch => patch,
:pre => pre,
}
end

# @return [Array]
def to_a
[major, minor, patch, pre].compact
end

# @return [String]
def to_s
to_a.join('.')
end
end
end
2 changes: 1 addition & 1 deletion multi_xml.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.required_rubygems_version = '>= 1.3.5'
spec.summary = 'A generic swappable back-end for XML parsing'
spec.version = MultiXml::VERSION
spec.version = MultiXml::Version
end

0 comments on commit a1bbeae

Please sign in to comment.