iqvoc_similar_terms 2.7.0 → 2.11.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +67 -0
  3. data/.gitignore +7 -0
  4. data/Gemfile +14 -15
  5. data/Gemfile.lock +483 -314
  6. data/README.md +5 -6
  7. data/app/assets/javascripts/manifest.js +2 -0
  8. data/app/assets/stylesheets/manifest.scss +3 -0
  9. data/app/controllers/similar_terms_controller.rb +27 -11
  10. data/app/models/services/similar_terms_service.rb +141 -0
  11. data/app/views/similar_terms/_form.html.erb +21 -0
  12. data/app/views/similar_terms/new.html.erb +21 -0
  13. data/app/views/similar_terms/show.html.erb +32 -28
  14. data/bin/bundle +3 -0
  15. data/bin/rails +3 -9
  16. data/bin/rake +3 -6
  17. data/bin/setup +33 -0
  18. data/bin/update +31 -0
  19. data/bin/yarn +17 -0
  20. data/config/application.rb +30 -48
  21. data/config/boot.rb +3 -5
  22. data/config/cable.yml +10 -0
  23. data/config/database.yml.postgresql +26 -0
  24. data/config/environment.rb +4 -4
  25. data/config/initializers/content_security_policy.rb +25 -0
  26. data/config/initializers/filter_parameter_logging.rb +8 -0
  27. data/config/initializers/inflections.rb +16 -0
  28. data/config/initializers/iqvoc.rb +5 -4
  29. data/config/initializers/new_framework_defaults_6_1.rb +67 -0
  30. data/config/initializers/permissions_policy.rb +11 -0
  31. data/config/locales/de.yml +6 -0
  32. data/config/locales/en.yml +6 -0
  33. data/config/routes.rb +2 -2
  34. data/config/storage.yml +34 -0
  35. data/config.ru +4 -2
  36. data/faucet.config.js +46 -0
  37. data/iqvoc_similar_terms.gemspec +1 -1
  38. data/lib/iqvoc/similar_terms/version.rb +1 -1
  39. data/lib/iqvoc/similar_terms.rb +12 -97
  40. data/lib/iqvoc_similar_terms.rb +1 -0
  41. data/package-lock.json +2333 -0
  42. data/package.json +29 -0
  43. data/test/concept_test.nt +5 -0
  44. data/test/concept_test.ttl +8 -1
  45. data/test/controllers/similar_terms_controller_test.rb +167 -0
  46. data/test/models/entity_resolution_test.rb +6 -6
  47. data/test/models/results_test.rb +43 -17
  48. metadata +31 -23
  49. data/.travis.yml +0 -30
  50. data/bin/spring +0 -18
  51. data/config/initializers/iqvoc_similiar_terms.rb +0 -1
  52. data/config/initializers/wrap_parameters.rb +0 -14
  53. data/test/controllers/api_test.rb +0 -58
  54. data/test/controllers/onebox_test.rb +0 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4a4df2aec8cee18857672d8c0d13f5d37be41efa
4
- data.tar.gz: 2ccacc1d471ae72f2348b9d97817b22062682431
2
+ SHA256:
3
+ metadata.gz: 2b00193bc1d5d70d673f3158f547da086969a86721ed085fada1597a12e483dd
4
+ data.tar.gz: 3ca0a92f10703cd50e01b97d144c076d529f9e02c10056f3aee853a4b90e9d88
5
5
  SHA512:
6
- metadata.gz: 872d3b5d8e8716d253df3cd99b657af0b508c7669aa117c509d55496de48ad99c2e41f671e0f9ac781ce224d08300220b3a5604a10a1a1c75eb13a488127020b
7
- data.tar.gz: 4e024ad8dd9b79e33aad0685f718e1e0cc34cc071e9cffd1a0f27449f4b547403e48115421c9487e0b7cd91fb4d8a073fd650d8237e6fdc31510a8716aa60f33
6
+ metadata.gz: 4d0f54bb9ac1aa8c584d2f46a3bcf9dc0d1576d1c2b6e3f44ee39bd98140b05da36bafb2467e2a09edf1efc86a03a6e1fb45c392611c0f717c2a1bc339cdbb87
7
+ data.tar.gz: '0494032412b1618abecd80fc4c955f32e22093f114e0492a59ffec561aaff42c609dbe978469259fccee2bc67386777f024d2345d5f9246e2738eab226f42dcc'
@@ -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
@@ -7,4 +7,11 @@
7
7
  /config/initializers/secret_token.rb
8
8
  *.gem
9
9
 
10
+ .idea
11
+
12
+ public/assets
13
+ public/export
14
+ public/uploads
15
+
10
16
  .ruby-version
17
+ node_modules
data/Gemfile CHANGED
@@ -1,23 +1,22 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'iqvoc', '~> 4.11.1', :github => 'innoq/iqvoc', branch: :master
3
+ gem 'iqvoc', '~> 4.14.4', github: 'innoq/iqvoc', branch: 'master'
4
4
 
5
- group :development, :test do
6
- gem 'pry-rails'
5
+ platforms :ruby do
6
+ gem 'pg'
7
+ end
7
8
 
8
- platforms :ruby do
9
- gem 'mysql2'
10
- gem 'sqlite3'
11
- gem 'hirb-unicode'
12
- gem 'cane'
13
- end
14
- platforms :jruby do
15
- gem 'activerecord-jdbcsqlite3-adapter'
16
- gem 'activerecord-jdbcmysql-adapter'
17
- end
9
+ group :development do
10
+ gem 'better_errors'
11
+ gem 'web-console'
12
+ gem 'listen'
13
+ end
14
+
15
+ group :development, :test do
16
+ gem 'pry-rails', require: 'pry'
18
17
  end
19
18
 
20
19
  group :test do
21
- gem 'iqvoc_skosxl', '~> 2.9.0', git: 'https://github.com/innoq/iqvoc_skosxl', branch: 'master'
22
- gem 'iqvoc_compound_forms', '~> 2.9.0', git: 'https://github.com/innoq/iqvoc_compound_forms', branch: 'master'
20
+ gem 'iqvoc_skosxl', '~> 2.11.3', github: 'innoq/iqvoc_skosxl', branch: 'master'
21
+ gem 'iqvoc_compound_forms', '~> 2.11.3', github: 'innoq/iqvoc_compound_forms', branch: 'master'
23
22
  end