uri_service 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/uri_service/ci.rake +10 -10
- data/lib/uri_service/client.rb +1 -0
- data/lib/uri_service/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4c7759f26cc8fd2713935214a4684ad39a7b774
|
4
|
+
data.tar.gz: 2a27ee4c723ae12aa3f04127898be45549dd660d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec8f4754d28a70a71ac4d95ecff720cd68c4852c310013d2c41a067ac53111d1654391b87f6e5671a29c6c956768a5bfc537a8dbdeef07797c9242eec6c0014e
|
7
|
+
data.tar.gz: aa0b8c9fd0710acac275ae1734da2b43cdde92d41bd3fbe8e75b6ba59b0027aecf186f3fdfca7cf1200bbd2c3497fad4466d78496dbb5ba4cd10d3a5b862b4e7
|
@@ -22,8 +22,8 @@ namespace :uri_service do
|
|
22
22
|
|
23
23
|
desc "CI build"
|
24
24
|
task :ci do
|
25
|
-
|
26
|
-
Rake::Task["uri_service:ci_with_jetty_wrapper"].invoke
|
25
|
+
Rake::Task["uri_service:ci_with_solr_6_wrapper"].invoke
|
26
|
+
#Rake::Task["uri_service:ci_with_jetty_wrapper"].invoke
|
27
27
|
end
|
28
28
|
|
29
29
|
desc "Preparation steps for the CI run"
|
@@ -34,11 +34,12 @@ namespace :uri_service do
|
|
34
34
|
FileUtils.mkdir_p(File.dirname(uri_service_config['database']['database']))
|
35
35
|
client = UriService::Client.new(uri_service_config)
|
36
36
|
client.create_required_tables
|
37
|
+
FileUtils.mkdir_p('tmp')
|
37
38
|
end
|
38
39
|
|
39
|
-
desc "CI build (using SolrWrapper and Solr
|
40
|
-
task :
|
41
|
-
solr_version = '
|
40
|
+
desc "CI build (using SolrWrapper and Solr 6)"
|
41
|
+
task ci_with_solr_6_wrapper: :ci_prepare do
|
42
|
+
solr_version = '6.3.0'
|
42
43
|
instance_dir = File.join('tmp', "solr-#{solr_version}")
|
43
44
|
FileUtils.rm_rf(instance_dir)
|
44
45
|
|
@@ -47,14 +48,14 @@ namespace :uri_service do
|
|
47
48
|
port: 9983,
|
48
49
|
version: solr_version,
|
49
50
|
verbose: false,
|
51
|
+
mirror_url: 'http://lib-solr-mirror.princeton.edu/dist/',
|
50
52
|
managed: true,
|
51
53
|
download_path: File.join('tmp', "solr-#{solr_version}.zip"),
|
52
|
-
instance_dir:
|
54
|
+
instance_dir: instance_dir,
|
53
55
|
}) do |solr_wrapper_instance|
|
54
56
|
|
55
57
|
# Create collection
|
56
|
-
solr_wrapper_instance.with_collection(name: 'uri_service_test', dir: File.join('spec/fixtures', 'uri_service_test_cores/uri_service_test-
|
57
|
-
Rake::Task["uri_service:ci_prepare"].invoke
|
58
|
+
solr_wrapper_instance.with_collection(name: 'uri_service_test', dir: File.join('spec/fixtures', 'uri_service_test_cores/uri_service_test-solr6-conf')) do |collection_name|
|
58
59
|
Rake::Task["uri_service:rspec"].invoke
|
59
60
|
end
|
60
61
|
|
@@ -63,7 +64,7 @@ namespace :uri_service do
|
|
63
64
|
end
|
64
65
|
|
65
66
|
desc "CI build (using JettyWrapper)"
|
66
|
-
task :
|
67
|
+
task ci_with_jetty_wrapper: :ci_prepare do
|
67
68
|
|
68
69
|
Jettywrapper.url = "https://github.com/cul/hydra-jetty/archive/solr-only.zip"
|
69
70
|
Jettywrapper.jetty_dir = File.join('tmp', 'jetty-test')
|
@@ -90,7 +91,6 @@ namespace :uri_service do
|
|
90
91
|
java_opts: ["-XX:MaxPermSize=128m", "-Xmx256m"]
|
91
92
|
})
|
92
93
|
error = Jettywrapper.wrap(jetty_params) do
|
93
|
-
Rake::Task["uri_service:ci_prepare"].invoke
|
94
94
|
Rake::Task["uri_service:rspec"].invoke
|
95
95
|
end
|
96
96
|
raise "test failures: #{error}" if error
|
data/lib/uri_service/client.rb
CHANGED
@@ -391,6 +391,7 @@ class UriService::Client
|
|
391
391
|
|
392
392
|
solr_params = {
|
393
393
|
:fq => 'vocabulary_string_key:' + UriService.solr_escape(vocabulary_string_key),
|
394
|
+
:q => '*:*',
|
394
395
|
:rows => limit,
|
395
396
|
:start => start,
|
396
397
|
:sort => 'value_ssort asc, uri asc' # Include 'uri asc' as part of sort to ensure consistent sorting
|
data/lib/uri_service/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uri_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric O'Hanlon
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
204
|
+
rubygems_version: 2.6.14
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: A service for registering local URIs and performing both local and remote
|