iqvoc_compound_forms 2.9.0 → 2.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +67 -0
  3. data/.gitignore +9 -0
  4. data/Gemfile +12 -8
  5. data/Gemfile.lock +496 -321
  6. data/README.md +3 -4
  7. data/app/assets/images/.gitkeep +0 -0
  8. data/app/assets/javascripts/iqvoc_compound_forms/manifest.js +1 -1
  9. data/app/assets/javascripts/manifest.js +4 -4
  10. data/app/assets/stylesheets/manifest.scss +1 -0
  11. data/app/models/application_record.rb +3 -0
  12. data/app/models/compound_form/base.rb +8 -5
  13. data/app/models/compound_form/content/base.rb +2 -2
  14. data/app/models/concerns/compound_forms_label_extensions.rb +8 -6
  15. data/app/views/partials/compound_form/_compound_form.html.erb +3 -3
  16. data/app/views/partials/compound_form/content/_base.html.erb +2 -2
  17. data/app/views/partials/compound_form/content/_base_no_header.html.erb +15 -0
  18. data/bin/bundle +3 -0
  19. data/bin/rails +3 -5
  20. data/bin/rake +3 -2
  21. data/bin/setup +33 -0
  22. data/bin/update +31 -0
  23. data/bin/yarn +17 -0
  24. data/config/application.rb +29 -48
  25. data/config/boot.rb +3 -12
  26. data/config/cable.yml +10 -0
  27. data/config/database.yml.postgresql +26 -0
  28. data/config/environment.rb +4 -4
  29. data/config/initializers/content_security_policy.rb +25 -0
  30. data/config/initializers/filter_parameter_logging.rb +8 -0
  31. data/config/initializers/inflections.rb +16 -0
  32. data/config/initializers/permissions_policy.rb +11 -0
  33. data/config/locales/de.yml +2 -0
  34. data/config/locales/en.yml +2 -0
  35. data/config/storage.yml +34 -0
  36. data/config.ru +4 -2
  37. data/db/migrate/20120112100000_create_compound_forms.rb +1 -1
  38. data/db/migrate/20150108153131_add_fk_constraints_iqvoc_compound_forms.rb +1 -1
  39. data/faucet.config.js +49 -0
  40. data/iqvoc_compound_forms.gemspec +2 -2
  41. data/lib/iqvoc/compound_forms/version.rb +1 -1
  42. data/package-lock.json +1495 -0
  43. data/package.json +32 -0
  44. data/public/favicon.ico +0 -0
  45. data/test/integration/compound_form_ui_test.rb +2 -2
  46. metadata +30 -18
  47. data/.travis.yml +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0500af2fb90c1e6a506e5aad6fa5b5e337b98444
4
- data.tar.gz: 087b402f5c5d274c027974324d88e4c20d1f1dac
2
+ SHA256:
3
+ metadata.gz: 35a99bdde174a798da842418bfb5c67417b4f6cbdb9a277cd2b48d90256851c7
4
+ data.tar.gz: e3182038f0f4faeb5a88944bfb828c045a9aaf4041354701dacaacf48f940360
5
5
  SHA512:
6
- metadata.gz: c3e6eb2cbdcccb3d845372ab6ce5e2ad6aed72047c02edd772131d5a2f161ccefb4d76666e06a14bb66a0360df4a7581ece5a47acd67df5028b24954a733ad09
7
- data.tar.gz: 4823c462e42c7a4cc7d7ed3de5b951d5f204a67a46362a5386bbdc93c9134c32a2440c4b3dafff902531cc03591641c83d6df41a2addf0b9f787be351bee9022
6
+ metadata.gz: 82cdddcacd16461db340ed3f54c1755e49e09b53614ba046b10808e4859246440436b3e0e5b8102f6dfaf5c3c8ee7b038bf252556f031af73e296ff880b0755a
7
+ data.tar.gz: 9dbe115773df36c878b578f3a988e3103ce91a890ec88e7bfd4136beaacce1ca29e2d9d286deef15082b67b8fcc4d6b77049496d82676e53675942e717e3aa84
@@ -0,0 +1,67 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ strategy:
8
+ fail-fast: false
9
+ matrix:
10
+ ruby: ['2.7', '3.0']
11
+ runs-on: ubuntu-latest
12
+ services:
13
+ postgres:
14
+ image: postgres:12
15
+ ports: ['5432:5432']
16
+ options: >-
17
+ --health-cmd pg_isready
18
+ --health-interval 10s
19
+ --health-timeout 5s
20
+ --health-retries 5
21
+ env:
22
+ POSTGRES_USER: postgres
23
+ POSTGRES_PASSWORD: postgres
24
+ POSTGRES_DB: postgres
25
+ steps:
26
+ - name: Checkout repository
27
+ uses: actions/checkout@v2
28
+
29
+ - name: Setup Ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{ matrix.ruby }}
33
+
34
+ - name: Caching dependencies
35
+ uses: actions/cache@v1
36
+ with:
37
+ path: vendor/bundle
38
+ key: bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
39
+ restore-keys: |
40
+ bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}-
41
+
42
+ - name: Bundle Install
43
+ run: |
44
+ bundle config path vendor/bundle
45
+ bundle install --jobs 4 --retry 3
46
+
47
+ - name: Setup Node
48
+ uses: actions/setup-node@v2
49
+ with:
50
+ node-version: '14'
51
+
52
+ - name: Install Node dependencies
53
+ run: npm install
54
+
55
+ - name: Compile assets
56
+ run: npm run compile
57
+
58
+ - name: Setup Database
59
+ env:
60
+ RAILS_ENV: test
61
+ run: |
62
+ cp config/database.yml.postgresql config/database.yml
63
+ bin/rails db:create
64
+ bin/rails db:migrate
65
+
66
+ - name: Run Tests
67
+ run: bin/rails test
data/.gitignore CHANGED
@@ -6,3 +6,12 @@
6
6
  /config/database.yml
7
7
  /config/initializers/secret_token.rb
8
8
  *.gem
9
+
10
+ .idea
11
+
12
+ public/assets
13
+ public/export
14
+ public/uploads
15
+
16
+ .ruby-version
17
+ node_modules
data/Gemfile CHANGED
@@ -1,22 +1,26 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'iqvoc', '~> 4.11.0', :github => 'innoq/iqvoc', branch: 'master'
4
- gem 'iqvoc_skosxl', '~> 2.9.0', :github => 'innoq/iqvoc_skosxl', branch: 'master'
3
+ gem 'iqvoc', '~> 4.14.4', github: 'innoq/iqvoc', branch: 'master'
4
+ gem 'iqvoc_skosxl', '~> 2.11.3', github: 'innoq/iqvoc_skosxl', branch: 'master'
5
+
6
+ group :development do
7
+ gem 'better_errors'
8
+ gem 'web-console'
9
+ gem 'listen'
10
+ end
5
11
 
6
12
  group :development, :test do
7
13
  gem 'pry-rails'
8
14
 
9
15
  group :test do
10
- gem 'capybara', '~> 2.2.1'
11
- gem 'poltergeist', '~> 1.5.0'
16
+ gem 'capybara'
17
+ gem 'poltergeist'
12
18
  end
13
19
 
14
20
  platforms :ruby do
15
- gem 'mysql2'
16
- gem 'sqlite3'
21
+ gem 'pg'
17
22
  end
18
23
  platforms :jruby do
19
- gem 'activerecord-jdbcsqlite3-adapter'
20
- gem 'activerecord-jdbcmysql-adapter'
24
+ gem 'activerecord-jdbcpostgresql-adapter'
21
25
  end
22
26
  end