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.
- checksums.yaml +4 -4
- data/Gemfile +15 -16
- data/app/assets/stylesheets/_manifest.scss +1 -0
- data/app/assets/stylesheets/application.scss +1 -0
- data/app/javascript/application.js +8 -0
- data/app/javascript/manifest.js +10 -0
- data/app/models/compound_form/base.rb +8 -5
- data/app/models/compound_form/content/base.rb +7 -2
- data/app/models/concerns/compound_forms_label_extensions.rb +2 -3
- data/app/views/partials/compound_form/_compound_form.html.erb +1 -1
- data/config/application.rb +9 -5
- data/config/ci.rb +20 -0
- data/config/environments/development.rb +1 -1
- data/config/environments/production.rb +1 -1
- data/config/environments/test.rb +1 -1
- data/config/initializers/content_security_policy.rb +6 -2
- data/config/initializers/engine_extensions.rb +1 -1
- data/config/initializers/filter_parameter_logging.rb +4 -4
- data/config/initializers/iqvoc.rb +10 -4
- data/config/initializers/permissions_policy.rb +11 -9
- data/config/puma.rb +42 -0
- data/iqvoc_compound_forms.gemspec +9 -9
- data/lib/iqvoc/compound_forms/version.rb +1 -1
- data/test/integration/compound_form_ui_test.rb +3 -3
- data/test/models/compound_form_test.rb +1 -1
- data/test/test_helper.rb +2 -2
- metadata +22 -36
- data/.github/workflows/ci.yml +0 -67
- data/.gitignore +0 -17
- data/Gemfile.lock +0 -555
- data/app/assets/javascripts/iqvoc_compound_forms/manifest.js +0 -1
- data/app/assets/javascripts/manifest.js +0 -4
- data/app/assets/stylesheets/manifest.scss +0 -1
- data/bin/bundle +0 -3
- data/bin/rails +0 -4
- data/bin/rake +0 -4
- data/bin/setup +0 -33
- data/bin/update +0 -31
- data/bin/yarn +0 -17
- data/config/secrets.yml +0 -11
- data/config.ru +0 -6
- data/faucet.config.js +0 -49
- data/package-lock.json +0 -1495
- data/package.json +0 -32
- data/public/favicon.ico +0 -0
- data/script/rails +0 -6
- /data/{public/.gitkeep → app/assets/builds/.keep} +0 -0
- /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
data/config.ru
DELETED
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
|
-
};
|