Permalink
Browse files

Updated dependencies and added webmock

  • Loading branch information...
1 parent 5ccc3bb commit 0eb2390d87660f55556101b74bdd57814eb39a43 LupineDev committed Feb 1, 2013
Showing with 7 additions and 5 deletions.
  1. +1 −1 lib/microsoft_translator/azure_authentication.rb
  2. +5 −4 microsoft_translator.gemspec
  3. +1 −0 spec/spec_helper.rb
@@ -15,7 +15,7 @@ def initialize(client_id, client_secret)
def current_token
if @token_expires_at < Time.now
- renew_token
+ self.renew_token
end
@token
end
@@ -14,8 +14,9 @@ Gem::Specification.new do |gem|
gem.name = "microsoft_translator"
gem.require_paths = ["lib"]
gem.version = MicrosoftTranslator::VERSION
- gem.add_runtime_dependency "rest-client", [">= 1.6.0"]
- gem.add_runtime_dependency "nokogiri", [">= 1.4.0"]
- gem.add_development_dependency "rspec", [">= 2.0.0"]
- gem.add_development_dependency "timecop", [">= 0.3.5"]
+ gem.add_runtime_dependency "rest-client", ["~> 1.6.0"]
+ gem.add_runtime_dependency "nokogiri", ["~> 1.5.6"]
+ gem.add_development_dependency "rspec", ["~> 2.12.0"]
+ gem.add_development_dependency "timecop", ["~> 0.3.5"]
+ gem.add_development_dependency "webmock", ["~> 1.9.0"]
end
View
@@ -3,6 +3,7 @@
require 'microsoft_translator'
require 'timecop'
+require 'webmock/rspec'
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

0 comments on commit 0eb2390

Please sign in to comment.