defra_ruby_features 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/defra_ruby_features/version.rb +1 -1
  4. metadata +21 -262
  5. data/spec/dummy/Rakefile +0 -8
  6. data/spec/dummy/app/assets/config/manifest.js +0 -3
  7. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  8. data/spec/dummy/app/channels/application_cable/channel.rb +0 -6
  9. data/spec/dummy/app/channels/application_cable/connection.rb +0 -6
  10. data/spec/dummy/app/controllers/application_controller.rb +0 -4
  11. data/spec/dummy/app/controllers/test_controller.rb +0 -7
  12. data/spec/dummy/app/helpers/application_helper.rb +0 -4
  13. data/spec/dummy/app/javascript/packs/application.js +0 -14
  14. data/spec/dummy/app/jobs/application_job.rb +0 -9
  15. data/spec/dummy/app/models/ability.rb +0 -9
  16. data/spec/dummy/app/models/application_record.rb +0 -5
  17. data/spec/dummy/app/models/feature_toggle.rb +0 -4
  18. data/spec/dummy/app/models/user.rb +0 -8
  19. data/spec/dummy/app/views/layouts/application.html.erb +0 -12
  20. data/spec/dummy/bin/rails +0 -4
  21. data/spec/dummy/bin/rake +0 -4
  22. data/spec/dummy/bin/setup +0 -25
  23. data/spec/dummy/config/application.rb +0 -29
  24. data/spec/dummy/config/boot.rb +0 -7
  25. data/spec/dummy/config/database.yml +0 -21
  26. data/spec/dummy/config/environment.rb +0 -7
  27. data/spec/dummy/config/environments/development.rb +0 -50
  28. data/spec/dummy/config/environments/test.rb +0 -41
  29. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -10
  30. data/spec/dummy/config/initializers/assets.rb +0 -14
  31. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  32. data/spec/dummy/config/initializers/content_security_policy.rb +0 -30
  33. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -7
  34. data/spec/dummy/config/initializers/defra_ruby_features.rb +0 -7
  35. data/spec/dummy/config/initializers/devise.rb +0 -311
  36. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  37. data/spec/dummy/config/initializers/inflections.rb +0 -18
  38. data/spec/dummy/config/initializers/mime_types.rb +0 -6
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -11
  40. data/spec/dummy/config/locales/devise.en.yml +0 -65
  41. data/spec/dummy/config/locales/en.yml +0 -33
  42. data/spec/dummy/config/routes.rb +0 -7
  43. data/spec/dummy/config.ru +0 -7
  44. data/spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb +0 -12
  45. data/spec/dummy/db/migrate/20200624115316_devise_create_users.rb +0 -44
  46. data/spec/dummy/db/schema.rb +0 -34
  47. data/spec/dummy/db/test.sqlite3 +0 -0
  48. data/spec/dummy/log/test.log +0 -341
  49. data/spec/dummy/public/404.html +0 -67
  50. data/spec/dummy/public/422.html +0 -67
  51. data/spec/dummy/public/500.html +0 -66
  52. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  53. data/spec/dummy/public/apple-touch-icon.png +0 -0
  54. data/spec/dummy/public/favicon.ico +0 -0
  55. data/spec/dummy/tmp/development_secret.txt +0 -1
  56. data/spec/examples.txt +0 -13
  57. data/spec/factories/feature_toggle.rb +0 -8
  58. data/spec/factories/user.rb +0 -11
  59. data/spec/lib/defra_ruby_mocks/configuration_spec.rb +0 -13
  60. data/spec/rails_helper.rb +0 -54
  61. data/spec/requests/defra_ruby_features/feature_toggles_spec.rb +0 -145
  62. data/spec/spec_helper.rb +0 -83
  63. data/spec/support/database_cleaner.rb +0 -19
  64. data/spec/support/devise.rb +0 -5
  65. data/spec/support/factory_bot.rb +0 -8
  66. data/spec/support/migrations.rb +0 -10
  67. data/spec/support/pry.rb +0 -7
  68. data/spec/support/rails_controller_testing.rb +0 -5
  69. data/spec/support/simplecov.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b5542adc4641cfab12314df7f2e81485bdc0a8b407cf2afca804c5b05edc4de
4
- data.tar.gz: 88c9aea940bfdf4a7245e62bb4b0968cac9188b95b7863f34bf311351e4ffd05
3
+ metadata.gz: fe47a9f0a98c0d188f7fd10a2a2b1b8b6b7e8d91eba9ca07837398598cf6e165
4
+ data.tar.gz: 0aa9f4e6e1efcb1e1ab154040b81d76e8a9127f5e0e4fd07795c782236952145
5
5
  SHA512:
6
- metadata.gz: 3aeeb6320a81091e1c1c782de67323f617f6e072d08e92a2030c5c80e50ce064a30ea4906abe2ee49b8f383f55f0fb4a1399c7a12a05230f9fa1e56b7ad5cabf
7
- data.tar.gz: 7a19eb3b1581bd070e9be2b313f3503dcdb7c8f9f66a1656e05622f0e17731d5c7c3583cbb53d7f03007b941ae8bd87ce0accc6516784cb471300b6e5bab0941
6
+ metadata.gz: 70d335f762b7b49db9ba3e6e66919b97842650d74f4d223d63f1149f2d15e4e8a22ccea35a981c72dafb31592df8a683faa22d9ffd534262c7ea4ebd7083ef41
7
+ data.tar.gz: e873cdc54f33b1cd5d99f06a6f265651e23cfdddf018ec99abd75026d2e89c604f42e353b759ea0a7f5b323d8bc12601f390ad39649d9925e66fc449dc40f5b5
data/README.md CHANGED
@@ -21,7 +21,7 @@ Things to note
21
21
 
22
22
  Make sure you already have:
23
23
 
24
- - Ruby 2.7.1
24
+ - Ruby 3.2.2
25
25
  - [Bundler](http://bundler.io/) – for installing Ruby gems
26
26
 
27
27
  ## Mounting the engine
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyFeatures
4
- VERSION = "0.1.4"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,121 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_features
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
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: 2021-08-31 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '6.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '6.0'
27
- - !ruby/object:Gem::Dependency
28
- name: cancancan
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '1.10'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '1.10'
41
- - !ruby/object:Gem::Dependency
42
- name: devise
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 4.4.3
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 4.4.3
55
- - !ruby/object:Gem::Dependency
56
- name: github_changelog_generator
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: database_cleaner
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: defra_ruby_style
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: factory_bot_rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: pry-byebug
113
15
  requirement: !ruby/object:Gem::Requirement
114
16
  requirements:
115
17
  - - ">="
116
18
  - !ruby/object:Gem::Version
117
19
  version: '0'
118
- type: :development
20
+ type: :runtime
119
21
  prerelease: false
120
22
  version_requirements: !ruby/object:Gem::Requirement
121
23
  requirements:
@@ -123,13 +25,13 @@ dependencies:
123
25
  - !ruby/object:Gem::Version
124
26
  version: '0'
125
27
  - !ruby/object:Gem::Dependency
126
- name: rails-controller-testing
28
+ name: sprockets-rails
127
29
  requirement: !ruby/object:Gem::Requirement
128
30
  requirements:
129
31
  - - ">="
130
32
  - !ruby/object:Gem::Version
131
33
  version: '0'
132
- type: :development
34
+ type: :runtime
133
35
  prerelease: false
134
36
  version_requirements: !ruby/object:Gem::Requirement
135
37
  requirements:
@@ -137,47 +39,33 @@ dependencies:
137
39
  - !ruby/object:Gem::Version
138
40
  version: '0'
139
41
  - !ruby/object:Gem::Dependency
140
- name: rspec-rails
42
+ name: cancancan
141
43
  requirement: !ruby/object:Gem::Requirement
142
44
  requirements:
143
45
  - - ">="
144
46
  - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
47
+ version: '1.10'
48
+ type: :runtime
147
49
  prerelease: false
148
50
  version_requirements: !ruby/object:Gem::Requirement
149
51
  requirements:
150
52
  - - ">="
151
53
  - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: simplecov
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.17.1
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 0.17.1
54
+ version: '1.10'
167
55
  - !ruby/object:Gem::Dependency
168
- name: sqlite3
56
+ name: devise
169
57
  requirement: !ruby/object:Gem::Requirement
170
58
  requirements:
171
59
  - - ">="
172
60
  - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
61
+ version: '4.9'
62
+ type: :runtime
175
63
  prerelease: false
176
64
  version_requirements: !ruby/object:Gem::Requirement
177
65
  requirements:
178
66
  - - ">="
179
67
  - !ruby/object:Gem::Version
180
- version: '0'
68
+ version: '4.9'
181
69
  description: A Rails engine which can be used to activate and deactivate feature toggles
182
70
  email:
183
71
  - alan.cruikshanks@environment-agency.gov.uk
@@ -202,76 +90,12 @@ files:
202
90
  - lib/defra_ruby_features/engine.rb
203
91
  - lib/defra_ruby_features/version.rb
204
92
  - lib/tasks/changelog.rake
205
- - spec/dummy/Rakefile
206
- - spec/dummy/app/assets/config/manifest.js
207
- - spec/dummy/app/assets/stylesheets/application.css
208
- - spec/dummy/app/channels/application_cable/channel.rb
209
- - spec/dummy/app/channels/application_cable/connection.rb
210
- - spec/dummy/app/controllers/application_controller.rb
211
- - spec/dummy/app/controllers/test_controller.rb
212
- - spec/dummy/app/helpers/application_helper.rb
213
- - spec/dummy/app/javascript/packs/application.js
214
- - spec/dummy/app/jobs/application_job.rb
215
- - spec/dummy/app/models/ability.rb
216
- - spec/dummy/app/models/application_record.rb
217
- - spec/dummy/app/models/feature_toggle.rb
218
- - spec/dummy/app/models/user.rb
219
- - spec/dummy/app/views/layouts/application.html.erb
220
- - spec/dummy/bin/rails
221
- - spec/dummy/bin/rake
222
- - spec/dummy/bin/setup
223
- - spec/dummy/config.ru
224
- - spec/dummy/config/application.rb
225
- - spec/dummy/config/boot.rb
226
- - spec/dummy/config/database.yml
227
- - spec/dummy/config/environment.rb
228
- - spec/dummy/config/environments/development.rb
229
- - spec/dummy/config/environments/test.rb
230
- - spec/dummy/config/initializers/application_controller_renderer.rb
231
- - spec/dummy/config/initializers/assets.rb
232
- - spec/dummy/config/initializers/backtrace_silencers.rb
233
- - spec/dummy/config/initializers/content_security_policy.rb
234
- - spec/dummy/config/initializers/cookies_serializer.rb
235
- - spec/dummy/config/initializers/defra_ruby_features.rb
236
- - spec/dummy/config/initializers/devise.rb
237
- - spec/dummy/config/initializers/filter_parameter_logging.rb
238
- - spec/dummy/config/initializers/inflections.rb
239
- - spec/dummy/config/initializers/mime_types.rb
240
- - spec/dummy/config/initializers/wrap_parameters.rb
241
- - spec/dummy/config/locales/devise.en.yml
242
- - spec/dummy/config/locales/en.yml
243
- - spec/dummy/config/routes.rb
244
- - spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb
245
- - spec/dummy/db/migrate/20200624115316_devise_create_users.rb
246
- - spec/dummy/db/schema.rb
247
- - spec/dummy/db/test.sqlite3
248
- - spec/dummy/log/test.log
249
- - spec/dummy/public/404.html
250
- - spec/dummy/public/422.html
251
- - spec/dummy/public/500.html
252
- - spec/dummy/public/apple-touch-icon-precomposed.png
253
- - spec/dummy/public/apple-touch-icon.png
254
- - spec/dummy/public/favicon.ico
255
- - spec/dummy/tmp/development_secret.txt
256
- - spec/examples.txt
257
- - spec/factories/feature_toggle.rb
258
- - spec/factories/user.rb
259
- - spec/lib/defra_ruby_mocks/configuration_spec.rb
260
- - spec/rails_helper.rb
261
- - spec/requests/defra_ruby_features/feature_toggles_spec.rb
262
- - spec/spec_helper.rb
263
- - spec/support/database_cleaner.rb
264
- - spec/support/devise.rb
265
- - spec/support/factory_bot.rb
266
- - spec/support/migrations.rb
267
- - spec/support/pry.rb
268
- - spec/support/rails_controller_testing.rb
269
- - spec/support/simplecov.rb
270
93
  homepage: https://github.com/DEFRA/defra-ruby-features
271
94
  licenses:
272
95
  - The Open Government Licence (OGL) Version 3
273
- metadata: {}
274
- post_install_message:
96
+ metadata:
97
+ rubygems_mfa_required: 'true'
98
+ post_install_message:
275
99
  rdoc_options: []
276
100
  require_paths:
277
101
  - lib
@@ -279,80 +103,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
103
  requirements:
280
104
  - - ">="
281
105
  - !ruby/object:Gem::Version
282
- version: '0'
106
+ version: '3.1'
283
107
  required_rubygems_version: !ruby/object:Gem::Requirement
284
108
  requirements:
285
109
  - - ">="
286
110
  - !ruby/object:Gem::Version
287
111
  version: '0'
288
112
  requirements: []
289
- rubygems_version: 3.1.2
290
- signing_key:
113
+ rubygems_version: 3.4.10
114
+ signing_key:
291
115
  specification_version: 4
292
116
  summary: Defra Ruby on Rails features manager engine
293
- test_files:
294
- - spec/spec_helper.rb
295
- - spec/dummy/app/models/feature_toggle.rb
296
- - spec/dummy/app/models/ability.rb
297
- - spec/dummy/app/models/application_record.rb
298
- - spec/dummy/app/models/user.rb
299
- - spec/dummy/app/javascript/packs/application.js
300
- - spec/dummy/app/jobs/application_job.rb
301
- - spec/dummy/app/controllers/application_controller.rb
302
- - spec/dummy/app/controllers/test_controller.rb
303
- - spec/dummy/app/views/layouts/application.html.erb
304
- - spec/dummy/app/assets/config/manifest.js
305
- - spec/dummy/app/assets/stylesheets/application.css
306
- - spec/dummy/app/helpers/application_helper.rb
307
- - spec/dummy/app/channels/application_cable/connection.rb
308
- - spec/dummy/app/channels/application_cable/channel.rb
309
- - spec/dummy/bin/rake
310
- - spec/dummy/bin/setup
311
- - spec/dummy/bin/rails
312
- - spec/dummy/config/routes.rb
313
- - spec/dummy/config/locales/en.yml
314
- - spec/dummy/config/locales/devise.en.yml
315
- - spec/dummy/config/environments/development.rb
316
- - spec/dummy/config/environments/test.rb
317
- - spec/dummy/config/environment.rb
318
- - spec/dummy/config/application.rb
319
- - spec/dummy/config/database.yml
320
- - spec/dummy/config/boot.rb
321
- - spec/dummy/config/initializers/application_controller_renderer.rb
322
- - spec/dummy/config/initializers/backtrace_silencers.rb
323
- - spec/dummy/config/initializers/mime_types.rb
324
- - spec/dummy/config/initializers/filter_parameter_logging.rb
325
- - spec/dummy/config/initializers/wrap_parameters.rb
326
- - spec/dummy/config/initializers/assets.rb
327
- - spec/dummy/config/initializers/cookies_serializer.rb
328
- - spec/dummy/config/initializers/defra_ruby_features.rb
329
- - spec/dummy/config/initializers/devise.rb
330
- - spec/dummy/config/initializers/content_security_policy.rb
331
- - spec/dummy/config/initializers/inflections.rb
332
- - spec/dummy/config.ru
333
- - spec/dummy/Rakefile
334
- - spec/dummy/public/favicon.ico
335
- - spec/dummy/public/422.html
336
- - spec/dummy/public/apple-touch-icon.png
337
- - spec/dummy/public/500.html
338
- - spec/dummy/public/404.html
339
- - spec/dummy/public/apple-touch-icon-precomposed.png
340
- - spec/dummy/db/schema.rb
341
- - spec/dummy/db/test.sqlite3
342
- - spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb
343
- - spec/dummy/db/migrate/20200624115316_devise_create_users.rb
344
- - spec/dummy/log/test.log
345
- - spec/dummy/tmp/development_secret.txt
346
- - spec/examples.txt
347
- - spec/requests/defra_ruby_features/feature_toggles_spec.rb
348
- - spec/support/factory_bot.rb
349
- - spec/support/simplecov.rb
350
- - spec/support/migrations.rb
351
- - spec/support/pry.rb
352
- - spec/support/devise.rb
353
- - spec/support/database_cleaner.rb
354
- - spec/support/rails_controller_testing.rb
355
- - spec/factories/feature_toggle.rb
356
- - spec/factories/user.rb
357
- - spec/lib/defra_ruby_mocks/configuration_spec.rb
358
- - 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,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../stylesheets .css
3
- //= link defra_ruby_features_manifest.js
@@ -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,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationCable
4
- class Channel < ActionCable::Channel::Base
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationCable
4
- class Connection < ActionCable::Connection::Base
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationController < ActionController::Base
4
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class TestController < ApplicationController
4
- def index
5
- current_user
6
- end
7
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationHelper
4
- end
@@ -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,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class Ability
4
- include CanCan::Ability
5
-
6
- def initialize(user)
7
- can :manage, FeatureToggle
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationRecord < ActiveRecord::Base
4
- self.abstract_class = true
5
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class FeatureToggle < ApplicationRecord
4
- 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
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
- </head>
8
-
9
- <body>
10
- <%= yield %>
11
- </body>
12
- </html>
data/spec/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path("../config/application", __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
data/spec/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
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
@@ -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
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Load the Rails application.
4
- require_relative "application"
5
-
6
- # Initialize the Rails application.
7
- Rails.application.initialize!