monban 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +149 -0
- data/LICENSE.txt +22 -0
- data/README.md +65 -0
- data/Rakefile +6 -0
- data/lib/generators/monban/controllers/controllers_generator.rb +30 -0
- data/lib/generators/monban/scaffold/scaffold_generator.rb +42 -0
- data/lib/generators/monban/templates/app/controllers/sessions_controller.rb +30 -0
- data/lib/generators/monban/templates/app/controllers/users_controller.rb +26 -0
- data/lib/generators/monban/templates/app/models/user.rb +7 -0
- data/lib/generators/monban/templates/app/views/sessions/new.html.erb +13 -0
- data/lib/generators/monban/templates/app/views/users/new.html.erb +13 -0
- data/lib/generators/monban/templates/db/migrate/create_users.rb +10 -0
- data/lib/generators/monban/templates/scaffold_readme +4 -0
- data/lib/monban.rb +38 -0
- data/lib/monban/configuration.rb +27 -0
- data/lib/monban/controller_helpers.rb +56 -0
- data/lib/monban/controller_helpers/authentication.rb +26 -0
- data/lib/monban/controller_helpers/sign_in.rb +12 -0
- data/lib/monban/controller_helpers/sign_out.rb +11 -0
- data/lib/monban/controller_helpers/sign_up.rb +23 -0
- data/lib/monban/field_map.rb +38 -0
- data/lib/monban/railtie.rb +9 -0
- data/lib/monban/strategies/password_strategy.rb +15 -0
- data/lib/monban/version.rb +3 -0
- data/lib/monban/warden_setup.rb +11 -0
- data/monban.gemspec +29 -0
- data/spec/features/visitor/visitor_signs_up_spec.rb +12 -0
- data/spec/monban/controller_helpers/authentication_spec.rb +25 -0
- data/spec/monban/controller_helpers/sign_in_spec.rb +12 -0
- data/spec/monban/controller_helpers/sign_out_spec.rb +11 -0
- data/spec/monban/controller_helpers/sign_up_spec.rb +17 -0
- data/spec/monban/controller_helpers_spec.rb +124 -0
- data/spec/monban/field_map_spec.rb +18 -0
- data/spec/monban_spec.rb +7 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/assets/images/rails.png +0 -0
- data/spec/rails_app/app/assets/javascripts/application.js +13 -0
- data/spec/rails_app/app/assets/stylesheets/application.css +13 -0
- data/spec/rails_app/app/controllers/application_controller.rb +4 -0
- data/spec/rails_app/app/controllers/posts_controller.rb +7 -0
- data/spec/rails_app/app/controllers/sessions_controller.rb +18 -0
- data/spec/rails_app/app/controllers/users_controller.rb +15 -0
- data/spec/rails_app/app/helpers/application_helper.rb +2 -0
- data/spec/rails_app/app/models/user.rb +4 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_app/app/views/users/new.html.erb +5 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +58 -0
- data/spec/rails_app/config/boot.rb +6 -0
- data/spec/rails_app/config/database.yml +25 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +29 -0
- data/spec/rails_app/config/environments/production.rb +54 -0
- data/spec/rails_app/config/environments/test.rb +29 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +15 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/routes.rb +8 -0
- data/spec/rails_app/db/seeds.rb +7 -0
- data/spec/rails_app/public/404.html +26 -0
- data/spec/rails_app/public/422.html +26 -0
- data/spec/rails_app/public/500.html +25 -0
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/spec_helper.rb +7 -0
- metadata +299 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
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; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
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; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,299 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: monban
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- halogenandtoast
|
9
|
+
- calebthompson
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: bcrypt-ruby
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: warden
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rspec
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec-rails
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: capybara
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
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: sqlite3
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: active_hash
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description: simple rails authentication
|
160
|
+
email:
|
161
|
+
- halogenandtoast@gmail.com
|
162
|
+
executables: []
|
163
|
+
extensions: []
|
164
|
+
extra_rdoc_files: []
|
165
|
+
files:
|
166
|
+
- .gitignore
|
167
|
+
- Gemfile
|
168
|
+
- Gemfile.lock
|
169
|
+
- LICENSE.txt
|
170
|
+
- README.md
|
171
|
+
- Rakefile
|
172
|
+
- lib/generators/monban/controllers/controllers_generator.rb
|
173
|
+
- lib/generators/monban/scaffold/scaffold_generator.rb
|
174
|
+
- lib/generators/monban/templates/app/controllers/sessions_controller.rb
|
175
|
+
- lib/generators/monban/templates/app/controllers/users_controller.rb
|
176
|
+
- lib/generators/monban/templates/app/models/user.rb
|
177
|
+
- lib/generators/monban/templates/app/views/sessions/new.html.erb
|
178
|
+
- lib/generators/monban/templates/app/views/users/new.html.erb
|
179
|
+
- lib/generators/monban/templates/db/migrate/create_users.rb
|
180
|
+
- lib/generators/monban/templates/scaffold_readme
|
181
|
+
- lib/monban.rb
|
182
|
+
- lib/monban/configuration.rb
|
183
|
+
- lib/monban/controller_helpers.rb
|
184
|
+
- lib/monban/controller_helpers/authentication.rb
|
185
|
+
- lib/monban/controller_helpers/sign_in.rb
|
186
|
+
- lib/monban/controller_helpers/sign_out.rb
|
187
|
+
- lib/monban/controller_helpers/sign_up.rb
|
188
|
+
- lib/monban/field_map.rb
|
189
|
+
- lib/monban/railtie.rb
|
190
|
+
- lib/monban/strategies/password_strategy.rb
|
191
|
+
- lib/monban/version.rb
|
192
|
+
- lib/monban/warden_setup.rb
|
193
|
+
- monban.gemspec
|
194
|
+
- spec/features/visitor/visitor_signs_up_spec.rb
|
195
|
+
- spec/monban/controller_helpers/authentication_spec.rb
|
196
|
+
- spec/monban/controller_helpers/sign_in_spec.rb
|
197
|
+
- spec/monban/controller_helpers/sign_out_spec.rb
|
198
|
+
- spec/monban/controller_helpers/sign_up_spec.rb
|
199
|
+
- spec/monban/controller_helpers_spec.rb
|
200
|
+
- spec/monban/field_map_spec.rb
|
201
|
+
- spec/monban_spec.rb
|
202
|
+
- spec/rails_app/Rakefile
|
203
|
+
- spec/rails_app/app/assets/images/rails.png
|
204
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
205
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
206
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
207
|
+
- spec/rails_app/app/controllers/posts_controller.rb
|
208
|
+
- spec/rails_app/app/controllers/sessions_controller.rb
|
209
|
+
- spec/rails_app/app/controllers/users_controller.rb
|
210
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
211
|
+
- spec/rails_app/app/models/user.rb
|
212
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
213
|
+
- spec/rails_app/app/views/users/new.html.erb
|
214
|
+
- spec/rails_app/config.ru
|
215
|
+
- spec/rails_app/config/application.rb
|
216
|
+
- spec/rails_app/config/boot.rb
|
217
|
+
- spec/rails_app/config/database.yml
|
218
|
+
- spec/rails_app/config/environment.rb
|
219
|
+
- spec/rails_app/config/environments/development.rb
|
220
|
+
- spec/rails_app/config/environments/production.rb
|
221
|
+
- spec/rails_app/config/environments/test.rb
|
222
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
223
|
+
- spec/rails_app/config/initializers/inflections.rb
|
224
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
225
|
+
- spec/rails_app/config/routes.rb
|
226
|
+
- spec/rails_app/db/seeds.rb
|
227
|
+
- spec/rails_app/log/development.log
|
228
|
+
- spec/rails_app/public/404.html
|
229
|
+
- spec/rails_app/public/422.html
|
230
|
+
- spec/rails_app/public/500.html
|
231
|
+
- spec/rails_app/public/favicon.ico
|
232
|
+
- spec/rails_app/script/rails
|
233
|
+
- spec/spec_helper.rb
|
234
|
+
homepage: ''
|
235
|
+
licenses: []
|
236
|
+
post_install_message:
|
237
|
+
rdoc_options: []
|
238
|
+
require_paths:
|
239
|
+
- lib
|
240
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
247
|
+
none: false
|
248
|
+
requirements:
|
249
|
+
- - ! '>='
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: '0'
|
252
|
+
requirements: []
|
253
|
+
rubyforge_project:
|
254
|
+
rubygems_version: 1.8.23
|
255
|
+
signing_key:
|
256
|
+
specification_version: 3
|
257
|
+
summary: Making rails authentication as simple as possible
|
258
|
+
test_files:
|
259
|
+
- spec/features/visitor/visitor_signs_up_spec.rb
|
260
|
+
- spec/monban/controller_helpers/authentication_spec.rb
|
261
|
+
- spec/monban/controller_helpers/sign_in_spec.rb
|
262
|
+
- spec/monban/controller_helpers/sign_out_spec.rb
|
263
|
+
- spec/monban/controller_helpers/sign_up_spec.rb
|
264
|
+
- spec/monban/controller_helpers_spec.rb
|
265
|
+
- spec/monban/field_map_spec.rb
|
266
|
+
- spec/monban_spec.rb
|
267
|
+
- spec/rails_app/Rakefile
|
268
|
+
- spec/rails_app/app/assets/images/rails.png
|
269
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
270
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
271
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
272
|
+
- spec/rails_app/app/controllers/posts_controller.rb
|
273
|
+
- spec/rails_app/app/controllers/sessions_controller.rb
|
274
|
+
- spec/rails_app/app/controllers/users_controller.rb
|
275
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
276
|
+
- spec/rails_app/app/models/user.rb
|
277
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
278
|
+
- spec/rails_app/app/views/users/new.html.erb
|
279
|
+
- spec/rails_app/config.ru
|
280
|
+
- spec/rails_app/config/application.rb
|
281
|
+
- spec/rails_app/config/boot.rb
|
282
|
+
- spec/rails_app/config/database.yml
|
283
|
+
- spec/rails_app/config/environment.rb
|
284
|
+
- spec/rails_app/config/environments/development.rb
|
285
|
+
- spec/rails_app/config/environments/production.rb
|
286
|
+
- spec/rails_app/config/environments/test.rb
|
287
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
288
|
+
- spec/rails_app/config/initializers/inflections.rb
|
289
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
290
|
+
- spec/rails_app/config/routes.rb
|
291
|
+
- spec/rails_app/db/seeds.rb
|
292
|
+
- spec/rails_app/log/development.log
|
293
|
+
- spec/rails_app/public/404.html
|
294
|
+
- spec/rails_app/public/422.html
|
295
|
+
- spec/rails_app/public/500.html
|
296
|
+
- spec/rails_app/public/favicon.ico
|
297
|
+
- spec/rails_app/script/rails
|
298
|
+
- spec/spec_helper.rb
|
299
|
+
has_rdoc:
|