omniauth-twitter 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Twitter
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module OmniAuth
7
7
  option :name, 'twitter'
8
8
  option :client_options, {:authorize_path => '/oauth/authenticate',
9
9
  :site => 'https://api.twitter.com',
10
- :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
10
+ :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
11
11
 
12
12
  uid { access_token.params[:user_id] }
13
13
 
@@ -50,7 +50,7 @@ module OmniAuth
50
50
  options[:authorize_params].merge!(:force_login => 'true', :screen_name => screen_name)
51
51
  end
52
52
  if x_auth_access_type
53
- options[:request_params] || {}
53
+ options[:request_params] ||= {}
54
54
  options[:request_params].merge!(:x_auth_access_type => x_auth_access_type)
55
55
  end
56
56
 
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/arunagw/omniauth-twitter"
11
11
  s.summary = %q{OmniAuth strategy for Twitter}
12
12
  s.description = %q{OmniAuth strategy for Twitter}
13
+ s.license = "MIT"
13
14
 
14
15
  s.rubyforge_project = "omniauth-twitter"
15
16
 
@@ -18,4 +18,19 @@ describe OmniAuth::Strategies::Twitter do
18
18
  expect(subject.options.client_options.authorize_path).to eq('/oauth/authenticate')
19
19
  end
20
20
  end
21
+
22
+ describe 'request_phase' do
23
+ context 'no request params set and x_auth_access_type specified' do
24
+ before do
25
+ subject.options[:request_params] = nil
26
+ subject.stub(:session).and_return(
27
+ {'omniauth.params' => {'x_auth_access_type' => 'read'}})
28
+ subject.stub(:old_request_phase).and_return(:whatever)
29
+ end
30
+
31
+ it 'should not break' do
32
+ expect { subject.request_phase }.not_to raise_error
33
+ end
34
+ end
35
+ end
21
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -127,7 +127,8 @@ files:
127
127
  - spec/omniauth/strategies/twitter_spec.rb
128
128
  - spec/spec_helper.rb
129
129
  homepage: https://github.com/arunagw/omniauth-twitter
130
- licenses: []
130
+ licenses:
131
+ - MIT
131
132
  post_install_message:
132
133
  rdoc_options: []
133
134
  require_paths:
@@ -138,21 +139,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
139
  - - ! '>='
139
140
  - !ruby/object:Gem::Version
140
141
  version: '0'
141
- segments:
142
- - 0
143
- hash: -2549198419643775481
144
142
  required_rubygems_version: !ruby/object:Gem::Requirement
145
143
  none: false
146
144
  requirements:
147
145
  - - ! '>='
148
146
  - !ruby/object:Gem::Version
149
147
  version: '0'
150
- segments:
151
- - 0
152
- hash: -2549198419643775481
153
148
  requirements: []
154
149
  rubyforge_project: omniauth-twitter
155
- rubygems_version: 1.8.24
150
+ rubygems_version: 1.8.23
156
151
  signing_key:
157
152
  specification_version: 3
158
153
  summary: OmniAuth strategy for Twitter