Skip to content

Commit

Permalink
Porting to iron_core - version reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
iced committed Apr 27, 2012
1 parent c46b905 commit f25cb68
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/iron_mq/client.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,18 @@
require 'yaml'

require 'iron_core' require 'iron_core'


module IronMQ module IronMQ
# FIXME: read real version @@version = nil

def self.version def self.version
'2.0.0' if @@version.nil?
v = YAML.load(File.read(File.dirname(__FILE__) + '/../../VERSION.yml'))
$stderr.puts v.inspect
@@version = [v[:major].to_s, v[:minor].to_s, v[:patch].to_s].join('.')
end

@@version
end end


class Client < IronCore::Client class Client < IronCore::Client
Expand Down

0 comments on commit f25cb68

Please sign in to comment.