devise_materialize 0.0.4.test3 → 0.0.5.alpha

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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +18 -0
  3. data/.gitignore +5 -0
  4. data/.rubocop.yml +5 -0
  5. data/.yardopts +1 -0
  6. data/Gemfile +10 -0
  7. data/Gemfile.lock +33 -12
  8. data/README.md +52 -12
  9. data/Rakefile +21 -0
  10. data/circle.yml +21 -0
  11. data/devise_materialize.gemspec +6 -17
  12. data/lib/devise_materialize/version.rb +1 -1
  13. data/lib/generators/devise_materialize/install_generator.rb +17 -31
  14. data/lib/generators/templates/assets/stylesheets/devise.scss +53 -0
  15. data/lib/generators/templates/erb/simple_form/confirmations/new.html.erb +7 -6
  16. data/lib/generators/templates/erb/simple_form/mailer/unlock_instructions.html.erb +8 -1
  17. data/lib/generators/templates/erb/simple_form/passwords/edit.html.erb +36 -0
  18. data/lib/generators/templates/erb/simple_form/passwords/new.html.erb +30 -0
  19. data/lib/generators/templates/erb/simple_form/registrations/edit.html.erb +42 -0
  20. data/lib/generators/templates/erb/simple_form/registrations/new.html.erb +36 -0
  21. data/lib/generators/templates/erb/simple_form/sessions/new.html.erb +34 -0
  22. data/lib/generators/templates/erb/simple_form/shared/_links.html.erb +40 -0
  23. data/lib/generators/templates/erb/simple_form/unlocks/new.html.erb +30 -0
  24. data/lib/generators/templates/haml/simple_form/confirmations/new.html.haml +1 -1
  25. data/lib/generators/templates/haml/simple_form/passwords/edit.html.haml +23 -16
  26. data/lib/generators/templates/haml/simple_form/passwords/new.html.haml +19 -12
  27. data/lib/generators/templates/haml/simple_form/registrations/edit.html.haml +1 -1
  28. data/lib/generators/templates/haml/simple_form/registrations/new.html.haml +23 -16
  29. data/lib/generators/templates/haml/simple_form/sessions/new.html.haml +22 -15
  30. data/lib/generators/templates/haml/simple_form/unlocks/new.html.haml +19 -12
  31. data/lib/generators/templates/helpers/devise_helper.rb +18 -0
  32. data/lib/generators/templates/slim/simple_form/confirmations/new.html.slim +21 -0
  33. data/lib/generators/templates/slim/simple_form/mailer/confirmation_instructions.html.slim +30 -0
  34. data/lib/generators/templates/slim/simple_form/mailer/password_change.html.slim +31 -0
  35. data/lib/generators/templates/slim/simple_form/mailer/reset_password_instructions.html.slim +38 -0
  36. data/lib/generators/templates/slim/simple_form/mailer/unlock_instructions.html.slim +35 -0
  37. data/lib/generators/templates/slim/simple_form/passwords/edit.html.slim +23 -0
  38. data/lib/generators/templates/slim/simple_form/passwords/new.html.slim +20 -0
  39. data/lib/generators/templates/slim/simple_form/registrations/edit.html.slim +30 -0
  40. data/lib/generators/templates/slim/simple_form/registrations/new.html.slim +24 -0
  41. data/lib/generators/templates/slim/simple_form/sessions/new.html.slim +23 -0
  42. data/lib/generators/templates/slim/simple_form/shared/_links.html.slim +29 -0
  43. data/lib/generators/templates/slim/simple_form/unlocks/new.html.slim +20 -0
  44. data/test/devise_materialize_test.rb +5 -0
  45. data/test/lib/install_generator_test.rb +92 -0
  46. data/test/rails_app/Rakefile +8 -0
  47. data/test/rails_app/app/controllers/application_controller.rb +7 -0
  48. data/test/rails_app/app/controllers/home_controller.rb +5 -0
  49. data/test/rails_app/app/helpers/application_helper.rb +4 -0
  50. data/test/rails_app/app/views/home/index.html.erb +1 -0
  51. data/test/rails_app/app/views/layouts/application.html.erb +13 -0
  52. data/test/rails_app/bin/bundle +4 -0
  53. data/test/rails_app/bin/rails +5 -0
  54. data/test/rails_app/bin/rake +5 -0
  55. data/test/rails_app/config.ru +5 -0
  56. data/test/rails_app/config/application.rb +13 -0
  57. data/test/rails_app/config/boot.rb +15 -0
  58. data/test/rails_app/config/database.yml +18 -0
  59. data/test/rails_app/config/environment.rb +6 -0
  60. data/test/rails_app/config/environments/development.rb +31 -0
  61. data/test/rails_app/config/environments/production.rb +87 -0
  62. data/test/rails_app/config/environments/test.rb +46 -0
  63. data/test/rails_app/config/initializers/backtrace_silencers.rb +8 -0
  64. data/test/rails_app/config/initializers/inflections.rb +3 -0
  65. data/test/rails_app/config/initializers/secret_token.rb +4 -0
  66. data/test/rails_app/config/initializers/session_store.rb +2 -0
  67. data/test/rails_app/config/routes.rb +4 -0
  68. data/test/rails_app/log/test.log +288 -0
  69. data/test/rails_app/public/404.html +26 -0
  70. data/test/rails_app/public/422.html +26 -0
  71. data/test/rails_app/public/500.html +26 -0
  72. data/{lib/generators/templates/.keep → test/rails_app/public/favicon.ico} +0 -0
  73. data/test/test_helper.rb +31 -0
  74. metadata +79 -68
  75. data/lib/generators/devise_materialize/USAGE +0 -5
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ config = Rails.application.config
3
+
4
+ config.secret_key_base = "d588e99efff13a86461fd6ab82327823ad2f8feb5dc217ce652cdd9f0dfc5eb4b5a62a92d24d2574d7d51dfb1ea8dd453ea54e00cf672159a13104a135422a10"
@@ -0,0 +1,2 @@
1
+ # frozen_string_literal: true
2
+ RailsApp::Application.config.session_store :cookie_store, key: "_rails_app_session"
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ Rails.application.routes.draw do
3
+ root to: "home#index", via: [:get, :post]
4
+ end
@@ -0,0 +1,288 @@
1
+ -------------------------------------------------------
2
+ InstallGeneratorTest: test_assert_all_files_get_created
3
+ -------------------------------------------------------
4
+ -------------------------------------------------------
5
+ InstallGeneratorTest: test_assert_all_files_get_created
6
+ -------------------------------------------------------
7
+ -------------------------------------------------------
8
+ InstallGeneratorTest: test_assert_all_files_get_created
9
+ -------------------------------------------------------
10
+ -------------------------------------------------------
11
+ InstallGeneratorTest: test_assert_all_files_get_created
12
+ -------------------------------------------------------
13
+ -------------------------------------------------------
14
+ InstallGeneratorTest: test_assert_all_files_get_created
15
+ -------------------------------------------------------
16
+ -------------------------------------------------------
17
+ InstallGeneratorTest: test_assert_all_files_get_created
18
+ -------------------------------------------------------
19
+ -------------------------------------------------------
20
+ InstallGeneratorTest: test_assert_all_files_get_created
21
+ -------------------------------------------------------
22
+ -------------------------------------------------------
23
+ InstallGeneratorTest: test_assert_all_files_get_created
24
+ -------------------------------------------------------
25
+ -------------------------------------------------------
26
+ InstallGeneratorTest: test_assert_all_files_get_created
27
+ -------------------------------------------------------
28
+ -------------------------------------------------------
29
+ InstallGeneratorTest: test_assert_all_files_get_created
30
+ -------------------------------------------------------
31
+ -----------------------------------------------------------------
32
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
33
+ -----------------------------------------------------------------
34
+ ----------------------------------------------------------------
35
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
36
+ ----------------------------------------------------------------
37
+ -----------------------------------------------------------------
38
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
39
+ -----------------------------------------------------------------
40
+ ----------------------------------------------------------------
41
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
42
+ ----------------------------------------------------------------
43
+ ----------------------------------------------------------------
44
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
45
+ ----------------------------------------------------------------
46
+ ----------------------------------------------------------------
47
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
48
+ ----------------------------------------------------------------
49
+ -----------------------------------------------------------------
50
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
51
+ -----------------------------------------------------------------
52
+ ----------------------------------------------------------------
53
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
54
+ ----------------------------------------------------------------
55
+ ----------------------------------------------------------------
56
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
57
+ ----------------------------------------------------------------
58
+ -----------------------------------------------------------------
59
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
60
+ -----------------------------------------------------------------
61
+ -----------------------------------------------------------------
62
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
63
+ -----------------------------------------------------------------
64
+ ----------------------------------------------------------------
65
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
66
+ ----------------------------------------------------------------
67
+ ----------------------------------------------------------------
68
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
69
+ ----------------------------------------------------------------
70
+ ----------------------------------------------------------------
71
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
72
+ ----------------------------------------------------------------
73
+ ----------------------------------------------------------------
74
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
75
+ ----------------------------------------------------------------
76
+ -----------------------------------------------------------------
77
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
78
+ -----------------------------------------------------------------
79
+ ----------------------------------------------------------------
80
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
81
+ ----------------------------------------------------------------
82
+ -----------------------------------------------------------------
83
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
84
+ -----------------------------------------------------------------
85
+ ----------------------------------------------------------------
86
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
87
+ ----------------------------------------------------------------
88
+ ----------------------------------------------------------------
89
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
90
+ ----------------------------------------------------------------
91
+ -----------------------------------------------------------------
92
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
93
+ -----------------------------------------------------------------
94
+ ----------------------------------------------------------------
95
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
96
+ ----------------------------------------------------------------
97
+ -----------------------------------------------------------------
98
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
99
+ -----------------------------------------------------------------
100
+ ----------------------------------------------------------------
101
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
102
+ ----------------------------------------------------------------
103
+ ----------------------------------------------------------------
104
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
105
+ ----------------------------------------------------------------
106
+ -----------------------------------------------------------------
107
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
108
+ -----------------------------------------------------------------
109
+ ----------------------------------------------------------------
110
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
111
+ ----------------------------------------------------------------
112
+ ----------------------------------------------------------------
113
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
114
+ ----------------------------------------------------------------
115
+ ----------------------------------------------------------------
116
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
117
+ ----------------------------------------------------------------
118
+ -----------------------------------------------------------------
119
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
120
+ -----------------------------------------------------------------
121
+ ----------------------------------------------------------------
122
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
123
+ ----------------------------------------------------------------
124
+ -----------------------------------------------------------------
125
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
126
+ -----------------------------------------------------------------
127
+ ----------------------------------------------------------------
128
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
129
+ ----------------------------------------------------------------
130
+ ----------------------------------------------------------------
131
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
132
+ ----------------------------------------------------------------
133
+ ----------------------------------------------------------------
134
+ InstallGeneratorTest: test_assert_all_files_get_created_for_haml
135
+ ----------------------------------------------------------------
136
+ ----------------------------------------------------------------
137
+ InstallGeneratorTest: test_assert_all_files_get_created_for_slim
138
+ ----------------------------------------------------------------
139
+ -----------------------------------------------------------------
140
+ InstallGeneratorTest: test_assert_all_files_get_created_no_params
141
+ -----------------------------------------------------------------
142
+ ----------------------------------------------------------------------------
143
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
144
+ ----------------------------------------------------------------------------
145
+ ----------------------------------------------------------------------------------
146
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
147
+ ----------------------------------------------------------------------------------
148
+ -----------------------------------------------------------------------------
149
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
150
+ -----------------------------------------------------------------------------
151
+ -----------------------------------------------------------------------------------
152
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
153
+ -----------------------------------------------------------------------------------
154
+ ------------------------------------------------------------------------------
155
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
156
+ ------------------------------------------------------------------------------
157
+ -------------------------------------------------------------------------------
158
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
159
+ -------------------------------------------------------------------------------
160
+ ----------------------------------------------------------------------------
161
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
162
+ ----------------------------------------------------------------------------
163
+ -------------------------------------------------------------------------------
164
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
165
+ -------------------------------------------------------------------------------
166
+ -----------------------------------------------------------------------------
167
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
168
+ -----------------------------------------------------------------------------
169
+ -----------------------------------------------------------------------------------
170
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
171
+ -----------------------------------------------------------------------------------
172
+ ----------------------------------------------------------------------------
173
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
174
+ ----------------------------------------------------------------------------
175
+ ------------------------------------------------------------------------------
176
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
177
+ ------------------------------------------------------------------------------
178
+ ----------------------------------------------------------------------------------
179
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
180
+ ----------------------------------------------------------------------------------
181
+ ------------------------------------------------------------------------------
182
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
183
+ ------------------------------------------------------------------------------
184
+ ----------------------------------------------------------------------------------
185
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
186
+ ----------------------------------------------------------------------------------
187
+ -----------------------------------------------------------------------------
188
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
189
+ -----------------------------------------------------------------------------
190
+ -------------------------------------------------------------------------------
191
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
192
+ -------------------------------------------------------------------------------
193
+ ----------------------------------------------------------------------------
194
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
195
+ ----------------------------------------------------------------------------
196
+ -----------------------------------------------------------------------------------
197
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
198
+ -----------------------------------------------------------------------------------
199
+ ----------------------------------------------------------------------------
200
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
201
+ ----------------------------------------------------------------------------
202
+ -----------------------------------------------------------------------------------
203
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
204
+ -----------------------------------------------------------------------------------
205
+ -----------------------------------------------------------------------------
206
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
207
+ -----------------------------------------------------------------------------
208
+ ----------------------------------------------------------------------------------
209
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
210
+ ----------------------------------------------------------------------------------
211
+ ------------------------------------------------------------------------------
212
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
213
+ ------------------------------------------------------------------------------
214
+ -------------------------------------------------------------------------------
215
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
216
+ -------------------------------------------------------------------------------
217
+ --------------------------------------------------------------------------------------------
218
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim_and_simple_form
219
+ --------------------------------------------------------------------------------------------
220
+ ------------------------------------------------------------------------------
221
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
222
+ ------------------------------------------------------------------------------
223
+ ----------------------------------------------------------------------------------
224
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
225
+ ----------------------------------------------------------------------------------
226
+ -----------------------------------------------------------------------------
227
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
228
+ -----------------------------------------------------------------------------
229
+ -----------------------------------------------------------------------------------
230
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
231
+ -----------------------------------------------------------------------------------
232
+ -----------------------------------------------------------------------------------------------
233
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml_and_simple_form
234
+ -----------------------------------------------------------------------------------------------
235
+ ----------------------------------------------------------------------------------------------
236
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim_and_simple_form
237
+ ----------------------------------------------------------------------------------------------
238
+ -------------------------------------------------------------------------------------
239
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_simple_form
240
+ -------------------------------------------------------------------------------------
241
+ ----------------------------------------------------------------------------------------
242
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_and_simple_form
243
+ ----------------------------------------------------------------------------------------
244
+ ---------------------------------------------------------------------------------------------
245
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml_and_simple_form
246
+ ---------------------------------------------------------------------------------------------
247
+ -------------------------------------------------------------------------------
248
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
249
+ -------------------------------------------------------------------------------
250
+ ----------------------------------------------------------------------------
251
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
252
+ ----------------------------------------------------------------------------
253
+ -------------------------------------------------------------------------------------
254
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_simple_form
255
+ -------------------------------------------------------------------------------------
256
+ ---------------------------------------------------------------------------------------------
257
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml_and_simple_form
258
+ ---------------------------------------------------------------------------------------------
259
+ ------------------------------------------------------------------------------
260
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim
261
+ ------------------------------------------------------------------------------
262
+ ----------------------------------------------------------------------------
263
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim
264
+ ----------------------------------------------------------------------------
265
+ ----------------------------------------------------------------------------------------
266
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_and_simple_form
267
+ ----------------------------------------------------------------------------------------
268
+ --------------------------------------------------------------------------------------------
269
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_wil_slim_and_simple_form
270
+ --------------------------------------------------------------------------------------------
271
+ ----------------------------------------------------------------------------------------------
272
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_wil_slim_and_simple_form
273
+ ----------------------------------------------------------------------------------------------
274
+ -------------------------------------------------------------------------------
275
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml
276
+ -------------------------------------------------------------------------------
277
+ ----------------------------------------------------------------------------------
278
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_no_params
279
+ ----------------------------------------------------------------------------------
280
+ -----------------------------------------------------------------------------------------------
281
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_with_haml_and_simple_form
282
+ -----------------------------------------------------------------------------------------------
283
+ -----------------------------------------------------------------------------
284
+ InstallGeneratorTest: test_assert_files_created_for_users_namespace_with_haml
285
+ -----------------------------------------------------------------------------
286
+ -----------------------------------------------------------------------------------
287
+ InstallGeneratorTest: test_assert_files_created_for_default_namespace_and_no_params
288
+ -----------------------------------------------------------------------------------
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
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; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ ENV["RAILS_ENV"] = "test"
3
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
+
5
+ require "simplecov"
6
+ require "devise_materialize"
7
+ require "rails_app/config/environment"
8
+ require "rails/test_help"
9
+ require "minitest"
10
+ require "minitest/spec"
11
+ require "minitest/pride"
12
+ require "minitest/autorun"
13
+ require "minitest/ci"
14
+
15
+ if ENV["CIRCLE_TEST_REPORTS"].present?
16
+ Minitest::Ci.report_dir = "#{ENV['CIRCLE_TEST_REPORTS']}/reports"
17
+ end
18
+
19
+ SimpleCov.formatters = [
20
+ SimpleCov::Formatter::HTMLFormatter
21
+ ]
22
+
23
+ SimpleCov.start do
24
+ add_filter "/test/"
25
+
26
+ add_group "Library", "lib"
27
+ end
28
+
29
+ # For generators
30
+ require "rails/generators/test_case"
31
+ require "generators/devise_materialize/install_generator"
metadata CHANGED
@@ -1,85 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.test3
4
+ version: 0.0.5.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Pezza
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 5.0.1
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.13'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.13'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
19
+ version: 4.1.0
20
+ - - "<"
46
21
  - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
22
+ version: '5.1'
23
+ type: :runtime
63
24
  prerelease: false
64
25
  version_requirements: !ruby/object:Gem::Requirement
65
26
  requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
27
+ - - ">="
74
28
  - !ruby/object:Gem::Version
75
- version: 0.10.4
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
29
+ version: 4.1.0
30
+ - - "<"
81
31
  - !ruby/object:Gem::Version
82
- version: 0.10.4
32
+ version: '5.1'
83
33
  description: This Gem provides a generator for Materialize styled Devise Views in
84
34
  HAML, SLIM, and ERB format with standard Form or simple form functionality
85
35
  email:
@@ -88,9 +38,11 @@ executables: []
88
38
  extensions: []
89
39
  extra_rdoc_files: []
90
40
  files:
41
+ - ".codeclimate.yml"
91
42
  - ".gitignore"
92
43
  - ".rubocop.yml"
93
44
  - ".ruby-version"
45
+ - ".yardopts"
94
46
  - CODE_OF_CONDUCT.md
95
47
  - Gemfile
96
48
  - Gemfile.lock
@@ -103,9 +55,8 @@ files:
103
55
  - devise_materialize.gemspec
104
56
  - lib/devise_materialize.rb
105
57
  - lib/devise_materialize/version.rb
106
- - lib/generators/devise_materialize/USAGE
107
58
  - lib/generators/devise_materialize/install_generator.rb
108
- - lib/generators/templates/.keep
59
+ - lib/generators/templates/assets/stylesheets/devise.scss
109
60
  - lib/generators/templates/erb/default/confirmations/new.html.erb
110
61
  - lib/generators/templates/erb/default/mailer/confirmation_instructions.html.erb
111
62
  - lib/generators/templates/erb/default/mailer/password_change.html.erb
@@ -154,6 +105,7 @@ files:
154
105
  - lib/generators/templates/haml/simple_form/sessions/new.html.haml
155
106
  - lib/generators/templates/haml/simple_form/shared/_links.html.haml
156
107
  - lib/generators/templates/haml/simple_form/unlocks/new.html.haml
108
+ - lib/generators/templates/helpers/devise_helper.rb
157
109
  - lib/generators/templates/slim/default/confirmations/new.html.slim
158
110
  - lib/generators/templates/slim/default/mailer/confirmation_instructions.html.slim
159
111
  - lib/generators/templates/slim/default/mailer/password_change.html.slim
@@ -178,11 +130,40 @@ files:
178
130
  - lib/generators/templates/slim/simple_form/sessions/new.html.slim
179
131
  - lib/generators/templates/slim/simple_form/shared/_links.html.slim
180
132
  - lib/generators/templates/slim/simple_form/unlocks/new.html.slim
133
+ - test/devise_materialize_test.rb
134
+ - test/lib/install_generator_test.rb
135
+ - test/rails_app/Rakefile
136
+ - test/rails_app/app/controllers/application_controller.rb
137
+ - test/rails_app/app/controllers/home_controller.rb
138
+ - test/rails_app/app/helpers/application_helper.rb
139
+ - test/rails_app/app/views/home/index.html.erb
140
+ - test/rails_app/app/views/layouts/application.html.erb
141
+ - test/rails_app/bin/bundle
142
+ - test/rails_app/bin/rails
143
+ - test/rails_app/bin/rake
144
+ - test/rails_app/config.ru
145
+ - test/rails_app/config/application.rb
146
+ - test/rails_app/config/boot.rb
147
+ - test/rails_app/config/database.yml
148
+ - test/rails_app/config/environment.rb
149
+ - test/rails_app/config/environments/development.rb
150
+ - test/rails_app/config/environments/production.rb
151
+ - test/rails_app/config/environments/test.rb
152
+ - test/rails_app/config/initializers/backtrace_silencers.rb
153
+ - test/rails_app/config/initializers/inflections.rb
154
+ - test/rails_app/config/initializers/secret_token.rb
155
+ - test/rails_app/config/initializers/session_store.rb
156
+ - test/rails_app/config/routes.rb
157
+ - test/rails_app/log/test.log
158
+ - test/rails_app/public/404.html
159
+ - test/rails_app/public/422.html
160
+ - test/rails_app/public/500.html
161
+ - test/rails_app/public/favicon.ico
162
+ - test/test_helper.rb
181
163
  homepage: https://github.com/techgurupezza/devise_materialize
182
164
  licenses:
183
165
  - MIT
184
- metadata:
185
- allowed_push_host: https://rubygems.org
166
+ metadata: {}
186
167
  post_install_message:
187
168
  rdoc_options: []
188
169
  require_paths:
@@ -191,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
172
  requirements:
192
173
  - - ">="
193
174
  - !ruby/object:Gem::Version
194
- version: '0'
175
+ version: 2.2.0
195
176
  required_rubygems_version: !ruby/object:Gem::Requirement
196
177
  requirements:
197
178
  - - ">"
@@ -203,4 +184,34 @@ rubygems_version: 2.6.8
203
184
  signing_key:
204
185
  specification_version: 4
205
186
  summary: Generator for Materialize styled Devise Views
206
- test_files: []
187
+ test_files:
188
+ - test/devise_materialize_test.rb
189
+ - test/lib/install_generator_test.rb
190
+ - test/rails_app/Rakefile
191
+ - test/rails_app/app/controllers/application_controller.rb
192
+ - test/rails_app/app/controllers/home_controller.rb
193
+ - test/rails_app/app/helpers/application_helper.rb
194
+ - test/rails_app/app/views/home/index.html.erb
195
+ - test/rails_app/app/views/layouts/application.html.erb
196
+ - test/rails_app/bin/bundle
197
+ - test/rails_app/bin/rails
198
+ - test/rails_app/bin/rake
199
+ - test/rails_app/config.ru
200
+ - test/rails_app/config/application.rb
201
+ - test/rails_app/config/boot.rb
202
+ - test/rails_app/config/database.yml
203
+ - test/rails_app/config/environment.rb
204
+ - test/rails_app/config/environments/development.rb
205
+ - test/rails_app/config/environments/production.rb
206
+ - test/rails_app/config/environments/test.rb
207
+ - test/rails_app/config/initializers/backtrace_silencers.rb
208
+ - test/rails_app/config/initializers/inflections.rb
209
+ - test/rails_app/config/initializers/secret_token.rb
210
+ - test/rails_app/config/initializers/session_store.rb
211
+ - test/rails_app/config/routes.rb
212
+ - test/rails_app/log/test.log
213
+ - test/rails_app/public/404.html
214
+ - test/rails_app/public/422.html
215
+ - test/rails_app/public/500.html
216
+ - test/rails_app/public/favicon.ico
217
+ - test/test_helper.rb