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.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +67 -0
- data/.gitignore +7 -0
- data/Gemfile +14 -15
- data/Gemfile.lock +483 -314
- data/README.md +5 -6
- data/app/assets/javascripts/manifest.js +2 -0
- data/app/assets/stylesheets/manifest.scss +3 -0
- data/app/controllers/similar_terms_controller.rb +27 -11
- 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/bin/bundle +3 -0
- data/bin/rails +3 -9
- data/bin/rake +3 -6
- data/bin/setup +33 -0
- data/bin/update +31 -0
- data/bin/yarn +17 -0
- data/config/application.rb +30 -48
- data/config/boot.rb +3 -5
- data/config/cable.yml +10 -0
- data/config/database.yml.postgresql +26 -0
- data/config/environment.rb +4 -4
- 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 +5 -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 +6 -0
- data/config/locales/en.yml +6 -0
- data/config/routes.rb +2 -2
- data/config/storage.yml +34 -0
- data/config.ru +4 -2
- data/faucet.config.js +46 -0
- data/iqvoc_similar_terms.gemspec +1 -1
- data/lib/iqvoc/similar_terms/version.rb +1 -1
- data/lib/iqvoc/similar_terms.rb +12 -97
- data/lib/iqvoc_similar_terms.rb +1 -0
- data/package-lock.json +2333 -0
- data/package.json +29 -0
- data/test/concept_test.nt +5 -0
- data/test/concept_test.ttl +8 -1
- data/test/controllers/similar_terms_controller_test.rb +167 -0
- data/test/models/entity_resolution_test.rb +6 -6
- data/test/models/results_test.rb +43 -17
- metadata +31 -23
- data/.travis.yml +0 -30
- data/bin/spring +0 -18
- data/config/initializers/iqvoc_similiar_terms.rb +0 -1
- data/config/initializers/wrap_parameters.rb +0 -14
- data/test/controllers/api_test.rb +0 -58
- data/test/controllers/onebox_test.rb +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2b00193bc1d5d70d673f3158f547da086969a86721ed085fada1597a12e483dd
|
4
|
+
data.tar.gz: 3ca0a92f10703cd50e01b97d144c076d529f9e02c10056f3aee853a4b90e9d88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'iqvoc', '~> 4.
|
3
|
+
gem 'iqvoc', '~> 4.14.4', github: 'innoq/iqvoc', branch: 'master'
|
4
4
|
|
5
|
-
|
6
|
-
gem '
|
5
|
+
platforms :ruby do
|
6
|
+
gem 'pg'
|
7
|
+
end
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
22
|
-
gem 'iqvoc_compound_forms', '~> 2.
|
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
|