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.
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 -268
  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 -183
  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: dc192b9c1cb9db9646f8d252879d2ad95ca810a54a6a80b70703e778b426a4e1
4
- data.tar.gz: 5f496b2b146399f3f34b4fe28e99584060d341f1abfc2f47deeaeb3080e754f8
3
+ metadata.gz: fe47a9f0a98c0d188f7fd10a2a2b1b8b6b7e8d91eba9ca07837398598cf6e165
4
+ data.tar.gz: 0aa9f4e6e1efcb1e1ab154040b81d76e8a9127f5e0e4fd07795c782236952145
5
5
  SHA512:
6
- metadata.gz: 2e64b726ffaa189d9a1b649ec269fb068a1b871ffeb222ff7d2fa156339af05448d512081aaefb92670b221c5238c9550e909747fee436497efdb88ee3a6b9fc
7
- data.tar.gz: 61b8c3e11d6fc223dc602e5d319c3e67f746bf972bb8358f97e0616f22218f1689a034d0345c2df72c81fd56a5889ba6f8bbd3049b5bcb2a91ee6ad6d1dd5328
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.3"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.3
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-12 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
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
- - !ruby/object:Gem::Dependency
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-controller-testing
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: :development
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: rspec-rails
42
+ name: cancancan
147
43
  requirement: !ruby/object:Gem::Requirement
148
44
  requirements:
149
45
  - - ">="
150
46
  - !ruby/object:Gem::Version
151
- version: '0'
152
- type: :development
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: '0'
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: sqlite3
56
+ name: devise
175
57
  requirement: !ruby/object:Gem::Requirement
176
58
  requirements:
177
59
  - - ">="
178
60
  - !ruby/object:Gem::Version
179
- version: '0'
180
- type: :development
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: '0'
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
- post_install_message:
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: '0'
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.1.2
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,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!