defra_ruby_features 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/defra_ruby_features/version.rb +1 -1
- metadata +21 -268
- data/spec/dummy/Rakefile +0 -8
- data/spec/dummy/app/assets/config/manifest.js +0 -3
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -6
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -6
- data/spec/dummy/app/controllers/application_controller.rb +0 -4
- data/spec/dummy/app/controllers/test_controller.rb +0 -7
- data/spec/dummy/app/helpers/application_helper.rb +0 -4
- data/spec/dummy/app/javascript/packs/application.js +0 -14
- data/spec/dummy/app/jobs/application_job.rb +0 -9
- data/spec/dummy/app/models/ability.rb +0 -9
- data/spec/dummy/app/models/application_record.rb +0 -5
- data/spec/dummy/app/models/feature_toggle.rb +0 -4
- data/spec/dummy/app/models/user.rb +0 -8
- data/spec/dummy/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -25
- data/spec/dummy/config/application.rb +0 -29
- data/spec/dummy/config/boot.rb +0 -7
- data/spec/dummy/config/database.yml +0 -21
- data/spec/dummy/config/environment.rb +0 -7
- data/spec/dummy/config/environments/development.rb +0 -50
- data/spec/dummy/config/environments/test.rb +0 -41
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -10
- data/spec/dummy/config/initializers/assets.rb +0 -14
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -30
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -7
- data/spec/dummy/config/initializers/defra_ruby_features.rb +0 -7
- data/spec/dummy/config/initializers/devise.rb +0 -311
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
- data/spec/dummy/config/initializers/inflections.rb +0 -18
- data/spec/dummy/config/initializers/mime_types.rb +0 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -11
- data/spec/dummy/config/locales/devise.en.yml +0 -65
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/routes.rb +0 -7
- data/spec/dummy/config.ru +0 -7
- data/spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb +0 -12
- data/spec/dummy/db/migrate/20200624115316_devise_create_users.rb +0 -44
- data/spec/dummy/db/schema.rb +0 -34
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -183
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +0 -1
- data/spec/examples.txt +0 -13
- data/spec/factories/feature_toggle.rb +0 -8
- data/spec/factories/user.rb +0 -11
- data/spec/lib/defra_ruby_mocks/configuration_spec.rb +0 -13
- data/spec/rails_helper.rb +0 -54
- data/spec/requests/defra_ruby_features/feature_toggles_spec.rb +0 -145
- data/spec/spec_helper.rb +0 -83
- data/spec/support/database_cleaner.rb +0 -19
- data/spec/support/devise.rb +0 -5
- data/spec/support/factory_bot.rb +0 -8
- data/spec/support/migrations.rb +0 -10
- data/spec/support/pry.rb +0 -7
- data/spec/support/rails_controller_testing.rb +0 -5
- data/spec/support/simplecov.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe47a9f0a98c0d188f7fd10a2a2b1b8b6b7e8d91eba9ca07837398598cf6e165
|
4
|
+
data.tar.gz: 0aa9f4e6e1efcb1e1ab154040b81d76e8a9127f5e0e4fd07795c782236952145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d335f762b7b49db9ba3e6e66919b97842650d74f4d223d63f1149f2d15e4e8a22ccea35a981c72dafb31592df8a683faa22d9ffd534262c7ea4ebd7083ef41
|
7
|
+
data.tar.gz: e873cdc54f33b1cd5d99f06a6f265651e23cfdddf018ec99abd75026d2e89c604f42e353b759ea0a7f5b323d8bc12601f390ad39649d9925e66fc449dc40f5b5
|
data/README.md
CHANGED
metadata
CHANGED
@@ -1,127 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0.3
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.3.2
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 6.0.3
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.3.2
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: cancancan
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.10'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '1.10'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: devise
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 4.4.3
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 4.4.3
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: github_changelog_generator
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: database_cleaner
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: defra_ruby_style
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: factory_bot_rails
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
16
|
requirements:
|
114
17
|
- - ">="
|
115
18
|
- !ruby/object:Gem::Version
|
116
19
|
version: '0'
|
117
|
-
|
118
|
-
name: pry-byebug
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '0'
|
124
|
-
type: :development
|
20
|
+
type: :runtime
|
125
21
|
prerelease: false
|
126
22
|
version_requirements: !ruby/object:Gem::Requirement
|
127
23
|
requirements:
|
@@ -129,13 +25,13 @@ dependencies:
|
|
129
25
|
- !ruby/object:Gem::Version
|
130
26
|
version: '0'
|
131
27
|
- !ruby/object:Gem::Dependency
|
132
|
-
name: rails
|
28
|
+
name: sprockets-rails
|
133
29
|
requirement: !ruby/object:Gem::Requirement
|
134
30
|
requirements:
|
135
31
|
- - ">="
|
136
32
|
- !ruby/object:Gem::Version
|
137
33
|
version: '0'
|
138
|
-
type: :
|
34
|
+
type: :runtime
|
139
35
|
prerelease: false
|
140
36
|
version_requirements: !ruby/object:Gem::Requirement
|
141
37
|
requirements:
|
@@ -143,47 +39,33 @@ dependencies:
|
|
143
39
|
- !ruby/object:Gem::Version
|
144
40
|
version: '0'
|
145
41
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
42
|
+
name: cancancan
|
147
43
|
requirement: !ruby/object:Gem::Requirement
|
148
44
|
requirements:
|
149
45
|
- - ">="
|
150
46
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
152
|
-
type: :
|
47
|
+
version: '1.10'
|
48
|
+
type: :runtime
|
153
49
|
prerelease: false
|
154
50
|
version_requirements: !ruby/object:Gem::Requirement
|
155
51
|
requirements:
|
156
52
|
- - ">="
|
157
53
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: simplecov
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 0.17.1
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: 0.17.1
|
54
|
+
version: '1.10'
|
173
55
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
56
|
+
name: devise
|
175
57
|
requirement: !ruby/object:Gem::Requirement
|
176
58
|
requirements:
|
177
59
|
- - ">="
|
178
60
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
180
|
-
type: :
|
61
|
+
version: '4.9'
|
62
|
+
type: :runtime
|
181
63
|
prerelease: false
|
182
64
|
version_requirements: !ruby/object:Gem::Requirement
|
183
65
|
requirements:
|
184
66
|
- - ">="
|
185
67
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
68
|
+
version: '4.9'
|
187
69
|
description: A Rails engine which can be used to activate and deactivate feature toggles
|
188
70
|
email:
|
189
71
|
- alan.cruikshanks@environment-agency.gov.uk
|
@@ -208,76 +90,12 @@ files:
|
|
208
90
|
- lib/defra_ruby_features/engine.rb
|
209
91
|
- lib/defra_ruby_features/version.rb
|
210
92
|
- lib/tasks/changelog.rake
|
211
|
-
- spec/dummy/Rakefile
|
212
|
-
- spec/dummy/app/assets/config/manifest.js
|
213
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
214
|
-
- spec/dummy/app/channels/application_cable/channel.rb
|
215
|
-
- spec/dummy/app/channels/application_cable/connection.rb
|
216
|
-
- spec/dummy/app/controllers/application_controller.rb
|
217
|
-
- spec/dummy/app/controllers/test_controller.rb
|
218
|
-
- spec/dummy/app/helpers/application_helper.rb
|
219
|
-
- spec/dummy/app/javascript/packs/application.js
|
220
|
-
- spec/dummy/app/jobs/application_job.rb
|
221
|
-
- spec/dummy/app/models/ability.rb
|
222
|
-
- spec/dummy/app/models/application_record.rb
|
223
|
-
- spec/dummy/app/models/feature_toggle.rb
|
224
|
-
- spec/dummy/app/models/user.rb
|
225
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
226
|
-
- spec/dummy/bin/rails
|
227
|
-
- spec/dummy/bin/rake
|
228
|
-
- spec/dummy/bin/setup
|
229
|
-
- spec/dummy/config.ru
|
230
|
-
- spec/dummy/config/application.rb
|
231
|
-
- spec/dummy/config/boot.rb
|
232
|
-
- spec/dummy/config/database.yml
|
233
|
-
- spec/dummy/config/environment.rb
|
234
|
-
- spec/dummy/config/environments/development.rb
|
235
|
-
- spec/dummy/config/environments/test.rb
|
236
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
237
|
-
- spec/dummy/config/initializers/assets.rb
|
238
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
239
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
240
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
241
|
-
- spec/dummy/config/initializers/defra_ruby_features.rb
|
242
|
-
- spec/dummy/config/initializers/devise.rb
|
243
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
244
|
-
- spec/dummy/config/initializers/inflections.rb
|
245
|
-
- spec/dummy/config/initializers/mime_types.rb
|
246
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
247
|
-
- spec/dummy/config/locales/devise.en.yml
|
248
|
-
- spec/dummy/config/locales/en.yml
|
249
|
-
- spec/dummy/config/routes.rb
|
250
|
-
- spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb
|
251
|
-
- spec/dummy/db/migrate/20200624115316_devise_create_users.rb
|
252
|
-
- spec/dummy/db/schema.rb
|
253
|
-
- spec/dummy/db/test.sqlite3
|
254
|
-
- spec/dummy/log/test.log
|
255
|
-
- spec/dummy/public/404.html
|
256
|
-
- spec/dummy/public/422.html
|
257
|
-
- spec/dummy/public/500.html
|
258
|
-
- spec/dummy/public/apple-touch-icon-precomposed.png
|
259
|
-
- spec/dummy/public/apple-touch-icon.png
|
260
|
-
- spec/dummy/public/favicon.ico
|
261
|
-
- spec/dummy/tmp/development_secret.txt
|
262
|
-
- spec/examples.txt
|
263
|
-
- spec/factories/feature_toggle.rb
|
264
|
-
- spec/factories/user.rb
|
265
|
-
- spec/lib/defra_ruby_mocks/configuration_spec.rb
|
266
|
-
- spec/rails_helper.rb
|
267
|
-
- spec/requests/defra_ruby_features/feature_toggles_spec.rb
|
268
|
-
- spec/spec_helper.rb
|
269
|
-
- spec/support/database_cleaner.rb
|
270
|
-
- spec/support/devise.rb
|
271
|
-
- spec/support/factory_bot.rb
|
272
|
-
- spec/support/migrations.rb
|
273
|
-
- spec/support/pry.rb
|
274
|
-
- spec/support/rails_controller_testing.rb
|
275
|
-
- spec/support/simplecov.rb
|
276
93
|
homepage: https://github.com/DEFRA/defra-ruby-features
|
277
94
|
licenses:
|
278
95
|
- The Open Government Licence (OGL) Version 3
|
279
|
-
metadata:
|
280
|
-
|
96
|
+
metadata:
|
97
|
+
rubygems_mfa_required: 'true'
|
98
|
+
post_install_message:
|
281
99
|
rdoc_options: []
|
282
100
|
require_paths:
|
283
101
|
- lib
|
@@ -285,80 +103,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
103
|
requirements:
|
286
104
|
- - ">="
|
287
105
|
- !ruby/object:Gem::Version
|
288
|
-
version: '
|
106
|
+
version: '3.1'
|
289
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
290
108
|
requirements:
|
291
109
|
- - ">="
|
292
110
|
- !ruby/object:Gem::Version
|
293
111
|
version: '0'
|
294
112
|
requirements: []
|
295
|
-
rubygems_version: 3.
|
296
|
-
signing_key:
|
113
|
+
rubygems_version: 3.4.10
|
114
|
+
signing_key:
|
297
115
|
specification_version: 4
|
298
116
|
summary: Defra Ruby on Rails features manager engine
|
299
|
-
test_files:
|
300
|
-
- spec/spec_helper.rb
|
301
|
-
- spec/dummy/app/models/feature_toggle.rb
|
302
|
-
- spec/dummy/app/models/ability.rb
|
303
|
-
- spec/dummy/app/models/application_record.rb
|
304
|
-
- spec/dummy/app/models/user.rb
|
305
|
-
- spec/dummy/app/javascript/packs/application.js
|
306
|
-
- spec/dummy/app/jobs/application_job.rb
|
307
|
-
- spec/dummy/app/controllers/application_controller.rb
|
308
|
-
- spec/dummy/app/controllers/test_controller.rb
|
309
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
310
|
-
- spec/dummy/app/assets/config/manifest.js
|
311
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
312
|
-
- spec/dummy/app/helpers/application_helper.rb
|
313
|
-
- spec/dummy/app/channels/application_cable/connection.rb
|
314
|
-
- spec/dummy/app/channels/application_cable/channel.rb
|
315
|
-
- spec/dummy/bin/rake
|
316
|
-
- spec/dummy/bin/setup
|
317
|
-
- spec/dummy/bin/rails
|
318
|
-
- spec/dummy/config/routes.rb
|
319
|
-
- spec/dummy/config/locales/en.yml
|
320
|
-
- spec/dummy/config/locales/devise.en.yml
|
321
|
-
- spec/dummy/config/environments/development.rb
|
322
|
-
- spec/dummy/config/environments/test.rb
|
323
|
-
- spec/dummy/config/environment.rb
|
324
|
-
- spec/dummy/config/application.rb
|
325
|
-
- spec/dummy/config/database.yml
|
326
|
-
- spec/dummy/config/boot.rb
|
327
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
328
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
329
|
-
- spec/dummy/config/initializers/mime_types.rb
|
330
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
331
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
332
|
-
- spec/dummy/config/initializers/assets.rb
|
333
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
334
|
-
- spec/dummy/config/initializers/defra_ruby_features.rb
|
335
|
-
- spec/dummy/config/initializers/devise.rb
|
336
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
337
|
-
- spec/dummy/config/initializers/inflections.rb
|
338
|
-
- spec/dummy/config.ru
|
339
|
-
- spec/dummy/Rakefile
|
340
|
-
- spec/dummy/public/favicon.ico
|
341
|
-
- spec/dummy/public/422.html
|
342
|
-
- spec/dummy/public/apple-touch-icon.png
|
343
|
-
- spec/dummy/public/500.html
|
344
|
-
- spec/dummy/public/404.html
|
345
|
-
- spec/dummy/public/apple-touch-icon-precomposed.png
|
346
|
-
- spec/dummy/db/schema.rb
|
347
|
-
- spec/dummy/db/test.sqlite3
|
348
|
-
- spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb
|
349
|
-
- spec/dummy/db/migrate/20200624115316_devise_create_users.rb
|
350
|
-
- spec/dummy/log/test.log
|
351
|
-
- spec/dummy/tmp/development_secret.txt
|
352
|
-
- spec/examples.txt
|
353
|
-
- spec/requests/defra_ruby_features/feature_toggles_spec.rb
|
354
|
-
- spec/support/factory_bot.rb
|
355
|
-
- spec/support/simplecov.rb
|
356
|
-
- spec/support/migrations.rb
|
357
|
-
- spec/support/pry.rb
|
358
|
-
- spec/support/devise.rb
|
359
|
-
- spec/support/database_cleaner.rb
|
360
|
-
- spec/support/rails_controller_testing.rb
|
361
|
-
- spec/factories/feature_toggle.rb
|
362
|
-
- spec/factories/user.rb
|
363
|
-
- spec/lib/defra_ruby_mocks/configuration_spec.rb
|
364
|
-
- spec/rails_helper.rb
|
117
|
+
test_files: []
|
data/spec/dummy/Rakefile
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
4
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
5
|
-
|
6
|
-
require_relative "config/application"
|
7
|
-
|
8
|
-
Rails.application.load_tasks
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require rails-ujs
|
14
|
-
//= require_tree .
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class ApplicationJob < ActiveJob::Base
|
4
|
-
# Automatically retry jobs that encountered a deadlock
|
5
|
-
# retry_on ActiveRecord::Deadlocked
|
6
|
-
|
7
|
-
# Most jobs are safe to ignore if the underlying records are no longer available
|
8
|
-
# discard_on ActiveJob::DeserializationError
|
9
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class User < ApplicationRecord
|
4
|
-
# Include default devise modules. Others available are:
|
5
|
-
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
6
|
-
devise :database_authenticatable, :registerable,
|
7
|
-
:recoverable, :rememberable, :validatable
|
8
|
-
end
|
data/spec/dummy/bin/rails
DELETED
data/spec/dummy/bin/rake
DELETED
data/spec/dummy/bin/setup
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "fileutils"
|
3
|
-
|
4
|
-
# path to your application root.
|
5
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
6
|
-
|
7
|
-
def system!(*args)
|
8
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
9
|
-
end
|
10
|
-
|
11
|
-
FileUtils.chdir APP_ROOT do
|
12
|
-
# This script is a way to setup or update your development environment automatically.
|
13
|
-
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
|
14
|
-
# Add necessary setup steps to this file.
|
15
|
-
|
16
|
-
puts "== Installing dependencies =="
|
17
|
-
system! "gem install bundler --conservative"
|
18
|
-
system("bundle check") || system!("bundle install")
|
19
|
-
|
20
|
-
puts "\n== Removing old logs and tempfiles =="
|
21
|
-
system! "bin/rails log:clear tmp:clear"
|
22
|
-
|
23
|
-
puts "\n== Restarting application server =="
|
24
|
-
system! "bin/rails restart"
|
25
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "boot"
|
4
|
-
|
5
|
-
require "rails"
|
6
|
-
# Pick the frameworks you want:
|
7
|
-
require "active_model/railtie"
|
8
|
-
require "active_record/railtie"
|
9
|
-
require "action_controller/railtie"
|
10
|
-
require "action_view/railtie"
|
11
|
-
require "sprockets/railtie"
|
12
|
-
require "devise"
|
13
|
-
require "cancancan"
|
14
|
-
|
15
|
-
Bundler.require(*Rails.groups)
|
16
|
-
require "defra_ruby_features"
|
17
|
-
|
18
|
-
module Dummy
|
19
|
-
class Application < Rails::Application
|
20
|
-
# Initialize configuration defaults for originally generated Rails version.
|
21
|
-
config.load_defaults 6.0
|
22
|
-
config.autoloader = :classic
|
23
|
-
|
24
|
-
# Settings in config/environments/* take precedence over those specified here.
|
25
|
-
# Application configuration can go into files in config/initializers
|
26
|
-
# -- all .rb files in that directory are automatically loaded after loading
|
27
|
-
# the framework and any gems in your application.
|
28
|
-
end
|
29
|
-
end
|
data/spec/dummy/config/boot.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Set up gems listed in the Gemfile.
|
4
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
|
5
|
-
|
6
|
-
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
7
|
-
$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
#
|
7
|
-
default: &default
|
8
|
-
adapter: sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
development:
|
13
|
-
<<: *default
|
14
|
-
database: db/development.sqlite3
|
15
|
-
|
16
|
-
# Warning: The database defined as "test" will be erased and
|
17
|
-
# re-generated from your development database when you run "rake".
|
18
|
-
# Do not set this db to the same as development or production.
|
19
|
-
test:
|
20
|
-
<<: *default
|
21
|
-
database: db/test.sqlite3
|