qa_server 0.1.99
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +71 -0
- data/Gemfile +55 -0
- data/Gemfile.lock +411 -0
- data/LICENSE +201 -0
- data/README.md +187 -0
- data/Rakefile +18 -0
- data/app/assets/images/qa_server/LD4L-bg.png +0 -0
- data/app/assets/images/qa_server/cornell-reduced-white.svg +160 -0
- data/app/assets/images/qa_server/iowa-logo.png +0 -0
- data/app/assets/images/qa_server/samvera-fall-font1-1000w-light.png +0 -0
- data/app/assets/javascripts/qa_server.js +0 -0
- data/app/assets/stylesheets/qa_server/_authorities.scss +0 -0
- data/app/assets/stylesheets/qa_server/_check-status.scss +72 -0
- data/app/assets/stylesheets/qa_server/_footer.scss +20 -0
- data/app/assets/stylesheets/qa_server/_header.scss +51 -0
- data/app/assets/stylesheets/qa_server/_home-page.scss +15 -0
- data/app/assets/stylesheets/qa_server/_monitor-status.scss +13 -0
- data/app/assets/stylesheets/qa_server/_qa_server.scss +36 -0
- data/app/assets/stylesheets/qa_server/_styles.scss +27 -0
- data/app/assets/stylesheets/qa_server/_usage.scss +0 -0
- data/app/controllers/qa_server/authority_list_controller.rb +14 -0
- data/app/controllers/qa_server/authority_validation_controller.rb +77 -0
- data/app/controllers/qa_server/check_status_controller.rb +38 -0
- data/app/controllers/qa_server/homepage_controller.rb +8 -0
- data/app/controllers/qa_server/monitor_status_controller.rb +79 -0
- data/app/controllers/qa_server/usage_controller.rb +8 -0
- data/app/loggers/qa_server/scenario_logger.rb +84 -0
- data/app/models/qa_server/authority_scenario.rb +35 -0
- data/app/models/qa_server/authority_status.rb +18 -0
- data/app/models/qa_server/authority_status_failure.rb +7 -0
- data/app/models/qa_server/scenarios.rb +71 -0
- data/app/models/qa_server/search_scenario.rb +58 -0
- data/app/models/qa_server/term_scenario.rb +50 -0
- data/app/presenters/qa_server/authority_list_presenter.rb +22 -0
- data/app/presenters/qa_server/check_status_presenter.rb +96 -0
- data/app/presenters/qa_server/monitor_status_presenter.rb +108 -0
- data/app/services/qa_server/authority_lister_service.rb +31 -0
- data/app/services/qa_server/authority_loader_service.rb +38 -0
- data/app/services/qa_server/authority_validator_service.rb +41 -0
- data/app/services/qa_server/database_migrator.rb +70 -0
- data/app/services/qa_server/scenarios_loader_service.rb +57 -0
- data/app/validators/qa_server/scenario_validator.rb +134 -0
- data/app/validators/qa_server/search_scenario_validator.rb +84 -0
- data/app/validators/qa_server/term_scenario_validator.rb +42 -0
- data/app/views/layouts/qa_server.html.erb +65 -0
- data/app/views/qa_server/authority_list/index.html.erb +27 -0
- data/app/views/qa_server/check_status/index.html.erb +104 -0
- data/app/views/qa_server/homepage/index.html.erb +10 -0
- data/app/views/qa_server/monitor_status/index.html.erb +78 -0
- data/app/views/qa_server/usage/index.html.erb +106 -0
- data/app/views/shared/_footer.html.erb +24 -0
- data/config/locales/qa_server.en.yml +68 -0
- data/config/routes.rb +12 -0
- data/lib/generators/qa_server/assets_generator.rb +35 -0
- data/lib/generators/qa_server/config_generator.rb +31 -0
- data/lib/generators/qa_server/install_generator.rb +60 -0
- data/lib/generators/qa_server/models_generator.rb +18 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_direct.json +69 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json +85 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json +36 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json +83 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_direct.json +68 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json +102 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +109 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +72 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +81 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json +47 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json +99 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json +89 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json +82 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_ld4l_cache.json +70 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json +32 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json +84 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +81 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +86 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_direct_validation.yml +6 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +41 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +115 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml +15 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_direct_validation.yml +25 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_validation.yml +22 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +99 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +27 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml +27 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_direct_validation.yml +6 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclc_fast_validation.yml +58 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_direct_validation.yml +58 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +30 -0
- data/lib/generators/qa_server/templates/config/locales/qa_server.en.yml +9 -0
- data/lib/generators/qa_server/templates/db/migrate/20180313045551_create_cron_authority_status.rb.erb +9 -0
- data/lib/generators/qa_server/templates/db/migrate/20180508045549_rename_cron_authority_status_to_authority_status.rb.erb +5 -0
- data/lib/generators/qa_server/templates/db/migrate/20180508045551_create_authority_status_failure.rb.erb +15 -0
- data/lib/generators/qa_server/templates/qa_server.scss +5 -0
- data/lib/qa_server/engine.rb +19 -0
- data/lib/qa_server/version.rb +3 -0
- data/lib/qa_server.rb +6 -0
- data/lib/tasks/install.rake +8 -0
- data/lib/tasks/qa_server_tasks.rake +4 -0
- data/qa_server.gemspec +39 -0
- data/spec/.gitignore +1 -0
- data/spec/rails_helper.rb +2 -0
- data/spec/spec_helper.rb +283 -0
- data/spec/test_app_templates/Gemfile.extra +5 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +15 -0
- data/tasks/qa_server_dev.rake +16 -0
- metadata +275 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: direct
|
4
|
+
term:
|
5
|
+
-
|
6
|
+
identifier: n92016188
|
7
|
+
subauth: names
|
8
|
+
-
|
9
|
+
identifier: sh85118553
|
10
|
+
subauth: subjects
|
11
|
+
-
|
12
|
+
identifier: gf2011026370
|
13
|
+
subauth: genre
|
14
|
+
-
|
15
|
+
identifier: 'KF26.L383'
|
16
|
+
subauth: classification
|
17
|
+
-
|
18
|
+
identifier: sj96006043
|
19
|
+
subauth: child_subject
|
20
|
+
-
|
21
|
+
identifier: dg2015060550
|
22
|
+
subauth: demographic
|
23
|
+
-
|
24
|
+
identifier: mp2013015171
|
25
|
+
subauth: music_performance
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_validation.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: direct
|
4
|
+
term:
|
5
|
+
-
|
6
|
+
identifier: n92016188
|
7
|
+
subauth: names
|
8
|
+
-
|
9
|
+
identifier: sh85118553
|
10
|
+
subauth: subjects
|
11
|
+
-
|
12
|
+
identifier: gf2011026370
|
13
|
+
subauth: genre
|
14
|
+
-
|
15
|
+
identifier: 'KF26.L383'
|
16
|
+
subauth: classification
|
17
|
+
-
|
18
|
+
identifier: sj96006043
|
19
|
+
subauth: child_subject
|
20
|
+
-
|
21
|
+
identifier: dg2015060550
|
22
|
+
subauth: demographic
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: animation
|
7
|
+
-
|
8
|
+
query: animation
|
9
|
+
subauth: person
|
10
|
+
-
|
11
|
+
query: animation
|
12
|
+
subauth: organization
|
13
|
+
-
|
14
|
+
query: animation
|
15
|
+
subauth: place
|
16
|
+
-
|
17
|
+
query: animation
|
18
|
+
subauth: intangible
|
19
|
+
-
|
20
|
+
query: animation
|
21
|
+
subauth: geocoordinates
|
22
|
+
-
|
23
|
+
query: animation
|
24
|
+
subauth: work
|
25
|
+
-
|
26
|
+
query: Preliminary documents (Treaties)
|
27
|
+
position: 10
|
28
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026703"
|
29
|
+
replacements:
|
30
|
+
maxRecords: '20'
|
31
|
+
-
|
32
|
+
query: Loose-leafs
|
33
|
+
position: 10
|
34
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026373"
|
35
|
+
replacements:
|
36
|
+
maxRecords: '20'
|
37
|
+
-
|
38
|
+
query: Casebooks
|
39
|
+
position: 10
|
40
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026115"
|
41
|
+
replacements:
|
42
|
+
maxRecords: '20'
|
43
|
+
-
|
44
|
+
query: Congresses, Conferences, Proceedings, Symposia
|
45
|
+
position: 10
|
46
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2014026068"
|
47
|
+
replacements:
|
48
|
+
maxRecords: '20'
|
49
|
+
-
|
50
|
+
query: Law journals
|
51
|
+
position: 10
|
52
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026352"
|
53
|
+
replacements:
|
54
|
+
maxRecords: '20'
|
55
|
+
-
|
56
|
+
query: Codes
|
57
|
+
position: 10
|
58
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026611"
|
59
|
+
replacements:
|
60
|
+
maxRecords: '20'
|
61
|
+
-
|
62
|
+
query: Administrative rules
|
63
|
+
position: 10
|
64
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026030"
|
65
|
+
replacements:
|
66
|
+
maxRecords: '20'
|
67
|
+
-
|
68
|
+
query: Conventions
|
69
|
+
position: 10
|
70
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026707"
|
71
|
+
replacements:
|
72
|
+
maxRecords: '20'
|
73
|
+
-
|
74
|
+
query: Digests
|
75
|
+
position: 10
|
76
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026349"
|
77
|
+
replacements:
|
78
|
+
maxRecords: '20'
|
79
|
+
-
|
80
|
+
query: Law reports
|
81
|
+
position: 10
|
82
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026172"
|
83
|
+
replacements:
|
84
|
+
maxRecords: '20'
|
85
|
+
-
|
86
|
+
query: Interstate compacts
|
87
|
+
position: 10
|
88
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026336"
|
89
|
+
replacements:
|
90
|
+
maxRecords: '20'
|
91
|
+
-
|
92
|
+
query: Noter-ups
|
93
|
+
position: 10
|
94
|
+
subject_uri: "http://id.loc.gov/authorities/genreForms/gf2011026136"
|
95
|
+
replacements:
|
96
|
+
maxRecords: '20'
|
97
|
+
term:
|
98
|
+
-
|
99
|
+
identifier: "http://id.loc.gov/authorities/genreForms/gf2011026141"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: 'mark twain'
|
7
|
+
-
|
8
|
+
query: 'mark twain'
|
9
|
+
subauth: person
|
10
|
+
-
|
11
|
+
query: 'mark twain'
|
12
|
+
subauth: organization
|
13
|
+
-
|
14
|
+
query: Cayuga
|
15
|
+
subauth: place
|
16
|
+
-
|
17
|
+
query: Cayuga
|
18
|
+
subauth: intangible
|
19
|
+
-
|
20
|
+
query: Cayuga
|
21
|
+
subauth: geocoordinates
|
22
|
+
-
|
23
|
+
query: 'mark twain'
|
24
|
+
subauth: work
|
25
|
+
term:
|
26
|
+
-
|
27
|
+
identifier: 'http://id.loc.gov/authorities/names/n92016188'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: science
|
7
|
+
-
|
8
|
+
query: science
|
9
|
+
subauth: person
|
10
|
+
-
|
11
|
+
query: science
|
12
|
+
subauth: organization
|
13
|
+
-
|
14
|
+
query: science
|
15
|
+
subauth: place
|
16
|
+
-
|
17
|
+
query: science
|
18
|
+
subauth: intangible
|
19
|
+
-
|
20
|
+
query: science
|
21
|
+
subauth: geocoordinates
|
22
|
+
-
|
23
|
+
query: science
|
24
|
+
subauth: work
|
25
|
+
term:
|
26
|
+
-
|
27
|
+
identifier: 'http://id.loc.gov/authorities/subjects/sh2003008312'
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: direct
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: 'mark twain'
|
7
|
+
replacements:
|
8
|
+
maximumRecords: '4'
|
9
|
+
-
|
10
|
+
query: Cayuga
|
11
|
+
subauth: topic
|
12
|
+
replacements:
|
13
|
+
maximumRecords: '4'
|
14
|
+
-
|
15
|
+
query: Cayuga
|
16
|
+
subauth: geographic
|
17
|
+
replacements:
|
18
|
+
maximumRecords: '4'
|
19
|
+
-
|
20
|
+
query: Festival
|
21
|
+
subauth: event_name
|
22
|
+
replacements:
|
23
|
+
maximumRecords: '4'
|
24
|
+
-
|
25
|
+
query: 'mark twain'
|
26
|
+
subauth: personal_name
|
27
|
+
result_size: 100
|
28
|
+
replacements:
|
29
|
+
maximumRecords: '4'
|
30
|
+
-
|
31
|
+
query: 'mark twain'
|
32
|
+
subauth: corporate_name
|
33
|
+
replacements:
|
34
|
+
maximumRecords: '4'
|
35
|
+
-
|
36
|
+
query: 'mark twain'
|
37
|
+
subauth: uniform_title
|
38
|
+
replacements:
|
39
|
+
maximumRecords: '4'
|
40
|
+
-
|
41
|
+
query: '1276-1285'
|
42
|
+
subauth: period
|
43
|
+
result_size: 50
|
44
|
+
replacements:
|
45
|
+
maximumRecords: '4'
|
46
|
+
-
|
47
|
+
query: animation
|
48
|
+
subauth: form
|
49
|
+
replacements:
|
50
|
+
maximumRecords: '4'
|
51
|
+
-
|
52
|
+
query: animation
|
53
|
+
subauth: alt_lc
|
54
|
+
replacements:
|
55
|
+
maximumRecords: '4'
|
56
|
+
term:
|
57
|
+
-
|
58
|
+
identifier: '1914919'
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: direct
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: 'mark twain'
|
7
|
+
replacements:
|
8
|
+
maximumRecords: '4'
|
9
|
+
-
|
10
|
+
query: 'mark twain'
|
11
|
+
subauth: person
|
12
|
+
result_size: 100
|
13
|
+
replacements:
|
14
|
+
maximumRecords: '4'
|
15
|
+
-
|
16
|
+
query: 'mark twain'
|
17
|
+
subauth: organization
|
18
|
+
replacements:
|
19
|
+
maximumRecords: '4'
|
20
|
+
-
|
21
|
+
query: Cayuga
|
22
|
+
subauth: topic
|
23
|
+
replacements:
|
24
|
+
maximumRecords: '4'
|
25
|
+
-
|
26
|
+
query: Festival
|
27
|
+
subauth: event_name
|
28
|
+
replacements:
|
29
|
+
maximumRecords: '4'
|
30
|
+
-
|
31
|
+
query: Cayuga
|
32
|
+
subauth: geocoordinates
|
33
|
+
replacements:
|
34
|
+
maximumRecords: '4'
|
35
|
+
-
|
36
|
+
query: 'mark twain'
|
37
|
+
subauth: uniform_title
|
38
|
+
replacements:
|
39
|
+
maximumRecords: '4'
|
40
|
+
-
|
41
|
+
query: '1276-1285'
|
42
|
+
subauth: period
|
43
|
+
result_size: 50
|
44
|
+
replacements:
|
45
|
+
maximumRecords: '4'
|
46
|
+
-
|
47
|
+
query: animation
|
48
|
+
subauth: form
|
49
|
+
replacements:
|
50
|
+
maximumRecords: '4'
|
51
|
+
-
|
52
|
+
query: animation
|
53
|
+
subauth: alt_lc
|
54
|
+
replacements:
|
55
|
+
maximumRecords: '4'
|
56
|
+
term:
|
57
|
+
-
|
58
|
+
identifier: '1914919'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: 'mark twain'
|
7
|
+
-
|
8
|
+
query: ferret
|
9
|
+
subauth: concept
|
10
|
+
-
|
11
|
+
query: tribunal
|
12
|
+
subauth: event
|
13
|
+
-
|
14
|
+
query: 'mark twain'
|
15
|
+
subauth: person
|
16
|
+
-
|
17
|
+
query: 'mark twain'
|
18
|
+
subauth: organization
|
19
|
+
-
|
20
|
+
query: Cayuga
|
21
|
+
subauth: place
|
22
|
+
-
|
23
|
+
query: 'mark twain'
|
24
|
+
subauth: intangible
|
25
|
+
-
|
26
|
+
query: 'mark twain'
|
27
|
+
subauth: work
|
28
|
+
term:
|
29
|
+
-
|
30
|
+
identifier: '1914919'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
qa_server:
|
4
|
+
application_version: "0.1.0"
|
5
|
+
application_name: "My Institution Lookup Service"
|
6
|
+
footer:
|
7
|
+
copyright_html: "<strong>Copyright © 2018 Cornell</strong> Licensed under the Apache License, Version 2.0"
|
8
|
+
service_html: A service of <a href="http://www.library.cornell.edu/" class="navbar-link" target="_blank">Cornell University Library</a> and <br /><a href="https://www.slis.uiowa.edu/" class="navbar-link" target="_blank">School of Library and Information Science, University of Iowa</a>.
|
9
|
+
disclaimer_html: This service is supported by work on <a href="http://ld4l.org" class="navbar-link" target="_blank">Linked Data for Libraries - Labs</a> funded by <br><a href="https://mellon.org/" class="navbar-link" target="_blank">Andrew W. Mellon Foundation</a>, and <a href="http://samvera.org" class="navbar-link" target="_blank">Samvera</a>, an open source community.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class CreateAuthorityStatusFailure < ActiveRecord::Migration<%= migration_version %>
|
2
|
+
def change
|
3
|
+
create_table :authority_status_failure do |t|
|
4
|
+
t.belongs_to :authority_status
|
5
|
+
t.string :status
|
6
|
+
t.string :status_label
|
7
|
+
t.string :authority_name
|
8
|
+
t.string :subauthority_name
|
9
|
+
t.string :service
|
10
|
+
t.string :action
|
11
|
+
t.string :url
|
12
|
+
t.string :err_message
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module QaServer
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
isolate_namespace QaServer
|
4
|
+
|
5
|
+
require 'qa'
|
6
|
+
|
7
|
+
# Force these models to be added to Legato's registry in development mode
|
8
|
+
config.eager_load_paths += %W[
|
9
|
+
#{config.root}/app/models/qa_server/download.rb
|
10
|
+
#{config.root}/app/models/qa_server/pageview.rb
|
11
|
+
]
|
12
|
+
|
13
|
+
initializer 'qa_server.assets.precompile' do |app|
|
14
|
+
app.config.assets.paths << config.root.join('vendor', 'assets', 'fonts')
|
15
|
+
app.config.assets.paths << config.root.join('app', 'assets', 'images')
|
16
|
+
app.config.assets.precompile += %w[*.png *.jpg *.ico *.gif *.svg]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/qa_server.rb
ADDED
data/qa_server.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'qa_server/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.authors = ["E. Lynette Rayle"]
|
7
|
+
spec.email = ["elr37@cornell.edu"]
|
8
|
+
spec.description = "A rails engine with questioning authority gem installed to serve as an authority search server with normalized results."
|
9
|
+
spec.summary = "Authority Lookup Server"
|
10
|
+
|
11
|
+
spec.homepage = "http://github.com/LD4P/qa_server"
|
12
|
+
|
13
|
+
spec.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
14
|
+
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
+
spec.name = "qa_server"
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
spec.version = QaServer::VERSION
|
19
|
+
spec.license = 'Apache-2.0'
|
20
|
+
|
21
|
+
# spec.required_ruby_version = '>= 2.3'
|
22
|
+
|
23
|
+
# Note: rails does not follow sem-ver conventions, it's
|
24
|
+
# minor version releases can include breaking changes; see
|
25
|
+
# http://guides.rubyonrails.org/maintenance_policy.html
|
26
|
+
spec.add_dependency 'rails', '5.1.6'
|
27
|
+
|
28
|
+
# Required gems for QA and linked data access
|
29
|
+
spec.add_dependency 'qa' # loaded specific branch in Gemfile
|
30
|
+
spec.add_dependency 'linkeddata'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bixby', '~> 1.0.0' # rubocop styleguide
|
33
|
+
# spec.add_development_dependency 'capybara', '~> 2.13'
|
34
|
+
spec.add_development_dependency 'engine_cart', '~> 2.0'
|
35
|
+
spec.add_development_dependency 'rspec-activemodel-mocks', '~> 1.0'
|
36
|
+
spec.add_development_dependency 'rspec-its', '~> 1.1'
|
37
|
+
spec.add_development_dependency 'rspec-rails', '~> 3.1'
|
38
|
+
# spec.add_development_dependency 'selenium-webdriver'
|
39
|
+
end
|
data/spec/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
internal
|