Skip to content

Commit

Permalink
Bump version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Aug 13, 2015
1 parent a14d415 commit 7acfa5d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion congress.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 1.9.3'
spec.summary = 'Ruby wrapper for the Sunlight Congress API'
spec.version = Congress::VERSION
spec.version = Congress::Version
end
44 changes: 43 additions & 1 deletion lib/congress/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
module Congress
VERSION = '0.2.5'
module Version
module_function

# @return [Integer]
def major
0
end

# @return [Integer]
def minor
3
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
to_h.values.compact
end

# @return [String]
def to_s
to_a.join('.')
end
end
end

0 comments on commit 7acfa5d

Please sign in to comment.