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.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +67 -0
- data/.gitignore +11 -1
- data/Gemfile +14 -14
- data/Gemfile.lock +526 -146
- data/README.md +7 -12
- data/app/assets/javascripts/manifest.js +2 -0
- data/app/assets/stylesheets/manifest.scss +3 -0
- data/app/controllers/similar_terms_controller.rb +45 -12
- data/app/models/services/similar_terms_service.rb +141 -0
- data/app/views/similar_terms/_form.html.erb +21 -0
- data/app/views/similar_terms/new.html.erb +21 -0
- data/app/views/similar_terms/show.html.erb +32 -28
- data/app/views/similar_terms/show.xml.builder +17 -0
- data/bin/bundle +3 -0
- data/bin/rails +4 -0
- data/bin/rake +4 -0
- data/bin/setup +33 -0
- data/bin/update +31 -0
- data/bin/yarn +17 -0
- data/config/application.rb +30 -59
- data/config/boot.rb +3 -5
- data/config/cable.yml +10 -0
- data/config/database.yml.mysql +3 -3
- data/config/database.yml.postgresql +26 -0
- data/config/engine.rb +1 -1
- data/config/environment.rb +4 -4
- data/config/environments/development.rb +0 -1
- data/config/environments/test.rb +0 -1
- data/config/initializers/apipie.rb +5 -0
- data/config/initializers/content_security_policy.rb +25 -0
- data/config/initializers/filter_parameter_logging.rb +8 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/iqvoc.rb +6 -4
- data/config/initializers/new_framework_defaults_6_1.rb +67 -0
- data/config/initializers/permissions_policy.rb +11 -0
- data/config/locales/de.yml +12 -0
- data/config/locales/en.yml +12 -0
- data/config/routes.rb +4 -7
- data/config/secrets.yml +8 -0
- data/config/storage.yml +34 -0
- data/config.ru +4 -2
- data/db/migrate/.gitkeep +0 -0
- data/faucet.config.js +46 -0
- data/iqvoc_similar_terms.gemspec +1 -2
- data/lib/iqvoc/similar_terms/version.rb +1 -1
- data/lib/iqvoc/similar_terms.rb +12 -71
- data/lib/iqvoc_similar_terms.rb +14 -1
- data/package-lock.json +1486 -0
- data/package.json +29 -0
- data/test/compound_forms.nt +20 -0
- data/test/concept_test.nt +25 -0
- data/test/concept_test.ttl +33 -0
- data/test/controllers/similar_terms_controller_test.rb +167 -0
- data/test/models/entity_resolution_test.rb +42 -0
- data/test/models/results_test.rb +105 -0
- data/test/similar_terms.nt +14 -0
- data/test/similar_terms.ttl +19 -0
- data/test/test_helper.rb +4 -0
- metadata +58 -25
- data/.travis.yml +0 -18
- data/config/initializers/secret_token.rb.template +0 -16
- data/config/initializers/wrap_parameters.rb +0 -14
- data/script/ci/travis-before-build +0 -19
- data/script/ci/travis-build +0 -11
- data/test/functional/api_test.rb +0 -68
- data/test/unit/entity_resolution_test.rb +0 -46
- data/test/unit/results_test.rb +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '0388a387aede15b7395eb171d76799d45d096e65807b033369a39fd9a09841a1'
|
4
|
+
data.tar.gz: 521f82967a2fcd5b3e8dd12afcfab3d3d8ac6a6361d34eff20b6198a11a4963c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
source '
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem '
|
4
|
-
gem 'iqvoc', '~> 4.1.0'
|
3
|
+
gem 'iqvoc', '~> 4.14.4', github: 'innoq/iqvoc', branch: 'master'
|
5
4
|
|
6
|
-
|
5
|
+
platforms :ruby do
|
6
|
+
gem 'pg'
|
7
|
+
end
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
group :development do
|
10
|
+
gem 'better_errors'
|
11
|
+
gem 'web-console'
|
12
|
+
gem 'listen'
|
13
|
+
end
|
11
14
|
|
12
|
-
|
13
|
-
|
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 '
|
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
|