solr_wrapper 2.1.0 → 2.2.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
- SHA1:
3
- metadata.gz: 58da2cf39d47b880c7b1b3adbf446cb9e5d3dece
4
- data.tar.gz: c1603b745a74afc2ab39a9ac8fd48954a17c51e3
2
+ SHA256:
3
+ metadata.gz: 765b18a31b677209a0661be1447d607905a643b6f92f35b8ca1676d1a818ef68
4
+ data.tar.gz: d5aad9d544ef2cb4195b086c5a0f7c6f8f2c3065f24e664e215c92ce05707a74
5
5
  SHA512:
6
- metadata.gz: 15233b1419a26bb1914d1826e4f5dcf46044c50a48a0d5693b05af257e7163bca147253ee4c9ee7565afbeec9b65a7d5e22790fddd41e1d01b09f00e8673c8a3
7
- data.tar.gz: 9bd88c7b5fffb1f84ef5024cab91be4daf30732e30345fbec3eb7597f2048e233bcac6d5933c7122923b79020890b9f6f81ba59db2b0d2d76a862816f28fa7b3
6
+ metadata.gz: c031863efbf8794077b2126db2120ab8b284855d0e0cc9dce3656d7d18b42ef9ac016deca68a899c000cbfecef38b3ff8b3e2c37e1028933772703f9c6cfe43d
7
+ data.tar.gz: c02222dcdc846d125d12cc929348e2fa25737c62ba9e92113c9bfc65755de7945431effd779ee4c659ca726a0651ef480057be548fec8c47c3f0c8b36ddd419d
@@ -1,13 +1,12 @@
1
1
  language: ruby
2
- sudo: false
2
+
3
3
  rvm:
4
- - 2.5.0
5
- - 2.4.2
6
- - 2.3.6
7
- - jruby-9.1.16.0
4
+ - 2.6.3
5
+ - 2.5.3
6
+ - jruby-9.2.7.0
8
7
 
9
8
  jdk:
10
- - oraclejdk8
9
+ - openjdk8
11
10
 
12
11
  env:
13
12
  global:
data/README.md CHANGED
@@ -67,7 +67,7 @@ By default, it looks for configuration files at `.solr_wrapper` and `~/.solr_wra
67
67
 
68
68
  You can also specify a configuration file when launching from the command line as follows:
69
69
  ```
70
- $ solr_wrapper -config <path_to_config_file>
70
+ $ solr_wrapper --config <path_to_config_file>
71
71
  ```
72
72
 
73
73
  ### Cleaning your repository from the command line
@@ -187,8 +187,8 @@ module SolrWrapper
187
187
  end
188
188
 
189
189
  def fetch_latest_version
190
- response = Faraday.get('https://lucene.apache.org/latestversion.html')
191
- response.body[/Apache Solr \d+\.\d+\.\d+/][/\d+\.\d+\.\d+/]
190
+ response = Faraday.get(options.fetch(:latest_version_url, 'https://lucene.apache.org/solr/downloads.html'))
191
+ response.body[/Solr \d+\.\d+\.\d+/][/\d+\.\d+\.\d+/]
192
192
  end
193
193
  end
194
194
  end
@@ -318,7 +318,7 @@ module SolrWrapper
318
318
  exit_status = runner.run(stringio)
319
319
 
320
320
  if exit_status != 0 && cmd != 'status'
321
- raise "Failed to execute solr #{cmd}: #{stringio.read}. Further information may be available in #{instance_dir}/logs"
321
+ raise "Failed to execute solr #{cmd}: #{stringio.read}. Further information may be available in #{instance_dir}/server/logs"
322
322
  end
323
323
 
324
324
  stringio
@@ -1,3 +1,3 @@
1
1
  module SolrWrapper
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "ruby-progressbar"
24
24
  spec.add_dependency "retriable"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.7"
27
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "bundler", ">= 1.7", "< 3"
27
+ spec.add_development_dependency "rake", "~> 10.0", "< 13"
28
28
 
29
29
  spec.add_development_dependency "rspec"
30
- spec.add_development_dependency "simple_solr_client"
30
+ spec.add_development_dependency "simple_solr_client", "= 0.2.0" # 0.2.1 removed support for schema retrieval
31
31
  spec.add_development_dependency "coveralls"
32
32
  spec.add_development_dependency "webmock"
33
33
  end
@@ -75,13 +75,25 @@ describe SolrWrapper::Configuration do
75
75
  let(:options) { { version: 'latest'} }
76
76
 
77
77
  before do
78
- stub_request(:get, 'https://lucene.apache.org/latestversion.html').to_return(body: 'Apache Solr 1.2.3')
78
+ stub_request(:get, 'https://lucene.apache.org/solr/downloads.html').to_return(body: 'Solr 1.2.3 is the latest version')
79
79
  end
80
80
 
81
81
  it 'fetches the latest version number from apache' do
82
82
  expect(config.version).to eq '1.2.3'
83
83
  end
84
84
  end
85
+
86
+ context 'when it is "latest" and the latest url is configured' do
87
+ let(:options) { { version: 'latest', latest_version_url: 'https://example.com/latest.html'} }
88
+
89
+ before do
90
+ stub_request(:get, 'https://example.com/latest.html').to_return(body: 'Solr 1.2.1')
91
+ end
92
+
93
+ it 'fetches the latest version number from apache' do
94
+ expect(config.version).to eq '1.2.1'
95
+ end
96
+ end
85
97
  end
86
98
 
87
99
  describe '#mirror_url' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solr_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -70,16 +70,22 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.7'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '3'
76
79
  type: :development
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - "~>"
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
85
  version: '1.7'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '3'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: rake
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -87,6 +93,9 @@ dependencies:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
95
  version: '10.0'
96
+ - - "<"
97
+ - !ruby/object:Gem::Version
98
+ version: '13'
90
99
  type: :development
91
100
  prerelease: false
92
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -94,6 +103,9 @@ dependencies:
94
103
  - - "~>"
95
104
  - !ruby/object:Gem::Version
96
105
  version: '10.0'
106
+ - - "<"
107
+ - !ruby/object:Gem::Version
108
+ version: '13'
97
109
  - !ruby/object:Gem::Dependency
98
110
  name: rspec
99
111
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +124,16 @@ dependencies:
112
124
  name: simple_solr_client
113
125
  requirement: !ruby/object:Gem::Requirement
114
126
  requirements:
115
- - - ">="
127
+ - - '='
116
128
  - !ruby/object:Gem::Version
117
- version: '0'
129
+ version: 0.2.0
118
130
  type: :development
119
131
  prerelease: false
120
132
  version_requirements: !ruby/object:Gem::Requirement
121
133
  requirements:
122
- - - ">="
134
+ - - '='
123
135
  - !ruby/object:Gem::Version
124
- version: '0'
136
+ version: 0.2.0
125
137
  - !ruby/object:Gem::Dependency
126
138
  name: coveralls
127
139
  requirement: !ruby/object:Gem::Requirement
@@ -218,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
230
  - !ruby/object:Gem::Version
219
231
  version: '0'
220
232
  requirements: []
221
- rubyforge_project:
222
- rubygems_version: 2.6.11
233
+ rubygems_version: 3.0.3
223
234
  signing_key:
224
235
  specification_version: 4
225
236
  summary: Solr 5 service wrapper