Skip to content

Extract lib/onix/version.rb with only the version info #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions lib/onix.rb
Original file line number Diff line number Diff line change
@@ -7,14 +7,6 @@
require 'andand'

module ONIX
module Version #:nodoc:
Major = 0
Minor = 9
Tiny = 0

String = [Major, Minor, Tiny].join('.')
end

class Formatters
def self.decimal
lambda do |val|
3 changes: 3 additions & 0 deletions lib/onix/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ONIX
VERSION = "0.9.5"
end
4 changes: 3 additions & 1 deletion onix.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require File.expand_path('../lib/onix/version', __FILE__)

Gem::Specification.new do |s|
s.name = "onix"
s.version = "0.9.5"
s.version = ONIX::VERSION
s.summary = "A convient mapping between ruby objects and the ONIX XML specification"
s.description = "A convient mapping between ruby objects and the ONIX XML specification"
s.authors = ["James Healy"]