iqvoc_compound_forms 2.11.3 → 2.13.0

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +15 -16
  3. data/app/assets/stylesheets/_manifest.scss +1 -0
  4. data/app/assets/stylesheets/application.scss +1 -0
  5. data/app/javascript/application.js +8 -0
  6. data/app/javascript/manifest.js +10 -0
  7. data/app/models/compound_form/base.rb +8 -5
  8. data/app/models/compound_form/content/base.rb +7 -2
  9. data/app/models/concerns/compound_forms_label_extensions.rb +2 -3
  10. data/app/views/partials/compound_form/_compound_form.html.erb +1 -1
  11. data/config/application.rb +9 -5
  12. data/config/ci.rb +20 -0
  13. data/config/environments/development.rb +1 -1
  14. data/config/environments/production.rb +1 -1
  15. data/config/environments/test.rb +1 -1
  16. data/config/initializers/content_security_policy.rb +6 -2
  17. data/config/initializers/engine_extensions.rb +1 -1
  18. data/config/initializers/filter_parameter_logging.rb +4 -4
  19. data/config/initializers/iqvoc.rb +10 -4
  20. data/config/initializers/permissions_policy.rb +11 -9
  21. data/config/puma.rb +42 -0
  22. data/iqvoc_compound_forms.gemspec +9 -9
  23. data/lib/iqvoc/compound_forms/version.rb +1 -1
  24. data/test/integration/compound_form_ui_test.rb +3 -3
  25. data/test/models/compound_form_test.rb +1 -1
  26. data/test/test_helper.rb +2 -2
  27. metadata +22 -36
  28. data/.github/workflows/ci.yml +0 -67
  29. data/.gitignore +0 -17
  30. data/Gemfile.lock +0 -555
  31. data/app/assets/javascripts/iqvoc_compound_forms/manifest.js +0 -1
  32. data/app/assets/javascripts/manifest.js +0 -4
  33. data/app/assets/stylesheets/manifest.scss +0 -1
  34. data/bin/bundle +0 -3
  35. data/bin/rails +0 -4
  36. data/bin/rake +0 -4
  37. data/bin/setup +0 -33
  38. data/bin/update +0 -31
  39. data/bin/yarn +0 -17
  40. data/config/secrets.yml +0 -11
  41. data/config.ru +0 -6
  42. data/faucet.config.js +0 -49
  43. data/package-lock.json +0 -1495
  44. data/package.json +0 -32
  45. data/public/favicon.ico +0 -0
  46. data/script/rails +0 -6
  47. /data/{public/.gitkeep → app/assets/builds/.keep} +0 -0
  48. /data/app/{assets/javascripts → javascript}/iqvoc_compound_forms/compound_forms.js +0 -0
data/bin/update DELETED
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- include FileUtils
4
-
5
- # path to your application root.
6
- APP_ROOT = File.expand_path('..', __dir__)
7
-
8
- def system!(*args)
9
- system(*args) || abort("\n== Command #{args} failed ==")
10
- end
11
-
12
- chdir APP_ROOT do
13
- # This script is a way to update your development environment automatically.
14
- # Add necessary update steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # Install JavaScript dependencies if using Yarn
21
- # system('bin/yarn')
22
-
23
- puts "\n== Updating database =="
24
- system! 'bin/rails db:migrate'
25
-
26
- puts "\n== Removing old logs and tempfiles =="
27
- system! 'bin/rails log:clear tmp:clear'
28
-
29
- puts "\n== Restarting application server =="
30
- system! 'bin/rails restart'
31
- end
data/bin/yarn DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path('..', __dir__)
3
- Dir.chdir(APP_ROOT) do
4
- yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
5
- select { |dir| File.expand_path(dir) != __dir__ }.
6
- product(["yarn", "yarn.cmd", "yarn.ps1"]).
7
- map { |dir, file| File.expand_path(file, dir) }.
8
- find { |file| File.executable?(file) }
9
-
10
- if yarn
11
- exec yarn, *ARGV
12
- else
13
- $stderr.puts "Yarn executable was not detected in the system."
14
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
15
- exit 1
16
- end
17
- end
data/config/secrets.yml DELETED
@@ -1,11 +0,0 @@
1
- development:
2
- secret_key_base: development
3
-
4
- test:
5
- secret_key_base: test
6
-
7
- production:
8
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
9
-
10
- heroku:
11
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
data/config.ru DELETED
@@ -1,6 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative "config/environment"
4
-
5
- run Rails.application
6
- Rails.application.load_server
data/faucet.config.js DELETED
@@ -1,49 +0,0 @@
1
- module.exports = {
2
- js: [
3
- {
4
- source: "./node_modules/jquery/dist/jquery.js",
5
- target: "./public/assets/javascripts/jquery.js",
6
- exports: "jQuery",
7
- compact: "mangle"
8
- },
9
- {
10
- source: "./app/assets/javascripts/manifest.js",
11
- target: "./public/assets/javascripts/manifest.js",
12
- externals: { jquery: "jQuery" },
13
- },
14
- {
15
- source: "./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
16
- target: "./public/assets/javascripts/bootstrap.bundle.min.js",
17
- externals: { jquery: "jQuery" },
18
- compact: "minify"
19
- }
20
- ],
21
- sass: [{
22
- source: "./app/assets/stylesheets/manifest.scss",
23
- target: "./public/assets/stylesheets/manifest.css"
24
- }],
25
- static: [{
26
- source: "./app/assets/images",
27
- target: "./public/assets/images"
28
- },
29
- {
30
- source: "./node_modules/iqvoc/app/assets/images",
31
- target: "./public/assets/images"
32
- },
33
- {
34
- source: "./node_modules/iqvoc/app/assets/fonts",
35
- target: "./public/assets/fonts"
36
- },
37
- {
38
- source: "./node_modules/font-awesome/fonts",
39
- target: "./public/assets/fonts",
40
- fingerprint: false
41
- }
42
- ],
43
- manifest: {
44
- target: "./public/assets/manifest.json",
45
- key: "short",
46
- webRoot: "./public"
47
- },
48
- watchDirs: ["./app/assets"]
49
- };