Permalink
Browse files

Update required gem versions, change URL in access token request so

certificate check does not fail, and change callback token to
oauth_verifier in order to be compliant with OAuth 1.0a.
  • Loading branch information...
1 parent 90cdb0b commit 762bbc2bc8d039932643a08b4bc4462c6f05cad7 @jstewart jstewart committed with Aug 12, 2009
Showing with 17 additions and 14 deletions.
  1. +7 −4 bin/yammer_create_oauth_yml.rb
  2. +2 −2 lib/yammer4r.rb
  3. +8 −8 yammer4r.gemspec
@@ -15,7 +15,7 @@
:outfile => 'oauth.yml'
}
-YAMMER_OAUTH = "https://yammer.com"
+YAMMER_OAUTH = "https://www.yammer.com"
ARGV.options do |o|
script_name = File.basename($0)
@@ -49,9 +49,12 @@
request_token = consumer.get_request_token
puts "Please visit the following URL in your browser to authorize your application, then enter the 4 character security code when done: #{request_token.authorize_url}"
-callback_token = gets
-response = consumer.token_request(consumer.http_method, (consumer.access_token_url? ? consumer.access_token_url : consumer.access_token_path),
- request_token, {}, :callback_token => callback_token.chomp)
+oauth_verifier = gets
+response = consumer.token_request(consumer.http_method,
+ (consumer.access_token_url? ? consumer.access_token_url : consumer.access_token_path),
+ request_token,
+ {},
+ :oauth_verifier => oauth_verifier.chomp)
access_token = OAuth::AccessToken.new(consumer,response[:oauth_token],response[:oauth_token_secret])
oauth_yml = <<-EOT
View
@@ -3,10 +3,10 @@
require('yaml')
require('open-uri')
-gem 'json', '>= 1.1.3'
+gem 'json', '>= 1.1.7'
require('json')
-gem 'oauth', '>=0.2.7'
+gem 'oauth', '>=0.3.5'
require('oauth')
$:.unshift(File.dirname(__FILE__))
View
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'yammer4r'
- s.version = '0.1.3'
- s.date = '2009-02-18'
+ s.version = '0.1.4'
+ s.date = '2009-08-12'
s.summary = "Yammer access for ruby"
s.description = "Yammer4R provides an object based API to query or update your Yammer account via pure Ruby. It hides the ugly HTTP/REST code from your code."
@@ -18,15 +18,15 @@ Gem::Specification.new do |s|
s.specification_version = 2
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<json>, [">= 1.1.3"])
- s.add_runtime_dependency(%q<oauth>, [">= 0.2.7"])
+ s.add_runtime_dependency(%q<json>, [">= 1.1.7"])
+ s.add_runtime_dependency(%q<oauth>, [">= 0.3.5"])
else
- s.add__dependency(%q<json>, [">= 1.1.3"])
- s.add__dependency(%q<oauth>, [">= 0.2.7"])
+ s.add__dependency(%q<json>, [">= 1.1.7"])
+ s.add__dependency(%q<oauth>, [">= 0.3.5"])
end
else
- s.add__dependency(%q<json>, [">= 1.1.3"])
- s.add__dependency(%q<oauth>, [">= 0.2.7"])
+ s.add__dependency(%q<json>, [">= 1.1.7"])
+ s.add__dependency(%q<oauth>, [">= 0.3.5"])
end
end

0 comments on commit 762bbc2

Please sign in to comment.