stormpath-rails 1.0.0.beta.2 → 1.1.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -19
- data/.rspec +0 -1
- data/.travis.yml +4 -23
- data/Gemfile +18 -0
- data/README.md +163 -73
- data/Rakefile +18 -3
- data/app/assets/stylesheets/stormpath.css.scss +283 -0
- data/app/controllers/stormpath/rails/base_controller.rb +10 -0
- data/app/controllers/stormpath/rails/omniauth_controller.rb +11 -0
- data/app/controllers/stormpath/rails/passwords_controller.rb +56 -0
- data/app/controllers/stormpath/rails/sessions_controller.rb +52 -0
- data/app/controllers/stormpath/rails/users_controller.rb +65 -0
- data/app/helpers/social_helper.rb +13 -0
- data/app/views/layouts/stormpath.html.erb +31 -0
- data/app/views/passwords/edit.html.erb +0 -0
- data/app/views/passwords/email_sent.html.erb +15 -0
- data/app/views/passwords/forgot.html.erb +33 -0
- data/app/views/passwords/forgot_change.html.erb +38 -0
- data/app/views/passwords/forgot_change_failed.html.erb +14 -0
- data/app/views/passwords/forgot_complete.html.erb +19 -0
- data/app/views/sessions/_facebook_login_form.erb +31 -0
- data/app/views/sessions/_form.html.erb +31 -0
- data/app/views/sessions/_google_login_form.html.erb +3 -0
- data/app/views/sessions/_social_auth.html.erb +7 -0
- data/app/views/sessions/new.html.erb +21 -0
- data/app/views/users/_form.html.erb +43 -0
- data/app/views/users/new.html.erb +10 -0
- data/app/views/users/verification_complete.html.erb +20 -0
- data/app/views/users/verification_email_sent.html.erb +15 -0
- data/app/views/users/verification_failed.html.erb +14 -0
- data/app/views/users/verification_resend.html.erb +14 -0
- data/bin/console +14 -0
- data/bin/rails +12 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/setup +8 -0
- data/config/initializers/assets.rb +1 -0
- data/config/routes.rb +16 -0
- data/lib/generators/stormpath/install/install_generator.rb +114 -0
- data/lib/generators/stormpath/install/templates/db/migrate/add_stormpath_to_users.rb +21 -0
- data/lib/generators/stormpath/install/templates/db/migrate/create_users.rb +12 -0
- data/lib/generators/stormpath/install/templates/stormpath.rb +4 -0
- data/lib/generators/stormpath/install/templates/user.rb +3 -0
- data/lib/generators/stormpath/routes/routes_generator.rb +23 -0
- data/lib/generators/stormpath/routes/templates/routes.rb +5 -0
- data/lib/generators/stormpath/views/USAGE +11 -0
- data/lib/generators/stormpath/views/views_generator.rb +29 -0
- data/lib/stormpath/rails/account.rb +2 -116
- data/lib/stormpath/rails/account_status.rb +28 -0
- data/lib/stormpath/rails/authentication.rb +72 -0
- data/lib/stormpath/rails/authentication_status.rb +22 -0
- data/lib/stormpath/rails/client.rb +73 -60
- data/lib/stormpath/rails/configuration.rb +56 -0
- data/lib/stormpath/rails/controller.rb +13 -0
- data/lib/stormpath/rails/engine.rb +6 -0
- data/lib/stormpath/rails/session.rb +37 -0
- data/lib/stormpath/rails/social.rb +34 -0
- data/lib/stormpath/rails/user.rb +25 -0
- data/lib/stormpath/rails/user_config/api_key.rb +17 -0
- data/lib/stormpath/rails/user_config/application.rb +12 -0
- data/lib/stormpath/rails/user_config/facebook.rb +16 -0
- data/lib/stormpath/rails/user_config/forgot_password.rb +12 -0
- data/lib/stormpath/rails/user_config/google.rb +16 -0
- data/lib/stormpath/rails/user_config/id_site.rb +13 -0
- data/lib/stormpath/rails/user_config/login.rb +13 -0
- data/lib/stormpath/rails/user_config/logout.rb +13 -0
- data/lib/stormpath/rails/user_config/register.rb +13 -0
- data/lib/stormpath/rails/user_config/verify_email.rb +14 -0
- data/lib/stormpath/rails/version.rb +1 -2
- data/lib/stormpath/rails.rb +32 -0
- data/lib/stormpath/testing/helpers.rb +49 -0
- data/lib/stormpath-rails.rb +6 -1
- data/stormpath-rails.gemspec +22 -28
- metadata +97 -256
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/CHANGES.md +0 -19
- data/Guardfile +0 -23
- data/LICENSE.txt +0 -22
- data/lib/generators/stormpath/rails/migration/migration_generator.rb +0 -17
- data/lib/generators/stormpath/rails/templates/update_account_model.rb +0 -10
- data/lib/stormpath/rails/railtie.rb +0 -13
- data/spec/client_spec.rb +0 -222
- data/spec/generators/migration_generator_spec.rb +0 -19
- data/spec/integration/active_record_spec.rb +0 -23
- data/spec/integration/mongoid_spec.rb +0 -19
- data/spec/spec_helper.rb +0 -96
- data/spec/support/stormpath_account_shared_examples.rb +0 -212
metadata
CHANGED
@@ -1,332 +1,173 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stormpath-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease: 6
|
4
|
+
version: 1.1.0.beta
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
7
|
+
- Nenad Nikolic
|
9
8
|
autorequire:
|
10
|
-
bindir:
|
9
|
+
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: activesupport
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
13
|
- !ruby/object:Gem::Dependency
|
31
14
|
name: stormpath-sdk
|
32
15
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
16
|
requirements:
|
35
|
-
- -
|
17
|
+
- - ">="
|
36
18
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.0.0.beta.
|
19
|
+
version: 1.0.0.beta.8
|
38
20
|
type: :runtime
|
39
21
|
prerelease: false
|
40
22
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - '='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0.0.beta.2
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rails
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 3.2.13
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 3.2.13
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 10.0.2
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 10.0.2
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: rspec
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ~>
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 2.12.0
|
86
|
-
type: :development
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 2.12.0
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: generator_spec
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: activerecord
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: sqlite3
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
134
|
-
type: :development
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
23
|
requirements:
|
139
|
-
- -
|
24
|
+
- - ">="
|
140
25
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: mongoid
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
26
|
+
version: 1.0.0.beta.8
|
158
27
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
28
|
+
name: virtus
|
160
29
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
30
|
requirements:
|
163
|
-
- -
|
31
|
+
- - ">="
|
164
32
|
- !ruby/object:Gem::Version
|
165
33
|
version: '0'
|
166
|
-
type: :
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: guard-rspec
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
|
-
requirements:
|
179
|
-
- - ~>
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: 2.2.1
|
182
|
-
type: :development
|
183
|
-
prerelease: false
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ~>
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 2.2.1
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
name: simplecov
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
|
-
requirements:
|
195
|
-
- - ~>
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: 0.7.1
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
|
-
requirements:
|
203
|
-
- - ~>
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: 0.7.1
|
206
|
-
- !ruby/object:Gem::Dependency
|
207
|
-
name: webmock
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
|
-
requirements:
|
211
|
-
- - ! '>='
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
version: '0'
|
214
|
-
type: :development
|
215
|
-
prerelease: false
|
216
|
-
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
|
-
requirements:
|
219
|
-
- - ! '>='
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: '0'
|
222
|
-
- !ruby/object:Gem::Dependency
|
223
|
-
name: vcr
|
224
|
-
requirement: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
|
-
requirements:
|
227
|
-
- - ! '>='
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
230
|
-
type: :development
|
34
|
+
type: :runtime
|
231
35
|
prerelease: false
|
232
36
|
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
37
|
requirements:
|
235
|
-
- -
|
38
|
+
- - ">="
|
236
39
|
- !ruby/object:Gem::Version
|
237
40
|
version: '0'
|
238
41
|
- !ruby/object:Gem::Dependency
|
239
|
-
name:
|
42
|
+
name: rails
|
240
43
|
requirement: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
44
|
requirements:
|
243
|
-
- -
|
45
|
+
- - ">="
|
244
46
|
- !ruby/object:Gem::Version
|
245
|
-
version: '
|
246
|
-
type: :
|
47
|
+
version: '3.1'
|
48
|
+
type: :runtime
|
247
49
|
prerelease: false
|
248
50
|
version_requirements: !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
51
|
requirements:
|
251
|
-
- -
|
52
|
+
- - ">="
|
252
53
|
- !ruby/object:Gem::Version
|
253
|
-
version: '
|
54
|
+
version: '3.1'
|
254
55
|
- !ruby/object:Gem::Dependency
|
255
|
-
name:
|
56
|
+
name: rake
|
256
57
|
requirement: !ruby/object:Gem::Requirement
|
257
|
-
none: false
|
258
58
|
requirements:
|
259
|
-
- -
|
59
|
+
- - "~>"
|
260
60
|
- !ruby/object:Gem::Version
|
261
|
-
version: '0'
|
61
|
+
version: '10.0'
|
262
62
|
type: :development
|
263
63
|
prerelease: false
|
264
64
|
version_requirements: !ruby/object:Gem::Requirement
|
265
|
-
none: false
|
266
65
|
requirements:
|
267
|
-
- -
|
66
|
+
- - "~>"
|
268
67
|
- !ruby/object:Gem::Version
|
269
|
-
version: '0'
|
68
|
+
version: '10.0'
|
270
69
|
description: Stormpath Rails integration
|
271
70
|
email:
|
272
|
-
-
|
71
|
+
- nenad.nikolic@infinum.hr
|
273
72
|
executables: []
|
274
73
|
extensions: []
|
275
74
|
extra_rdoc_files: []
|
276
75
|
files:
|
277
|
-
- .gitignore
|
278
|
-
- .rspec
|
279
|
-
- .
|
280
|
-
- .ruby-version
|
281
|
-
- .travis.yml
|
282
|
-
- CHANGES.md
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
283
79
|
- Gemfile
|
284
|
-
- Guardfile
|
285
|
-
- LICENSE.txt
|
286
80
|
- README.md
|
287
81
|
- Rakefile
|
288
|
-
-
|
289
|
-
-
|
82
|
+
- app/assets/stylesheets/stormpath.css.scss
|
83
|
+
- app/controllers/stormpath/rails/base_controller.rb
|
84
|
+
- app/controllers/stormpath/rails/omniauth_controller.rb
|
85
|
+
- app/controllers/stormpath/rails/passwords_controller.rb
|
86
|
+
- app/controllers/stormpath/rails/sessions_controller.rb
|
87
|
+
- app/controllers/stormpath/rails/users_controller.rb
|
88
|
+
- app/helpers/social_helper.rb
|
89
|
+
- app/views/layouts/stormpath.html.erb
|
90
|
+
- app/views/passwords/edit.html.erb
|
91
|
+
- app/views/passwords/email_sent.html.erb
|
92
|
+
- app/views/passwords/forgot.html.erb
|
93
|
+
- app/views/passwords/forgot_change.html.erb
|
94
|
+
- app/views/passwords/forgot_change_failed.html.erb
|
95
|
+
- app/views/passwords/forgot_complete.html.erb
|
96
|
+
- app/views/sessions/_facebook_login_form.erb
|
97
|
+
- app/views/sessions/_form.html.erb
|
98
|
+
- app/views/sessions/_google_login_form.html.erb
|
99
|
+
- app/views/sessions/_social_auth.html.erb
|
100
|
+
- app/views/sessions/new.html.erb
|
101
|
+
- app/views/users/_form.html.erb
|
102
|
+
- app/views/users/new.html.erb
|
103
|
+
- app/views/users/verification_complete.html.erb
|
104
|
+
- app/views/users/verification_email_sent.html.erb
|
105
|
+
- app/views/users/verification_failed.html.erb
|
106
|
+
- app/views/users/verification_resend.html.erb
|
107
|
+
- bin/console
|
108
|
+
- bin/rails
|
109
|
+
- bin/rake
|
110
|
+
- bin/rspec
|
111
|
+
- bin/setup
|
112
|
+
- config/initializers/assets.rb
|
113
|
+
- config/routes.rb
|
114
|
+
- lib/generators/stormpath/install/install_generator.rb
|
115
|
+
- lib/generators/stormpath/install/templates/db/migrate/add_stormpath_to_users.rb
|
116
|
+
- lib/generators/stormpath/install/templates/db/migrate/create_users.rb
|
117
|
+
- lib/generators/stormpath/install/templates/stormpath.rb
|
118
|
+
- lib/generators/stormpath/install/templates/user.rb
|
119
|
+
- lib/generators/stormpath/routes/routes_generator.rb
|
120
|
+
- lib/generators/stormpath/routes/templates/routes.rb
|
121
|
+
- lib/generators/stormpath/views/USAGE
|
122
|
+
- lib/generators/stormpath/views/views_generator.rb
|
290
123
|
- lib/stormpath-rails.rb
|
124
|
+
- lib/stormpath/rails.rb
|
291
125
|
- lib/stormpath/rails/account.rb
|
126
|
+
- lib/stormpath/rails/account_status.rb
|
127
|
+
- lib/stormpath/rails/authentication.rb
|
128
|
+
- lib/stormpath/rails/authentication_status.rb
|
292
129
|
- lib/stormpath/rails/client.rb
|
293
|
-
- lib/stormpath/rails/
|
130
|
+
- lib/stormpath/rails/configuration.rb
|
131
|
+
- lib/stormpath/rails/controller.rb
|
132
|
+
- lib/stormpath/rails/engine.rb
|
133
|
+
- lib/stormpath/rails/session.rb
|
134
|
+
- lib/stormpath/rails/social.rb
|
135
|
+
- lib/stormpath/rails/user.rb
|
136
|
+
- lib/stormpath/rails/user_config/api_key.rb
|
137
|
+
- lib/stormpath/rails/user_config/application.rb
|
138
|
+
- lib/stormpath/rails/user_config/facebook.rb
|
139
|
+
- lib/stormpath/rails/user_config/forgot_password.rb
|
140
|
+
- lib/stormpath/rails/user_config/google.rb
|
141
|
+
- lib/stormpath/rails/user_config/id_site.rb
|
142
|
+
- lib/stormpath/rails/user_config/login.rb
|
143
|
+
- lib/stormpath/rails/user_config/logout.rb
|
144
|
+
- lib/stormpath/rails/user_config/register.rb
|
145
|
+
- lib/stormpath/rails/user_config/verify_email.rb
|
294
146
|
- lib/stormpath/rails/version.rb
|
295
|
-
-
|
296
|
-
- spec/generators/migration_generator_spec.rb
|
297
|
-
- spec/integration/active_record_spec.rb
|
298
|
-
- spec/integration/mongoid_spec.rb
|
299
|
-
- spec/spec_helper.rb
|
300
|
-
- spec/support/stormpath_account_shared_examples.rb
|
147
|
+
- lib/stormpath/testing/helpers.rb
|
301
148
|
- stormpath-rails.gemspec
|
302
149
|
homepage: http://www.stormpath.com
|
303
150
|
licenses: []
|
151
|
+
metadata: {}
|
304
152
|
post_install_message:
|
305
153
|
rdoc_options: []
|
306
154
|
require_paths:
|
307
155
|
- lib
|
308
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
309
|
-
none: false
|
310
157
|
requirements:
|
311
|
-
- -
|
158
|
+
- - ">="
|
312
159
|
- !ruby/object:Gem::Version
|
313
160
|
version: '0'
|
314
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
|
-
none: false
|
316
162
|
requirements:
|
317
|
-
- -
|
163
|
+
- - ">"
|
318
164
|
- !ruby/object:Gem::Version
|
319
165
|
version: 1.3.1
|
320
166
|
requirements: []
|
321
167
|
rubyforge_project:
|
322
|
-
rubygems_version:
|
168
|
+
rubygems_version: 2.4.6
|
323
169
|
signing_key:
|
324
|
-
specification_version:
|
325
|
-
summary: Stormpath
|
326
|
-
test_files:
|
327
|
-
|
328
|
-
- spec/generators/migration_generator_spec.rb
|
329
|
-
- spec/integration/active_record_spec.rb
|
330
|
-
- spec/integration/mongoid_spec.rb
|
331
|
-
- spec/spec_helper.rb
|
332
|
-
- spec/support/stormpath_account_shared_examples.rb
|
170
|
+
specification_version: 4
|
171
|
+
summary: Stormpath Rails integration
|
172
|
+
test_files: []
|
173
|
+
has_rdoc:
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
stormpath-rails
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.9.3-p429
|
data/CHANGES.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
stormpath-rails Changelog
|
2
|
-
=========================
|
3
|
-
|
4
|
-
Version 1.0.0.beta.2
|
5
|
-
------------------
|
6
|
-
|
7
|
-
Released on August 13, 2013
|
8
|
-
|
9
|
-
- Changed the version of the stormpath-sdk dependency.
|
10
|
-
|
11
|
-
|
12
|
-
Version 1.0.0.beta
|
13
|
-
------------------
|
14
|
-
|
15
|
-
Released on June 12, 2013
|
16
|
-
|
17
|
-
- Removed YML-generator in favor of reading APPLICATION_URL from ENV
|
18
|
-
- Allow flexible configuration of API key information (same as SDK client)
|
19
|
-
- Using new SDK (1.0.0.beta) API
|
data/Guardfile
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
guard 'rspec' do
|
5
|
-
watch(%r{^spec/.+_spec\.rb$})
|
6
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
7
|
-
watch('spec/spec_helper.rb') { "spec" }
|
8
|
-
|
9
|
-
# Rails example
|
10
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
11
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
12
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
13
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
14
|
-
watch('config/routes.rb') { "spec/routing" }
|
15
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
16
|
-
|
17
|
-
# Capybara features specs
|
18
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
19
|
-
|
20
|
-
# Turnip features and steps
|
21
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
22
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
23
|
-
end
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 Denis Grankin
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require "active_support/core_ext/string/inflections"
|
2
|
-
|
3
|
-
module Stormpath
|
4
|
-
module Rails
|
5
|
-
module Generators
|
6
|
-
class MigrationGenerator < ::Rails::Generators::Base
|
7
|
-
argument :model_name, type: :string, default: "user", banner: "Account model name"
|
8
|
-
source_root File.expand_path('../../templates', __FILE__)
|
9
|
-
|
10
|
-
def create_migration_file
|
11
|
-
template "update_account_model.rb",
|
12
|
-
"db/migrate/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}_add_stormpath_url_to_#{model_name.pluralize}.rb"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class AddStormpathUrlTo<%= model_name.pluralize.camelize %> < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
add_column :<%= model_name.pluralize %>, :stormpath_url, :string
|
4
|
-
add_index :<%= model_name.pluralize %>, :stormpath_url
|
5
|
-
end
|
6
|
-
|
7
|
-
def down
|
8
|
-
remove_column :<%= model_name.pluralize %>, :stormpath_url
|
9
|
-
end
|
10
|
-
end
|