iqvoc_similar_terms 0.8.0 → 2.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +67 -0
  3. data/.gitignore +11 -1
  4. data/Gemfile +14 -14
  5. data/Gemfile.lock +526 -146
  6. data/README.md +7 -12
  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 +45 -12
  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/app/views/similar_terms/show.xml.builder +17 -0
  15. data/bin/bundle +3 -0
  16. data/bin/rails +4 -0
  17. data/bin/rake +4 -0
  18. data/bin/setup +33 -0
  19. data/bin/update +31 -0
  20. data/bin/yarn +17 -0
  21. data/config/application.rb +30 -59
  22. data/config/boot.rb +3 -5
  23. data/config/cable.yml +10 -0
  24. data/config/database.yml.mysql +3 -3
  25. data/config/database.yml.postgresql +26 -0
  26. data/config/engine.rb +1 -1
  27. data/config/environment.rb +4 -4
  28. data/config/environments/development.rb +0 -1
  29. data/config/environments/test.rb +0 -1
  30. data/config/initializers/apipie.rb +5 -0
  31. data/config/initializers/content_security_policy.rb +25 -0
  32. data/config/initializers/filter_parameter_logging.rb +8 -0
  33. data/config/initializers/inflections.rb +16 -0
  34. data/config/initializers/iqvoc.rb +6 -4
  35. data/config/initializers/new_framework_defaults_6_1.rb +67 -0
  36. data/config/initializers/permissions_policy.rb +11 -0
  37. data/config/locales/de.yml +12 -0
  38. data/config/locales/en.yml +12 -0
  39. data/config/routes.rb +4 -7
  40. data/config/secrets.yml +8 -0
  41. data/config/storage.yml +34 -0
  42. data/config.ru +4 -2
  43. data/db/migrate/.gitkeep +0 -0
  44. data/faucet.config.js +46 -0
  45. data/iqvoc_similar_terms.gemspec +1 -2
  46. data/lib/iqvoc/similar_terms/version.rb +1 -1
  47. data/lib/iqvoc/similar_terms.rb +12 -71
  48. data/lib/iqvoc_similar_terms.rb +14 -1
  49. data/package-lock.json +1486 -0
  50. data/package.json +29 -0
  51. data/test/compound_forms.nt +20 -0
  52. data/test/concept_test.nt +25 -0
  53. data/test/concept_test.ttl +33 -0
  54. data/test/controllers/similar_terms_controller_test.rb +167 -0
  55. data/test/models/entity_resolution_test.rb +42 -0
  56. data/test/models/results_test.rb +105 -0
  57. data/test/similar_terms.nt +14 -0
  58. data/test/similar_terms.ttl +19 -0
  59. data/test/test_helper.rb +4 -0
  60. metadata +58 -25
  61. data/.travis.yml +0 -18
  62. data/config/initializers/secret_token.rb.template +0 -16
  63. data/config/initializers/wrap_parameters.rb +0 -14
  64. data/script/ci/travis-before-build +0 -19
  65. data/script/ci/travis-build +0 -11
  66. data/test/functional/api_test.rb +0 -68
  67. data/test/unit/entity_resolution_test.rb +0 -46
  68. data/test/unit/results_test.rb +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0eaec0b3caf5fbb0da0d2d26d0e5872b3603337f
4
- data.tar.gz: 4ef9b1d6d61ffea7e942ceab50a7d594bf79d87a
2
+ SHA256:
3
+ metadata.gz: '0388a387aede15b7395eb171d76799d45d096e65807b033369a39fd9a09841a1'
4
+ data.tar.gz: 521f82967a2fcd5b3e8dd12afcfab3d3d8ac6a6361d34eff20b6198a11a4963c
5
5
  SHA512:
6
- metadata.gz: 0ada85feb7c1ab0ae5799c9c06df5b7fe2e0e1b285fd707bdbf3ef0f67097ea70efcaac5db9e84e4e5e80f9eb371f5f9f67d9bd2f679721653cca5206701a3ff
7
- data.tar.gz: 5d92281ae57e7a1ff0a4ae6540e6acb69a1b7fe550994816c73e5c44d9ff7f5ebf72ded3cb4ae5ac035c968008aa9baab3af508918c02f084a05e344cd9b24a9
6
+ metadata.gz: edcf9698bbc66cb166917689c2434f503a7501a6d05313ad24385469f201c9e95ffc5a63112a4e3e4235e6a53e8dae6ea11e2cc1c7b34b954386a9add08c97ed
7
+ data.tar.gz: fde8f1fba27a4e5a0844e394d078ce272a900d0ef43f7ac4bebe93da569dc0e12e0768b5183cb0e16aa518a2d83f0cb2e36c7734e032386c3976004b61a20d28
@@ -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
@@ -1,7 +1,17 @@
1
1
  /.bundle
2
2
  /log
3
3
  /tmp
4
- /db/*.sqlite
4
+ /db/*.sqlite*
5
+ /db/schema.rb
5
6
  /config/database.yml
6
7
  /config/initializers/secret_token.rb
7
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,22 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 3.2.13'
4
- gem 'iqvoc', '~> 4.1.0'
3
+ gem 'iqvoc', '~> 4.14.4', github: 'innoq/iqvoc', branch: 'master'
5
4
 
6
- group :development, :test do
5
+ platforms :ruby do
6
+ gem 'pg'
7
+ end
7
8
 
8
- platforms :ruby do
9
- gem 'mysql2'
10
- gem 'sqlite3'
9
+ group :development do
10
+ gem 'better_errors'
11
+ gem 'web-console'
12
+ gem 'listen'
13
+ end
11
14
 
12
- gem 'pry'
13
- gem 'pry-rails'
14
- gem 'pry-debugger'
15
- gem 'hirb-unicode'
16
- gem 'cane'
17
- end
15
+ group :development, :test do
16
+ gem 'pry-rails', require: 'pry'
18
17
  end
19
18
 
20
19
  group :test do
21
- gem 'minitest'
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'
22
22
  end