Browse files

version is in gemspec

  • Loading branch information...
1 parent 86af0d0 commit 6f961f7ea18bd4494b9edd1dbff9ad3c8c0f6ba4 @grosser committed Jun 22, 2013
Showing with 9 additions and 8 deletions.
  1. +0 −1 VERSION
  2. +2 −3 lib/rpx_now.rb
  3. +3 −0 lib/rpx_now/version.rb
  4. +3 −1 rpx_now.gemspec
  5. +1 −3 spec/spec_helper.rb
View
1 VERSION
@@ -1 +0,0 @@
-0.6.24
View
5 lib/rpx_now.rb
@@ -1,3 +1,4 @@
+require 'rpx_now/version'
require 'rpx_now/api'
require 'rpx_now/contacts_collection'
require 'cgi'
@@ -12,8 +13,6 @@ module RPXNow
self.api_version = 2
self.domain = 'rpxnow.com'
- VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
-
# retrieve the users data
# - cleaned Hash
# - complete/unclean response when block was given user_data{|response| ...; return hash }
@@ -203,4 +202,4 @@ def with_indifferent_access(hash)
class ServerError < RuntimeError; end #backwards compatibility / catch all
class ApiError < ServerError; end
class ServiceUnavailableError < ServerError; end
-end
+end
View
3 lib/rpx_now/version.rb
@@ -0,0 +1,3 @@
+module RPXNow
+ VERSION = "0.6.24"
+end
View
4 rpx_now.gemspec
@@ -1,6 +1,8 @@
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
name = "rpx_now"
+require "#{name}/version"
-Gem::Specification.new name, "0.6.24" do |s|
+Gem::Specification.new name, RPXNow::VERSION do |s|
s.authors = ["Michael Grosser"]
s.email = %q{grosser.michael@gmail.com}
s.homepage = "https://github.com/grosser/#{name}"
View
4 spec/spec_helper.rb
@@ -1,7 +1,5 @@
-$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
-
# ---- setup environment/plugin
-require File.expand_path("../init", File.dirname(__FILE__))
+require 'rpx_now'
API_KEY = '4b339169026742245b754fa338b9b0aebbd0a733'
API_VERSION = RPXNow.api_version
DOMAIN = RPXNow.domain

0 comments on commit 6f961f7

Please sign in to comment.