Skip to content

Commit

Permalink
Updated dependencies and added webmock
Browse files Browse the repository at this point in the history
  • Loading branch information
LupineDev committed Feb 1, 2013
1 parent 5ccc3bb commit 0eb2390
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/microsoft_translator/azure_authentication.rb
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions microsoft_translator.gemspec
Expand Up @@ -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
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Expand Up @@ -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}

Expand Down

0 comments on commit 0eb2390

Please sign in to comment.