qa 5.8.1 → 5.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7529be1fa8e0db065216d3fd303c3db02c739ede3ffed6ca0d56cda3b0d8bc5
4
- data.tar.gz: ae2e1179e435d2cc82f6c8e068c413cfb6cf0e3fdee0a478fff4eccfff82b64c
3
+ metadata.gz: 1f4e4d8c917617e8cba95cd8bc8e0f06ebb60c9b580672b3736c717ef1ce3746
4
+ data.tar.gz: bd9624a47e0c513d8b7fdf7a278d2c904867b3331217faaf7951321326f7549d
5
5
  SHA512:
6
- metadata.gz: 05b1ea7d2611b2fd349d070171a9856059ae0c0a5ea8dfab12fcdddab55e76b6a0939c6e451e3c7852f6bdf782e3aff8f2dda0c2f8c043a2a61c9407c7a76fce
7
- data.tar.gz: 0454fd9d3ce8663f9cc3e00e4a922cca3b33c6657213448f40de9b7601fb553b236dd822f1b8e5fb196ca91b1e7973134950003f52f4d33153c1e8e6c36b0517
6
+ metadata.gz: a6f568c19f5aad67ca850bf0d666afd63f971b7bbab83e51b4299791b52c94e93fcae9e49a9ff6aec4d2e8329cf1b41ab39131fa8dc3e0eb0baec5725934499b
7
+ data.tar.gz: 69d1bed451753f68ae20551aa1ac2a77e8acbfffeb2600e42d50726d113f28300c01faaf74af9b65dcfc5a168410019fb99bc84b09928b9846b466fd20fc9e63
data/README.md CHANGED
@@ -152,9 +152,14 @@ If you're working on PR for this project, create a feature branch off of `main`.
152
152
  This repository follows the [Samvera Community Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Code+of+Conduct) and [language recommendations](https://github.com/samvera/maintenance/blob/main/templates/CONTRIBUTING.md#language). Please ***do not*** create a branch called `master` for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.
153
153
 
154
154
  ## Compatibility
155
-
156
- - Ruby 2.5 or the latest 2.4 version is recommended. Later versions may also work.
157
- - Rails 5 is required. We recommend the latest Rails 5.2 release.
155
+ This gem works with Rails 5.0-6.1 and Ruby 2.5-3.1, provided the version of Rails supports the version of Ruby.
156
+ - Consult `.circleci/config.yml` for a list of supported combinations.
157
+ - The combination of Ruby 3.1 and Rails 6.0 comes with three caveats:
158
+ - your app will not be able to use `psych 4` (which ordinarily comes with 3.1). See https://bugs.ruby-lang.org/issues/17866 and https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias/71192990#71192990 for an explanation. One workaround is to modify your app's `Gemfile` to hold back `psych`: `gem 'psych', '< 4'`.
159
+ - likewise, you want to add gem 'net-smtp', require: false to your Gemfile to get around the bug described in https://stackoverflow.com/questions/70500220/rails-7-ruby-3-1-loaderror-cannot-load-such-file-net-smtp .
160
+ - finally, you may want to opt in to the latest version of "mail". Again, add to your Gemfile the line `gem "mail", ">= 2.8.0.rc1"`.
161
+
162
+ See also `.circleci/config.yml` and `spec/test_app_templates/Gemfile.extra`.
158
163
 
159
164
  ## Product Owner & Maintenance
160
165
 
@@ -57,7 +57,7 @@ module Qa
57
57
  def deep_copy(graph:)
58
58
  new_graph = RDF::Graph.new
59
59
  graph.statements.each do |st|
60
- new_graph.insert(st.dup)
60
+ new_graph << st.dup
61
61
  end
62
62
  new_graph
63
63
  end
@@ -4,7 +4,9 @@ module Qa::Authorities
4
4
  # http://www.oclc.org/developer/develop/web-services/fast-api/assign-fast.en.html
5
5
  class AssignFast::GenericAuthority < Base
6
6
  attr_reader :subauthority
7
+
7
8
  def initialize(subauthority)
9
+ super()
8
10
  @subauthority = subauthority
9
11
  end
10
12
 
@@ -5,6 +5,7 @@ module Qa::Authorities
5
5
  attr_reader :subauthority
6
6
 
7
7
  def initialize(subauthority)
8
+ super()
8
9
  @subauthority = subauthority
9
10
  end
10
11
 
@@ -11,6 +11,7 @@ module Qa::Authorities
11
11
 
12
12
  # @param [String] subauthority to use
13
13
  def initialize(subauthority)
14
+ super()
14
15
  @subauthority = subauthority
15
16
  self.primary_artists = []
16
17
  self.work_uri = "workn1"
@@ -64,7 +64,7 @@ module Qa::Authorities
64
64
  # Reformats the data received from the service
65
65
  def parse_authority_response(response)
66
66
  response['geonames'].map do |result|
67
- # Note: the trailing slash is meaningful.
67
+ # NOTE: the trailing slash is meaningful.
68
68
  { 'id' => "https://sws.geonames.org/#{result['geonameId']}/",
69
69
  'label' => label.call(result) }
70
70
  end
@@ -60,7 +60,7 @@ module Qa::Authorities
60
60
  def authority_config
61
61
  @authority_config ||= Qa::LinkedData::AuthorityService.authority_config(@authority_name)
62
62
  raise Qa::InvalidLinkedDataAuthority, "Unable to initialize linked data authority '#{@authority_name}'" if @authority_config.nil?
63
- convert_1_0_to_2_0 if @authority_config.fetch(:QA_CONFIG_VERSION, '1.0') == '1.0'
63
+ convert_1_0_to_2_0_version if @authority_config.fetch(:QA_CONFIG_VERSION, '1.0') == '1.0'
64
64
  @authority_config
65
65
  end
66
66
 
@@ -78,7 +78,7 @@ module Qa::Authorities
78
78
 
79
79
  private
80
80
 
81
- def convert_1_0_to_2_0
81
+ def convert_1_0_to_2_0_version
82
82
  convert_1_0_url_to_2_0_url(:search)
83
83
  convert_1_0_url_to_2_0_url(:term)
84
84
  end
@@ -136,7 +136,11 @@ module Qa::Authorities
136
136
  # Special processing for loc ids for backward compatibility. IDs may be in the form 'n123' or 'n 123'. This adds
137
137
  # the <blank> into the ID to allow it to be found as the object of a triple in the graph.
138
138
  def loc_id
139
- loc_id = URI.unescape(id)
139
+ # NOTE: this call to unescape may not be necessary.
140
+ # loc_id = id.dup works just as well.
141
+ # See https://github.com/samvera/questioning_authority/pull/369
142
+ # for more discussion.
143
+ loc_id = CGI.unescape(id)
140
144
  digit_idx = loc_id.index(/\d/)
141
145
  loc_id.insert(digit_idx, ' ') if loc? && loc_id.index(' ').blank? && digit_idx > 0
142
146
  loc_id
@@ -162,9 +166,11 @@ module Qa::Authorities
162
166
  end
163
167
 
164
168
  def extract_uri_by_id(id_predicate)
169
+ # NOTE: calls to CGI.unescape in this method may not be necessary.
170
+ # See discussion at https://github.com/samvera/questioning_authority/pull/369 .
165
171
  @uri = graph_service.subjects_for_object_value(graph: @filtered_graph,
166
172
  predicate: id_predicate,
167
- object_value: URI.unescape(id)).first
173
+ object_value: CGI.unescape(id)).first
168
174
  return if @uri.present? || !loc?
169
175
 
170
176
  # NOTE: Second call to try and extract using the loc_id allows for special processing on the id for LOC authorities.
@@ -172,7 +178,7 @@ module Qa::Authorities
172
178
  # the ID is provided without the <blank>, this tries a second time to find it with the <blank>.
173
179
  @uri = graph_service.subjects_for_object_value(graph: @filtered_graph,
174
180
  predicate: id_predicate,
175
- object_value: URI.unescape(loc_id)).first
181
+ object_value: CGI.unescape(loc_id)).first
176
182
  return if @uri.blank? # only show the depercation warning if the loc_id was used
177
183
  Qa.deprecation_warning(
178
184
  in_msg: 'Qa::Authorities::LinkedData::FindTerm',
@@ -20,6 +20,7 @@ module Qa::Authorities
20
20
  delegate :subauthority?, :subauthorities?, to: :search_config, prefix: 'search'
21
21
 
22
22
  def initialize(auth_name)
23
+ super()
23
24
  @authority_config = Qa::Authorities::LinkedData::Config.new(auth_name)
24
25
  end
25
26
 
@@ -2,6 +2,7 @@ module Qa::Authorities
2
2
  class Loc::GenericAuthority < Base
3
3
  attr_reader :subauthority
4
4
  def initialize(subauthority)
5
+ super()
5
6
  @subauthority = subauthority
6
7
  end
7
8
 
@@ -2,6 +2,7 @@ module Qa::Authorities
2
2
  class Local::FileBasedAuthority < Base
3
3
  attr_reader :subauthority
4
4
  def initialize(subauthority)
5
+ super()
5
6
  @subauthority = subauthority
6
7
  end
7
8
 
@@ -19,9 +19,7 @@ module Qa::Authorities
19
19
  end
20
20
 
21
21
  def self.logger
22
- @logger ||= begin
23
- ::Rails.logger if defined? Rails && Rails.respond_to?(:logger)
24
- end
22
+ @logger ||= ::Rails.logger if defined? Rails && Rails.respond_to?(:logger)
25
23
  end
26
24
 
27
25
  class << self
@@ -34,6 +34,7 @@ module Qa::Authorities
34
34
  attr_reader :subauthority
35
35
 
36
36
  def initialize(subauthority)
37
+ super()
37
38
  self.class.check_for_index
38
39
  @subauthority = subauthority
39
40
  end
@@ -36,10 +36,8 @@ module Qa::Authorities
36
36
  end
37
37
 
38
38
  def registry
39
- @registry ||= begin
40
- Registry.new do |reg|
41
- register_defaults(reg)
42
- end
39
+ @registry ||= Registry.new do |reg|
40
+ register_defaults(reg)
43
41
  end
44
42
  end
45
43
 
@@ -7,7 +7,9 @@ module Qa::Authorities
7
7
  @file = file
8
8
  end
9
9
 
10
- def each_mesh_record # rubocop:disable Metrics/MethodLength
10
+ # rubocop:disable Metrics/MethodLength
11
+ # rubocop:disable Metrics/CyclomaticComplexity
12
+ def each_mesh_record
11
13
  current_data = {}
12
14
  in_record = false
13
15
  file.each_line do |line|
@@ -3,6 +3,7 @@ module Qa::Authorities
3
3
  attr_reader :subauthority
4
4
 
5
5
  def initialize(subauthority)
6
+ super()
6
7
  @subauthority = subauthority
7
8
  end
8
9
  include WebServiceBase
@@ -34,7 +35,7 @@ module Qa::Authorities
34
35
 
35
36
  def get_raw_response(query_type, id)
36
37
  query_url = Oclcts.url_pattern(query_type).gsub("{query}", id).gsub("{id}", id).gsub("{authority-id}", subauthority)
37
- @raw_response = Nokogiri::XML(open(query_url))
38
+ @raw_response = Nokogiri::XML(URI.open(query_url))
38
39
  end
39
40
  end
40
41
  end
data/lib/qa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qa
2
- VERSION = "5.8.1".freeze
2
+ VERSION = "5.9.0".freeze
3
3
  end
@@ -65,6 +65,7 @@ describe Qa::TermsController, type: :controller do
65
65
  class Qa::Authorities::Local::TwoArgs < Qa::Authorities::Base
66
66
  attr_reader :subauthority
67
67
  def initialize(subauthority)
68
+ super()
68
69
  @subauthority = subauthority
69
70
  end
70
71
 
@@ -35,7 +35,10 @@ describe Qa::Authorities::Getty::AAT do
35
35
  end
36
36
 
37
37
  it 'logs error and returns empty results' do
38
- expect(Rails.logger).to receive(:warn).with(" ERROR fetching Getty response: undefined method `[]' for nil:NilClass; cause: UNKNOWN")
38
+ # Rails 3.1 actually quotes the failing code in the error message,
39
+ # so let's match this error message with a multiline regex instead of
40
+ # a string.
41
+ expect(Rails.logger).to receive(:warn).with(/ERROR fetching Getty response: .*undefined method.*for nil:NilClass.*; cause: UNKNOWN/m)
39
42
  expect(subject).to be {}
40
43
  end
41
44
  end
@@ -35,7 +35,10 @@ describe Qa::Authorities::Getty::TGN do
35
35
  end
36
36
 
37
37
  it 'logs error and returns empty results' do
38
- expect(Rails.logger).to receive(:warn).with(" ERROR fetching Getty response: undefined method `[]' for nil:NilClass; cause: UNKNOWN")
38
+ # Rails 3.1 actually quotes the failing code in the error message,
39
+ # so let's match this error message with a multiline regex instead of
40
+ # a string.
41
+ expect(Rails.logger).to receive(:warn).with(/ERROR fetching Getty response: .*undefined method.*for nil:NilClass.*; cause: UNKNOWN/m)
39
42
  expect(subject).to be {}
40
43
  end
41
44
  end
@@ -35,7 +35,10 @@ describe Qa::Authorities::Getty::Ulan do
35
35
  end
36
36
 
37
37
  it 'logs error and returns empty results' do
38
- expect(Rails.logger).to receive(:warn).with(" ERROR fetching Getty response: undefined method `[]' for nil:NilClass; cause: UNKNOWN")
38
+ # Rails 3.1 actually quotes the failing code in the error message,
39
+ # so let's match this error message with a multiline regex instead of
40
+ # a string.
41
+ expect(Rails.logger).to receive(:warn).with(/ERROR fetching Getty response: .*undefined method.*for nil:NilClass.*; cause: UNKNOWN/m)
39
42
  expect(subject).to be {}
40
43
  end
41
44
  end
data/spec/spec_helper.rb CHANGED
@@ -1,25 +1,11 @@
1
1
  require 'linkeddata'
2
2
  require 'json'
3
3
  require 'engine_cart'
4
- require 'simplecov'
5
- require 'coveralls'
6
4
  require 'byebug' unless ENV['TRAVIS']
7
5
 
8
6
  ENV["RAILS_ENV"] ||= "test"
9
7
 
10
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
11
- SimpleCov.start('rails') do
12
- add_filter '/.internal_test_app'
13
- add_filter '/lib/generators'
14
- add_filter '/spec'
15
- add_filter '/tasks'
16
- add_filter '/lib/qa/version.rb'
17
- add_filter '/lib/qa/engine.rb'
18
- end
19
- SimpleCov.command_name 'spec'
20
-
21
8
  EngineCart.load_application!
22
- Coveralls.wear!
23
9
 
24
10
  require 'rspec/rails'
25
11
  require 'webmock/rspec'
@@ -2,4 +2,17 @@
2
2
 
3
3
  group :development do
4
4
  gem 'linkeddata'
5
+ if ENV['RAILS_VERSION'] =~ /^6\.1\./ && ENV['RUBY_VERSION'] =~ /^3\.1\./
6
+ # Ruby 3.0 comes with Psych 3, while Ruby 3.1 comes with Psych 4,
7
+ # which has a major breaking change (diff 3.3.2 → 4.0.0).
8
+ # See: https://bugs.ruby-lang.org/issues/17866
9
+ # See also: https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias/71192990#71192990
10
+ gem 'psych', '< 4'
11
+ # opt into mail 2.8.0.rc1 so we get extra dependencies
12
+ # Once mail 2.8.0 final is released this will not be required.
13
+ # https://github.com/mikel/mail/pull/1472
14
+ gem "mail", ">= 2.8.0.rc1"
15
+ # See https://stackoverflow.com/questions/70500220/rails-7-ruby-3-1-loaderror-cannot-load-such-file-net-smtp
16
+ gem 'net-smtp', require: false
17
+ end
5
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.1
4
+ version: 5.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Anderson
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2022-02-07 00:00:00.000000000 Z
19
+ date: 2022-07-27 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activerecord-import
@@ -52,14 +52,20 @@ dependencies:
52
52
  requirements:
53
53
  - - "<"
54
54
  - !ruby/object:Gem::Version
55
- version: '2.0'
55
+ version: '3.0'
56
+ - - "!="
57
+ - !ruby/object:Gem::Version
58
+ version: 2.0.0
56
59
  type: :runtime
57
60
  prerelease: false
58
61
  version_requirements: !ruby/object:Gem::Requirement
59
62
  requirements:
60
63
  - - "<"
61
64
  - !ruby/object:Gem::Version
62
- version: '2.0'
65
+ version: '3.0'
66
+ - - "!="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
63
69
  - !ruby/object:Gem::Dependency
64
70
  name: geocoder
65
71
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +148,20 @@ dependencies:
142
148
  requirements:
143
149
  - - "~>"
144
150
  - !ruby/object:Gem::Version
145
- version: 3.0.0
151
+ version: '5.0'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 5.0.2
146
155
  type: :development
147
156
  prerelease: false
148
157
  version_requirements: !ruby/object:Gem::Requirement
149
158
  requirements:
150
159
  - - "~>"
151
160
  - !ruby/object:Gem::Version
152
- version: 3.0.0
161
+ version: '5.0'
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: 5.0.2
153
165
  - !ruby/object:Gem::Dependency
154
166
  name: rails
155
167
  requirement: !ruby/object:Gem::Requirement
@@ -260,20 +272,6 @@ dependencies:
260
272
  - - ">="
261
273
  - !ruby/object:Gem::Version
262
274
  version: '0'
263
- - !ruby/object:Gem::Dependency
264
- name: simplecov
265
- requirement: !ruby/object:Gem::Requirement
266
- requirements:
267
- - - ">="
268
- - !ruby/object:Gem::Version
269
- version: '0'
270
- type: :development
271
- prerelease: false
272
- version_requirements: !ruby/object:Gem::Requirement
273
- requirements:
274
- - - ">="
275
- - !ruby/object:Gem::Version
276
- version: '0'
277
275
  - !ruby/object:Gem::Dependency
278
276
  name: sqlite3
279
277
  requirement: !ruby/object:Gem::Requirement
@@ -636,156 +634,156 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
634
  - !ruby/object:Gem::Version
637
635
  version: '0'
638
636
  requirements: []
639
- rubygems_version: 3.0.8
637
+ rubygems_version: 3.2.33
640
638
  signing_key:
641
639
  specification_version: 4
642
640
  summary: You should question your authorities.
643
641
  test_files:
644
- - spec/spec_helper.rb
642
+ - spec/controllers/linked_data_terms_controller_spec.rb
643
+ - spec/controllers/terms_controller_spec.rb
645
644
  - spec/features/linked_data/language_spec.rb
646
- - spec/models/linked_data/config/context_map_spec.rb
647
- - spec/models/linked_data/config/context_property_map_spec.rb
648
- - spec/models/iri_template/variable_map_spec.rb
649
- - spec/models/iri_template/url_config_spec.rb
650
- - spec/models/subject_mesh_term_spec.rb
651
- - spec/requests/cors_headers_spec.rb
652
- - spec/support/matchers/include_hash.rb
653
- - spec/test_app_templates/lib/generators/test_app_generator.rb
654
- - spec/test_app_templates/Gemfile.extra
655
- - spec/lib/tasks/mesh.rake_spec.rb
656
- - spec/lib/configuration_spec.rb
657
- - spec/lib/authorities_loc_subauthorities.rb
658
- - spec/lib/mesh_data_parser_spec.rb
659
- - spec/lib/authorities/linked_data/config_spec.rb
660
- - spec/lib/authorities/linked_data/search_config_spec.rb
661
- - spec/lib/authorities/linked_data/search_query_spec.rb
662
- - spec/lib/authorities/linked_data/term_config_spec.rb
663
- - spec/lib/authorities/linked_data/find_term_spec.rb
664
- - spec/lib/authorities/linked_data/generic_authority_spec.rb
665
- - spec/lib/authorities/loc_spec.rb
666
- - spec/lib/authorities/tgnlang_spec.rb
667
- - spec/lib/authorities/crossref_spec.rb
668
- - spec/lib/authorities/oclcts_spec.rb
669
- - spec/lib/authorities/local/file_based_authority_spec.rb
670
- - spec/lib/authorities/local/table_based_authority_spec.rb
671
- - spec/lib/authorities/local/mysql_table_based_authority_spec.rb
672
- - spec/lib/authorities/space_fix_encoder.rb
673
- - spec/lib/authorities/assign_fast_spec.rb
674
- - spec/lib/authorities/getty/tgn_spec.rb
675
- - spec/lib/authorities/getty/ulan_spec.rb
676
- - spec/lib/authorities/getty/aat_spec.rb
677
- - spec/lib/authorities/discogs_spec.rb
678
- - spec/lib/authorities/mesh_spec.rb
679
- - spec/lib/authorities/local_spec.rb
680
- - spec/lib/authorities/discogs/generic_authority_spec.rb
681
- - spec/lib/authorities/geonames_spec.rb
682
- - spec/lib/authorities/base_spec.rb
683
- - spec/lib/authorities/getty_spec.rb
684
- - spec/lib/services/rdf_authority_parser_spec.rb
685
- - spec/fixtures/lod_lang_search_enesfrde.rdf.xml
686
- - spec/fixtures/oclcts-response-mesh-3.txt
687
- - spec/fixtures/discogs-search-response-set-record.json
688
- - spec/fixtures/loc-names-response.txt
689
- - spec/fixtures/oclcts-response-mesh-2.txt
690
- - spec/fixtures/lod_loc_term_bad_id.rdf.xml
691
645
  - spec/fixtures/aat-response.txt
692
- - spec/fixtures/journals-result.json
693
- - spec/fixtures/discogs-search-response-no-subauth.json
694
- - spec/fixtures/lod_lang_search_fr.rdf.xml
695
- - spec/fixtures/oclcts-response-mesh-1.txt
696
- - spec/fixtures/lod_lang_term_fr.rdf.xml
697
- - spec/fixtures/discogs-search-response-no-auth.json
698
- - spec/fixtures/lod_3_ranked_varying_preds.nt
699
- - spec/fixtures/lod_lang_search_filtering.nt
700
- - spec/fixtures/discogs-find-response-jsonld-release.json
701
- - spec/fixtures/funders-noquery.json
702
- - spec/fixtures/lod_lang_term_enfrde.rdf.xml
703
- - spec/fixtures/assign-fast-oneresult.json
704
- - spec/fixtures/discogs-id-not-found-master.json
705
- - spec/fixtures/getty-aat-find-response.json
706
- - spec/fixtures/lod_lang_term_enfr_noalt.rdf.xml
646
+ - spec/fixtures/assign-fast-noheader.json
707
647
  - spec/fixtures/assign-fast-noresults.json
708
- - spec/fixtures/discogs-search-response-per-page.json
709
- - spec/fixtures/getty-error-response.txt
710
- - spec/fixtures/lod_loc_term_found.rdf.xml
711
- - spec/fixtures/lod_lang_term_enfr.rdf.xml
648
+ - spec/fixtures/assign-fast-oneresult.json
712
649
  - spec/fixtures/assign-fast-topical-result.json
713
- - spec/fixtures/getty-ulan-find-response.json
714
- - spec/fixtures/loc-subjects-response.txt
650
+ - spec/fixtures/authorities/authority_A.yml
651
+ - spec/fixtures/authorities/authority_B.yml
652
+ - spec/fixtures/authorities/authority_C.yml
653
+ - spec/fixtures/authorities/authority_D.yml
654
+ - spec/fixtures/authorities/authority_U.yml
655
+ - spec/fixtures/authorities/linked_data/lod_encoding_config.json
656
+ - spec/fixtures/authorities/linked_data/lod_full_config.json
657
+ - spec/fixtures/authorities/linked_data/lod_full_config_1_0.json
658
+ - spec/fixtures/authorities/linked_data/lod_lang_defaults.json
659
+ - spec/fixtures/authorities/linked_data/lod_lang_multi_defaults.json
660
+ - spec/fixtures/authorities/linked_data/lod_lang_no_defaults.json
661
+ - spec/fixtures/authorities/linked_data/lod_lang_param.json
662
+ - spec/fixtures/authorities/linked_data/lod_min_config.json
663
+ - spec/fixtures/authorities/linked_data/lod_search_only_config.json
664
+ - spec/fixtures/authorities/linked_data/lod_sort.json
665
+ - spec/fixtures/authorities/linked_data/lod_term_id_param_config.json
666
+ - spec/fixtures/authorities/linked_data/lod_term_only_config.json
667
+ - spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json
715
668
  - spec/fixtures/discogs-find-response-json.json
716
- - spec/fixtures/loc-subject-find-response.txt
717
- - spec/fixtures/lod_oclc_all_query_3_results.rdf.xml
718
- - spec/fixtures/lod_2_ranked_2_unranked.nt
669
+ - spec/fixtures/discogs-find-response-jsonld-master.json
670
+ - spec/fixtures/discogs-find-response-jsonld-release.json
671
+ - spec/fixtures/discogs-id-matches-master.json
672
+ - spec/fixtures/discogs-id-matches-release.json
673
+ - spec/fixtures/discogs-id-not-found-master.json
674
+ - spec/fixtures/discogs-id-not-found-release.json
675
+ - spec/fixtures/discogs-search-response-no-auth.json
676
+ - spec/fixtures/discogs-search-response-no-subauth.json
677
+ - spec/fixtures/discogs-search-response-per-page.json
678
+ - spec/fixtures/discogs-search-response-set-record.json
679
+ - spec/fixtures/discogs-search-response-subauth.json
680
+ - spec/fixtures/funders-find-response.json
681
+ - spec/fixtures/funders-noquery.json
719
682
  - spec/fixtures/funders-noresults.json
683
+ - spec/fixtures/funders-result.json
684
+ - spec/fixtures/geonames-find-response.json
685
+ - spec/fixtures/geonames-response.json
686
+ - spec/fixtures/getty-aat-find-response.json
687
+ - spec/fixtures/getty-error-response.txt
720
688
  - spec/fixtures/getty-tgn-find-response.json
721
- - spec/fixtures/lod_lang_search_enfr.rdf.xml
689
+ - spec/fixtures/getty-ulan-find-response.json
722
690
  - spec/fixtures/journals-find-response-two-issn.json
723
- - spec/fixtures/mesh.txt
724
- - spec/fixtures/discogs-search-response-subauth.json
725
- - spec/fixtures/lod_term_with_blanknode_objects.nt
726
- - spec/fixtures/geonames-find-response.json
727
- - spec/fixtures/lod_oclc_personalName_query_3_results.rdf.xml
728
- - spec/fixtures/loc-response.txt
729
- - spec/fixtures/discogs-id-not-found-release.json
730
- - spec/fixtures/funders-find-response.json
731
- - spec/fixtures/lexvo_snippet.rdf.xml
732
691
  - spec/fixtures/journals-find-response.json
733
- - spec/fixtures/discogs-id-matches-master.json
734
- - spec/fixtures/discogs-find-response-jsonld-master.json
692
+ - spec/fixtures/journals-noquery.json
693
+ - spec/fixtures/journals-noresults.json
694
+ - spec/fixtures/journals-result.json
695
+ - spec/fixtures/lexvo_snippet.rdf.xml
696
+ - spec/fixtures/loc-names-response.txt
697
+ - spec/fixtures/loc-response.txt
698
+ - spec/fixtures/loc-subject-find-response.txt
699
+ - spec/fixtures/loc-subjects-response.txt
700
+ - spec/fixtures/lod_2_ranked_2_unranked.nt
701
+ - spec/fixtures/lod_3_ranked_varying_preds.nt
735
702
  - spec/fixtures/lod_lang_search_en.rdf.xml
703
+ - spec/fixtures/lod_lang_search_enesfrde.rdf.xml
704
+ - spec/fixtures/lod_lang_search_enfr.rdf.xml
705
+ - spec/fixtures/lod_lang_search_enfrde.rdf.xml
706
+ - spec/fixtures/lod_lang_search_filtering.nt
707
+ - spec/fixtures/lod_lang_search_fr.rdf.xml
708
+ - spec/fixtures/lod_lang_search_sv.rdf.xml
736
709
  - spec/fixtures/lod_lang_term_en.rdf.xml
737
- - spec/fixtures/journals-noresults.json
738
- - spec/fixtures/discogs-id-matches-release.json
739
- - spec/fixtures/journals-noquery.json
710
+ - spec/fixtures/lod_lang_term_enfr.rdf.xml
711
+ - spec/fixtures/lod_lang_term_enfr_noalt.rdf.xml
712
+ - spec/fixtures/lod_lang_term_enfrde.rdf.xml
713
+ - spec/fixtures/lod_lang_term_fr.rdf.xml
714
+ - spec/fixtures/lod_loc_second_term_found.rdf.xml
715
+ - spec/fixtures/lod_loc_term_bad_id.rdf.xml
716
+ - spec/fixtures/lod_loc_term_found.rdf.xml
717
+ - spec/fixtures/lod_oclc_all_query_3_results.rdf.xml
718
+ - spec/fixtures/lod_oclc_personalName_query_3_results.rdf.xml
740
719
  - spec/fixtures/lod_oclc_query_no_results.rdf.xml
741
- - spec/fixtures/authorities/linked_data/lod_search_only_config.json
742
- - spec/fixtures/authorities/linked_data/lod_sort.json
743
- - spec/fixtures/authorities/linked_data/lod_min_config.json
744
- - spec/fixtures/authorities/linked_data/lod_encoding_config.json
745
- - spec/fixtures/authorities/linked_data/lod_term_id_param_config.json
746
- - spec/fixtures/authorities/linked_data/lod_lang_multi_defaults.json
747
- - spec/fixtures/authorities/linked_data/lod_full_config_1_0.json
748
- - spec/fixtures/authorities/linked_data/lod_lang_defaults.json
749
- - spec/fixtures/authorities/linked_data/lod_term_only_config.json
750
- - spec/fixtures/authorities/linked_data/lod_lang_no_defaults.json
751
- - spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json
752
- - spec/fixtures/authorities/linked_data/lod_full_config.json
753
- - spec/fixtures/authorities/linked_data/lod_lang_param.json
754
- - spec/fixtures/authorities/authority_D.yml
755
- - spec/fixtures/authorities/authority_A.yml
756
- - spec/fixtures/authorities/authority_C.yml
757
- - spec/fixtures/authorities/authority_U.yml
758
- - spec/fixtures/authorities/authority_B.yml
759
- - spec/fixtures/geonames-response.json
760
- - spec/fixtures/tgn-response.txt
761
- - spec/fixtures/lod_oclc_term_found.rdf.xml
762
720
  - spec/fixtures/lod_oclc_term_bad_id.nt
721
+ - spec/fixtures/lod_oclc_term_found.rdf.xml
763
722
  - spec/fixtures/lod_search_with_blanknode_subjects.nt
764
- - spec/fixtures/assign-fast-noheader.json
765
- - spec/fixtures/lod_loc_second_term_found.rdf.xml
766
- - spec/fixtures/lod_lang_search_enfrde.rdf.xml
767
- - spec/fixtures/funders-result.json
768
- - spec/fixtures/lod_lang_search_sv.rdf.xml
723
+ - spec/fixtures/lod_term_with_blanknode_objects.nt
724
+ - spec/fixtures/mesh.txt
725
+ - spec/fixtures/oclcts-response-mesh-1.txt
726
+ - spec/fixtures/oclcts-response-mesh-2.txt
727
+ - spec/fixtures/oclcts-response-mesh-3.txt
728
+ - spec/fixtures/tgn-response.txt
769
729
  - spec/fixtures/ulan-response.txt
730
+ - spec/lib/authorities/assign_fast_spec.rb
731
+ - spec/lib/authorities/base_spec.rb
732
+ - spec/lib/authorities/crossref_spec.rb
733
+ - spec/lib/authorities/discogs/generic_authority_spec.rb
734
+ - spec/lib/authorities/discogs_spec.rb
735
+ - spec/lib/authorities/geonames_spec.rb
736
+ - spec/lib/authorities/getty/aat_spec.rb
737
+ - spec/lib/authorities/getty/tgn_spec.rb
738
+ - spec/lib/authorities/getty/ulan_spec.rb
739
+ - spec/lib/authorities/getty_spec.rb
740
+ - spec/lib/authorities/linked_data/config_spec.rb
741
+ - spec/lib/authorities/linked_data/find_term_spec.rb
742
+ - spec/lib/authorities/linked_data/generic_authority_spec.rb
743
+ - spec/lib/authorities/linked_data/search_config_spec.rb
744
+ - spec/lib/authorities/linked_data/search_query_spec.rb
745
+ - spec/lib/authorities/linked_data/term_config_spec.rb
746
+ - spec/lib/authorities/loc_spec.rb
747
+ - spec/lib/authorities/local/file_based_authority_spec.rb
748
+ - spec/lib/authorities/local/mysql_table_based_authority_spec.rb
749
+ - spec/lib/authorities/local/table_based_authority_spec.rb
750
+ - spec/lib/authorities/local_spec.rb
751
+ - spec/lib/authorities/mesh_spec.rb
752
+ - spec/lib/authorities/oclcts_spec.rb
753
+ - spec/lib/authorities/space_fix_encoder.rb
754
+ - spec/lib/authorities/tgnlang_spec.rb
755
+ - spec/lib/authorities_loc_subauthorities.rb
756
+ - spec/lib/configuration_spec.rb
757
+ - spec/lib/mesh_data_parser_spec.rb
758
+ - spec/lib/services/rdf_authority_parser_spec.rb
759
+ - spec/lib/tasks/mesh.rake_spec.rb
760
+ - spec/models/iri_template/url_config_spec.rb
761
+ - spec/models/iri_template/variable_map_spec.rb
762
+ - spec/models/linked_data/config/context_map_spec.rb
763
+ - spec/models/linked_data/config/context_property_map_spec.rb
764
+ - spec/models/subject_mesh_term_spec.rb
765
+ - spec/requests/cors_headers_spec.rb
770
766
  - spec/routing/linked_data_route_spec.rb
771
767
  - spec/routing/route_spec.rb
772
- - spec/controllers/terms_controller_spec.rb
773
- - spec/controllers/linked_data_terms_controller_spec.rb
774
- - spec/services/linked_data/request_header_service_spec.rb
768
+ - spec/services/iri_template_service_spec.rb
775
769
  - spec/services/linked_data/authority_service_spec.rb
776
- - spec/services/linked_data/ldpath_service_spec.rb
770
+ - spec/services/linked_data/authority_url_service_spec.rb
771
+ - spec/services/linked_data/deep_sort_service_spec.rb
777
772
  - spec/services/linked_data/graph_service_spec.rb
773
+ - spec/services/linked_data/language_service_spec.rb
778
774
  - spec/services/linked_data/language_sort_service_spec.rb
775
+ - spec/services/linked_data/ldpath_service_spec.rb
776
+ - spec/services/linked_data/mapper/context_mapper_service_spec.rb
779
777
  - spec/services/linked_data/mapper/graph_ldpath_mapper_service_spec.rb
780
- - spec/services/linked_data/mapper/term_results_mapper_service_spec.rb
781
- - spec/services/linked_data/mapper/search_results_mapper_service_spec.rb
782
778
  - spec/services/linked_data/mapper/graph_mapper_service_spec.rb
783
- - spec/services/linked_data/mapper/context_mapper_service_spec.rb
784
779
  - spec/services/linked_data/mapper/graph_predicate_mapper_service_spec.rb
785
- - spec/services/linked_data/deep_sort_service_spec.rb
780
+ - spec/services/linked_data/mapper/search_results_mapper_service_spec.rb
781
+ - spec/services/linked_data/mapper/term_results_mapper_service_spec.rb
786
782
  - spec/services/linked_data/performance_data_service_spec.rb
787
- - spec/services/linked_data/language_service_spec.rb
788
- - spec/services/linked_data/authority_url_service_spec.rb
783
+ - spec/services/linked_data/request_header_service_spec.rb
789
784
  - spec/services/linked_data/response_header_service_spec.rb
790
785
  - spec/services/pagination_service_spec.rb
791
- - spec/services/iri_template_service_spec.rb
786
+ - spec/spec_helper.rb
787
+ - spec/support/matchers/include_hash.rb
788
+ - spec/test_app_templates/Gemfile.extra
789
+ - spec/test_app_templates/lib/generators/test_app_generator.rb