current_user 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/README.md +7 -3
  2. data/lib/current_user/version.rb +1 -1
  3. data/test/dummy/Gemfile +29 -0
  4. data/test/dummy/README.rdoc +15 -248
  5. data/test/dummy/Rakefile +0 -1
  6. data/test/dummy/app/assets/javascripts/application.js +3 -3
  7. data/test/dummy/app/controllers/application_controller.rb +3 -1
  8. data/test/dummy/app/models/user.rb +0 -1
  9. data/test/dummy/app/views/layouts/application.html.erb +2 -2
  10. data/test/dummy/bin/bundle +3 -0
  11. data/test/dummy/bin/rails +4 -0
  12. data/test/dummy/bin/rake +4 -0
  13. data/test/dummy/config.ru +1 -1
  14. data/test/dummy/config/application.rb +7 -39
  15. data/test/dummy/config/boot.rb +3 -9
  16. data/test/dummy/config/environment.rb +2 -2
  17. data/test/dummy/config/environments/development.rb +8 -20
  18. data/test/dummy/config/environments/production.rb +31 -33
  19. data/test/dummy/config/environments/test.rb +13 -14
  20. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  21. data/test/dummy/config/initializers/inflections.rb +6 -5
  22. data/test/dummy/config/initializers/secret_token.rb +7 -2
  23. data/test/dummy/config/initializers/session_store.rb +0 -5
  24. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  25. data/test/dummy/config/locales/en.yml +20 -2
  26. data/test/dummy/config/routes.rb +1 -1
  27. data/test/dummy/db/seeds.rb +7 -0
  28. data/test/dummy/db/test.sqlite3 +0 -0
  29. data/test/dummy/log/test.log +1793 -15763
  30. data/test/dummy/public/404.html +43 -11
  31. data/test/dummy/public/422.html +43 -11
  32. data/test/dummy/public/500.html +43 -11
  33. data/test/dummy/public/robots.txt +5 -0
  34. metadata +100 -86
  35. data/test/dummy/db/development.sqlite3 +0 -0
  36. data/test/dummy/log/development.log +0 -7710
  37. data/test/dummy/script/rails +0 -6
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The page you were looking for doesn't exist.</h1>
23
54
  <p>You may have mistyped the address or the page may have moved.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The change you wanted was rejected.</h1>
23
54
  <p>Maybe you tried to change something you didn't have access to.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -21,5 +52,6 @@
21
52
  <div class="dialog">
22
53
  <h1>We're sorry, but something went wrong.</h1>
23
54
  </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
24
56
  </body>
25
57
  </html>
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: current_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.2'
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: '3.2'
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5'
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: sqlite3
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -122,79 +128,83 @@ extensions: []
122
128
  extra_rdoc_files:
123
129
  - README.md
124
130
  files:
131
+ - app/views/current_user/sessions/_header.html.erb
132
+ - app/views/current_user/sessions/_add_users_message.html.erb
133
+ - app/views/current_user/sessions/new.html.erb
134
+ - app/views/current_user/sessions/_user.html.erb
135
+ - app/views/layouts/current_user/application.html.erb
125
136
  - app/helpers/current_user/application_helper.rb
126
137
  - app/assets/stylesheets/current_user/application.css
127
- - app/controllers/current_user/application_controller.rb
128
138
  - app/controllers/current_user/sessions_controller.rb
129
- - app/views/layouts/current_user/application.html.erb
130
- - app/views/current_user/sessions/_user.html.erb
131
- - app/views/current_user/sessions/new.html.erb
132
- - app/views/current_user/sessions/_header.html.erb
133
- - app/views/current_user/sessions/_add_users_message.html.erb
134
- - config/routes.rb
139
+ - app/controllers/current_user/application_controller.rb
135
140
  - config/initializers/extend_controllers.rb
136
- - lib/current_user.rb
141
+ - config/routes.rb
137
142
  - lib/tasks/current_user_tasks.rake
143
+ - lib/current_user/constants.rb
138
144
  - lib/current_user/version.rb
139
145
  - lib/current_user/controller/helpers.rb
140
146
  - lib/current_user/engine.rb
141
- - lib/current_user/constants.rb
142
- - lib/generators/templates/current_user.rb
143
147
  - lib/generators/templates/README
148
+ - lib/generators/templates/current_user.rb
144
149
  - lib/generators/current_user/install_generator.rb
150
+ - lib/current_user.rb
145
151
  - MIT-LICENSE
146
152
  - Rakefile
147
153
  - README.md
148
- - test/integration_test_helper.rb
149
- - test/support/current_user/navigation_helper.rb
150
154
  - test/test_helper.rb
155
+ - test/integration_test_helper.rb
156
+ - test/integration/login_test.rb
157
+ - test/integration/helpers_test.rb
158
+ - test/dummy/config.ru
159
+ - test/dummy/bin/rake
160
+ - test/dummy/bin/rails
161
+ - test/dummy/bin/bundle
162
+ - test/dummy/public/500.html
151
163
  - test/dummy/public/favicon.ico
152
164
  - test/dummy/public/422.html
165
+ - test/dummy/public/robots.txt
153
166
  - test/dummy/public/404.html
154
- - test/dummy/public/500.html
155
- - test/dummy/config.ru
156
- - test/dummy/app/models/user.rb
157
- - test/dummy/app/helpers/application_helper.rb
158
- - test/dummy/app/assets/stylesheets/application.css
159
- - test/dummy/app/assets/javascripts/application.js
160
- - test/dummy/app/controllers/application_controller.rb
161
- - test/dummy/app/controllers/my_protected_pages_controller.rb
162
- - test/dummy/app/controllers/helpers_controller.rb
163
- - test/dummy/app/controllers/my_another_protected_pages_controller.rb
164
- - test/dummy/app/views/layouts/application.html.erb
165
- - test/dummy/app/views/helpers/signed_in_helper.erb
166
- - test/dummy/app/views/helpers/current_user_helper.erb
167
- - test/dummy/app/views/my_protected_pages/show.html.erb
168
- - test/dummy/app/views/my_another_protected_pages/show.html.erb
169
- - test/dummy/test/fixtures/users.yml
170
- - test/dummy/README.rdoc
167
+ - test/dummy/Rakefile
171
168
  - test/dummy/config/environment.rb
172
- - test/dummy/config/locales/en.yml
173
- - test/dummy/config/routes.rb
174
169
  - test/dummy/config/initializers/secret_token.rb
175
- - test/dummy/config/initializers/current_user.rb
176
- - test/dummy/config/initializers/mime_types.rb
177
- - test/dummy/config/initializers/inflections.rb
170
+ - test/dummy/config/initializers/filter_parameter_logging.rb
171
+ - test/dummy/config/initializers/backtrace_silencers.rb
178
172
  - test/dummy/config/initializers/session_store.rb
173
+ - test/dummy/config/initializers/inflections.rb
179
174
  - test/dummy/config/initializers/wrap_parameters.rb
180
- - test/dummy/config/initializers/backtrace_silencers.rb
175
+ - test/dummy/config/initializers/mime_types.rb
176
+ - test/dummy/config/initializers/current_user.rb
177
+ - test/dummy/config/locales/en.yml
178
+ - test/dummy/config/boot.rb
181
179
  - test/dummy/config/database.yml
182
180
  - test/dummy/config/current_user/key
181
+ - test/dummy/config/application.rb
182
+ - test/dummy/config/routes.rb
183
+ - test/dummy/config/environments/test.rb
183
184
  - test/dummy/config/environments/production.rb
184
185
  - test/dummy/config/environments/development.rb
185
- - test/dummy/config/environments/test.rb
186
- - test/dummy/config/boot.rb
187
- - test/dummy/config/application.rb
188
- - test/dummy/log/development.log
189
186
  - test/dummy/log/test.log
190
- - test/dummy/db/development.sqlite3
191
- - test/dummy/db/migrate/20120630130539_create_users.rb
192
- - test/dummy/db/schema.rb
187
+ - test/dummy/Gemfile
188
+ - test/dummy/README.rdoc
193
189
  - test/dummy/db/test.sqlite3
194
- - test/dummy/script/rails
195
- - test/dummy/Rakefile
196
- - test/integration/helpers_test.rb
197
- - test/integration/login_test.rb
190
+ - test/dummy/db/schema.rb
191
+ - test/dummy/db/seeds.rb
192
+ - test/dummy/db/migrate/20120630130539_create_users.rb
193
+ - test/dummy/test/fixtures/users.yml
194
+ - test/dummy/app/views/helpers/signed_in_helper.erb
195
+ - test/dummy/app/views/helpers/current_user_helper.erb
196
+ - test/dummy/app/views/my_protected_pages/show.html.erb
197
+ - test/dummy/app/views/my_another_protected_pages/show.html.erb
198
+ - test/dummy/app/views/layouts/application.html.erb
199
+ - test/dummy/app/models/user.rb
200
+ - test/dummy/app/helpers/application_helper.rb
201
+ - test/dummy/app/assets/javascripts/application.js
202
+ - test/dummy/app/assets/stylesheets/application.css
203
+ - test/dummy/app/controllers/my_protected_pages_controller.rb
204
+ - test/dummy/app/controllers/my_another_protected_pages_controller.rb
205
+ - test/dummy/app/controllers/application_controller.rb
206
+ - test/dummy/app/controllers/helpers_controller.rb
207
+ - test/support/current_user/navigation_helper.rb
198
208
  homepage: https://github.com/MitinPavel/current_user
199
209
  licenses: []
200
210
  post_install_message:
@@ -220,53 +230,57 @@ signing_key:
220
230
  specification_version: 3
221
231
  summary: Dev phase auth for Rails
222
232
  test_files:
223
- - test/integration_test_helper.rb
224
- - test/support/current_user/navigation_helper.rb
225
233
  - test/test_helper.rb
234
+ - test/integration_test_helper.rb
235
+ - test/integration/login_test.rb
236
+ - test/integration/helpers_test.rb
237
+ - test/dummy/config.ru
238
+ - test/dummy/bin/rake
239
+ - test/dummy/bin/rails
240
+ - test/dummy/bin/bundle
241
+ - test/dummy/public/500.html
226
242
  - test/dummy/public/favicon.ico
227
243
  - test/dummy/public/422.html
244
+ - test/dummy/public/robots.txt
228
245
  - test/dummy/public/404.html
229
- - test/dummy/public/500.html
230
- - test/dummy/config.ru
231
- - test/dummy/app/models/user.rb
232
- - test/dummy/app/helpers/application_helper.rb
233
- - test/dummy/app/assets/stylesheets/application.css
234
- - test/dummy/app/assets/javascripts/application.js
235
- - test/dummy/app/controllers/application_controller.rb
236
- - test/dummy/app/controllers/my_protected_pages_controller.rb
237
- - test/dummy/app/controllers/helpers_controller.rb
238
- - test/dummy/app/controllers/my_another_protected_pages_controller.rb
239
- - test/dummy/app/views/layouts/application.html.erb
240
- - test/dummy/app/views/helpers/signed_in_helper.erb
241
- - test/dummy/app/views/helpers/current_user_helper.erb
242
- - test/dummy/app/views/my_protected_pages/show.html.erb
243
- - test/dummy/app/views/my_another_protected_pages/show.html.erb
244
- - test/dummy/test/fixtures/users.yml
245
- - test/dummy/README.rdoc
246
+ - test/dummy/Rakefile
246
247
  - test/dummy/config/environment.rb
247
- - test/dummy/config/locales/en.yml
248
- - test/dummy/config/routes.rb
249
248
  - test/dummy/config/initializers/secret_token.rb
250
- - test/dummy/config/initializers/current_user.rb
251
- - test/dummy/config/initializers/mime_types.rb
252
- - test/dummy/config/initializers/inflections.rb
249
+ - test/dummy/config/initializers/filter_parameter_logging.rb
250
+ - test/dummy/config/initializers/backtrace_silencers.rb
253
251
  - test/dummy/config/initializers/session_store.rb
252
+ - test/dummy/config/initializers/inflections.rb
254
253
  - test/dummy/config/initializers/wrap_parameters.rb
255
- - test/dummy/config/initializers/backtrace_silencers.rb
254
+ - test/dummy/config/initializers/mime_types.rb
255
+ - test/dummy/config/initializers/current_user.rb
256
+ - test/dummy/config/locales/en.yml
257
+ - test/dummy/config/boot.rb
256
258
  - test/dummy/config/database.yml
257
259
  - test/dummy/config/current_user/key
260
+ - test/dummy/config/application.rb
261
+ - test/dummy/config/routes.rb
262
+ - test/dummy/config/environments/test.rb
258
263
  - test/dummy/config/environments/production.rb
259
264
  - test/dummy/config/environments/development.rb
260
- - test/dummy/config/environments/test.rb
261
- - test/dummy/config/boot.rb
262
- - test/dummy/config/application.rb
263
- - test/dummy/log/development.log
264
265
  - test/dummy/log/test.log
265
- - test/dummy/db/development.sqlite3
266
- - test/dummy/db/migrate/20120630130539_create_users.rb
267
- - test/dummy/db/schema.rb
266
+ - test/dummy/Gemfile
267
+ - test/dummy/README.rdoc
268
268
  - test/dummy/db/test.sqlite3
269
- - test/dummy/script/rails
270
- - test/dummy/Rakefile
271
- - test/integration/helpers_test.rb
272
- - test/integration/login_test.rb
269
+ - test/dummy/db/schema.rb
270
+ - test/dummy/db/seeds.rb
271
+ - test/dummy/db/migrate/20120630130539_create_users.rb
272
+ - test/dummy/test/fixtures/users.yml
273
+ - test/dummy/app/views/helpers/signed_in_helper.erb
274
+ - test/dummy/app/views/helpers/current_user_helper.erb
275
+ - test/dummy/app/views/my_protected_pages/show.html.erb
276
+ - test/dummy/app/views/my_another_protected_pages/show.html.erb
277
+ - test/dummy/app/views/layouts/application.html.erb
278
+ - test/dummy/app/models/user.rb
279
+ - test/dummy/app/helpers/application_helper.rb
280
+ - test/dummy/app/assets/javascripts/application.js
281
+ - test/dummy/app/assets/stylesheets/application.css
282
+ - test/dummy/app/controllers/my_protected_pages_controller.rb
283
+ - test/dummy/app/controllers/my_another_protected_pages_controller.rb
284
+ - test/dummy/app/controllers/application_controller.rb
285
+ - test/dummy/app/controllers/helpers_controller.rb
286
+ - test/support/current_user/navigation_helper.rb