easy_auth-twitter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 047d26a565231486e6a4b8199b205a8065003223
4
+ data.tar.gz: 9bc513d22105cb151f6d5f8ee70e5031434c4678
5
+ SHA512:
6
+ metadata.gz: 95cf3431fbcf1fa288efccb3a165572fba2191d6cf3ba918b9767b5f952ad1b081cf6b0b884c23c89d0c767ad04ba16c776c414acac8d4547a399ed4e6f788ad
7
+ data.tar.gz: 4b74dd21cee15c6419760a8e085bacf2604dbdbd1f7af4243590a8c2c23aaad254223df2049f9049ad5e8a6ae776d3abc2024eba3db384d519f2472be076f3ac
data/README.md CHANGED
@@ -14,13 +14,8 @@ In your Gemfile add the following:
14
14
  gem 'easy_auth-twitter'
15
15
  ```
16
16
 
17
- After running Bundler you'll need to install the migrations
18
-
19
- ```ruby
20
- rake easy_auth-twitter:install:migrations
21
- ```
22
-
23
- Then run your migrations.
17
+ Then follow the general installation instructions for
18
+ [EasyAuth](https://github.com/dockyard/easy_auth#installation)
24
19
 
25
20
  ## Authors ##
26
21
 
@@ -1,3 +1,3 @@
1
1
  class Identities::Oauth::Twitter < Identities::Oauth::Base
2
- extend EasyAuth::Models::Identities::Oauth::Twitter
2
+ include EasyAuth::Models::Identities::Oauth::Twitter
3
3
  end
@@ -1,15 +1,32 @@
1
+ require 'twitter'
2
+
1
3
  module EasyAuth::Models::Identities::Oauth::Twitter
2
- def authorize_path
3
- '/oauth/authenticate'
4
+ extend ActiveSupport::Concern
5
+
6
+ def client
7
+ @client ||= Twitter::REST::Client.new do |config|
8
+ config.consumer_key = EasyAuth.oauth[:twitter][:client_id]
9
+ config.consumer_secret = EasyAuth.oauth[:twitter][:secret]
10
+ config.access_token = self.token[:token]
11
+ config.access_token_secret = self.token[:secret]
12
+ end
4
13
  end
5
14
 
6
- private
15
+ module ClassMethods
16
+ def account_attributes_map
17
+ { :username => 'screen_name', :screen_name => 'screen_name' }
18
+ end
7
19
 
8
- def retrieve_username(token)
9
- token.params[:user_id]
10
- end
20
+ def authorize_path
21
+ '/oauth/authenticate'
22
+ end
23
+
24
+ def retrieve_uid(user_attributes)
25
+ user_attributes[:user_id]
26
+ end
11
27
 
12
- def site_url
13
- 'https://api.twitter.com'
28
+ def site_url
29
+ 'https://api.twitter.com'
30
+ end
14
31
  end
15
32
  end
@@ -1,9 +1,5 @@
1
1
  module EasyAuth::Twitter
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace EasyAuth::Twitter
4
-
5
- config.generators do |g|
6
- g.test_framework :rspec, :view_specs => false
7
- end
8
4
  end
9
5
  end
@@ -1,5 +1,5 @@
1
1
  module EasyAuth
2
2
  module Twitter
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_auth-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Cardarella
@@ -10,214 +9,146 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-11-05 00:00:00.000000000 Z
12
+ date: 2014-03-11 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: easy_auth-oauth
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
22
- version: 0.1.0
20
+ version: 0.2.0
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
30
- version: 0.1.0
27
+ version: 0.2.0
31
28
  - !ruby/object:Gem::Dependency
32
- name: sqlite3
29
+ name: twitter
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ~>
37
33
  - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :development
34
+ version: '5.8'
35
+ type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ~>
45
40
  - !ruby/object:Gem::Version
46
- version: '0'
41
+ version: '5.8'
47
42
  - !ruby/object:Gem::Dependency
48
- name: rspec-rails
43
+ name: sqlite3
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
- name: capybara
57
+ name: rspec-rails
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
- name: vcr
71
+ name: capybara
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - '>='
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - '>='
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
- name: fakeweb
85
+ name: vcr
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: poltergeist
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ! '>='
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ! '>='
125
- - !ruby/object:Gem::Version
126
- version: '0'
127
- - !ruby/object:Gem::Dependency
128
- name: capybara-email
129
- requirement: !ruby/object:Gem::Requirement
130
- none: false
131
101
  requirements:
132
- - - ! '>='
102
+ - - '>='
133
103
  - !ruby/object:Gem::Version
134
104
  version: '0'
135
105
  type: :development
136
106
  prerelease: false
137
107
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
108
  requirements:
140
- - - ! '>='
109
+ - - '>='
141
110
  - !ruby/object:Gem::Version
142
111
  version: '0'
143
112
  - !ruby/object:Gem::Dependency
144
113
  name: database_cleaner
145
114
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
115
  requirements:
148
- - - ! '>='
116
+ - - '>='
149
117
  - !ruby/object:Gem::Version
150
118
  version: '0'
151
119
  type: :development
152
120
  prerelease: false
153
121
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
122
  requirements:
156
- - - ! '>='
123
+ - - '>='
157
124
  - !ruby/object:Gem::Version
158
125
  version: '0'
159
126
  - !ruby/object:Gem::Dependency
160
- name: factory_girl_rails
161
- requirement: !ruby/object:Gem::Requirement
162
- none: false
163
- requirements:
164
- - - ~>
165
- - !ruby/object:Gem::Version
166
- version: 1.7.0
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
- requirements:
172
- - - ~>
173
- - !ruby/object:Gem::Version
174
- version: 1.7.0
175
- - !ruby/object:Gem::Dependency
176
- name: factory_girl
177
- requirement: !ruby/object:Gem::Requirement
178
- none: false
179
- requirements:
180
- - - ~>
181
- - !ruby/object:Gem::Version
182
- version: 2.6.0
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- none: false
187
- requirements:
188
- - - ~>
189
- - !ruby/object:Gem::Version
190
- version: 2.6.0
191
- - !ruby/object:Gem::Dependency
192
- name: bourne
127
+ name: launchy
193
128
  requirement: !ruby/object:Gem::Requirement
194
- none: false
195
129
  requirements:
196
- - - ! '>='
130
+ - - '>='
197
131
  - !ruby/object:Gem::Version
198
132
  version: '0'
199
133
  type: :development
200
134
  prerelease: false
201
135
  version_requirements: !ruby/object:Gem::Requirement
202
- none: false
203
136
  requirements:
204
- - - ! '>='
137
+ - - '>='
205
138
  - !ruby/object:Gem::Version
206
139
  version: '0'
207
140
  - !ruby/object:Gem::Dependency
208
- name: launchy
141
+ name: webmock
209
142
  requirement: !ruby/object:Gem::Requirement
210
- none: false
211
143
  requirements:
212
- - - ! '>='
144
+ - - '>='
213
145
  - !ruby/object:Gem::Version
214
146
  version: '0'
215
147
  type: :development
216
148
  prerelease: false
217
149
  version_requirements: !ruby/object:Gem::Requirement
218
- none: false
219
150
  requirements:
220
- - - ! '>='
151
+ - - '>='
221
152
  - !ruby/object:Gem::Version
222
153
  version: '0'
223
154
  description: EasyAuth-Twitter
@@ -239,32 +170,25 @@ files:
239
170
  - README.md
240
171
  homepage: https://twitter.com/dockyard/easy_auth-twitter
241
172
  licenses: []
173
+ metadata: {}
242
174
  post_install_message:
243
175
  rdoc_options: []
244
176
  require_paths:
245
177
  - lib
246
178
  required_ruby_version: !ruby/object:Gem::Requirement
247
- none: false
248
179
  requirements:
249
- - - ! '>='
180
+ - - '>='
250
181
  - !ruby/object:Gem::Version
251
182
  version: '0'
252
- segments:
253
- - 0
254
- hash: -1502536451726915442
255
183
  required_rubygems_version: !ruby/object:Gem::Requirement
256
- none: false
257
184
  requirements:
258
- - - ! '>='
185
+ - - '>='
259
186
  - !ruby/object:Gem::Version
260
187
  version: '0'
261
- segments:
262
- - 0
263
- hash: -1502536451726915442
264
188
  requirements: []
265
189
  rubyforge_project:
266
- rubygems_version: 1.8.23
190
+ rubygems_version: 2.0.3
267
191
  signing_key:
268
- specification_version: 3
192
+ specification_version: 4
269
193
  summary: EasyAuth-Twitter
270
194
  test_files: []