solr4r 0.0.7 → 0.1.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
  SHA1:
3
- metadata.gz: 1eb013ec51b5992887da6af277a1759141707b52
4
- data.tar.gz: 3b73d27e55827c539e7a562521bab48d319e5c6b
3
+ metadata.gz: f28814e273ba246fd391ec07c65db23e9b007132
4
+ data.tar.gz: a7b51ab166ac6ccb67efae683dc54d49329305e8
5
5
  SHA512:
6
- metadata.gz: 2ba2a373cbbe0de467babbc4efcada292cc26d7a0c1ff944fb174399d9c325c74075f596974b239a54f4b2c2c3a8d18226a5d071ef76f6436527fafd6da8d62f
7
- data.tar.gz: 13b4e84b371c320b29856e576d9c5a9bcf61ac45eb372d5012b0f686c7ea7d5c5767a5c32201afcd8e90c38a38b0654ed2f8c3af3dcf5a65dbfeef7981ea5123
6
+ metadata.gz: 6b6f75fe30217425390e41859c3abf72e1c6ffb102353ca8b4420199cd93e5001462690978cab69006fec8ed31e16b6c728f264afc4a41229e91ce14e2da4157
7
+ data.tar.gz: 3053d524b042767b9beb0ad13133d75f372d1e1c8002288cc7b8a062f0ca430cfe7324ce37d52dd482fa0fcd2c0a3da6ea136df859aee697d42ab828a9004f61
data/ChangeLog CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  = Revision history for solr4r
4
4
 
5
+ == 0.1.0 [2015-08-14]
6
+
7
+ * Require at least Ruby 2.0.
8
+ * Fixed Solr4R::Builder#initialize to only pass supported options to
9
+ Nokogiri::XML::Builder.
10
+
5
11
  == 0.0.7 [2015-08-14]
6
12
 
7
13
  * Fixed Solr4R::Client::Query#json_query for multiple +fq+ parameters.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to solr4r version 0.0.7
5
+ This documentation refers to solr4r version 0.1.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ begin
18
18
 
19
19
  development_dependencies: { vcr: '~> 2.9', webmock: '~> 1.21' },
20
20
 
21
- required_ruby_version: '>= 1.9.3'
21
+ required_ruby_version: '>= 2.0'
22
22
  }
23
23
  }}
24
24
  rescue LoadError => err
@@ -49,10 +49,10 @@ module Solr4R
49
49
 
50
50
  @client = client
51
51
 
52
- super(
53
- @solr4r_opt = DEFAULT_OPTIONS.merge(options),
54
- @solr4r_doc = Document.new
55
- )
52
+ @solr4r_opt = DEFAULT_OPTIONS.merge(options)
53
+ @solr4r_doc = Document.new; d = @solr4r_doc.document
54
+
55
+ super(@solr4r_opt.delete_if { |k,| !d.respond_to?("#{k}=") }, @solr4r_doc)
56
56
  end
57
57
 
58
58
  attr_reader :client
@@ -3,8 +3,8 @@ module Solr4R
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 0
7
- TINY = 7
6
+ MINOR = 1
7
+ TINY = 0
8
8
 
9
9
  class << self
10
10
 
@@ -252,4 +252,8 @@ describe Solr4R::Builder do
252
252
 
253
253
  end
254
254
 
255
+ example do
256
+ expect{described_class.new(Solr4R::Client.new(core: 'foo'))}.not_to raise_error(NoMethodError, /core=/)
257
+ end
258
+
255
259
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solr4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -161,33 +161,15 @@ licenses:
161
161
  metadata: {}
162
162
  post_install_message: |2+
163
163
 
164
- solr4r-0.0.7 [2015-08-14]:
164
+ solr4r-0.1.0 [2015-08-14]:
165
165
 
166
- * Fixed Solr4R::Client::Query#json_query for multiple +fq+ parameters.
167
- * Renamed Solr4R::Response#extend_hash to Solr4R::Response#result_object.
168
- * Renamed Solr4R::Client::Update#delete_by_id to
169
- Solr4R::Client::Update#delete_id.
170
- * Renamed Solr4R::Client::Update#delete_by_query to
171
- Solr4R::Client::Update#delete_query.
172
- * Renamed Solr4R::Client::Update#delete_all! to
173
- Solr4R::Client::Update#delete_all.
174
- * Added alias Solr4R::Client::Update#clear for
175
- Solr4R::Client::Update#delete_all.
176
- * Added Solr4R::Client#escape.
177
- * Added Solr4R::Client#query_string.
178
- * Added Solr4R::Client#local_params_string.
179
- * Updated Solr4R::Client::Query#more_like_this_q for Solr 5.3.0.
180
- * Fixes handling of multiple field names
181
- (SOLR-7143[https://issues.apache.org/jira/browse/SOLR-7143]).
182
- * Adds support for other MoreLikeThisHandler options
183
- (SOLR-7639[https://issues.apache.org/jira/browse/SOLR-7639]).
184
- * Refactored Solr4R::Endpoints#initialize to accept options hash.
185
- * Refactored Solr4R::Builder#delete to use Solr4R::Client#query_string for
186
- query hashes.
166
+ * Require at least Ruby 2.0.
167
+ * Fixed Solr4R::Builder#initialize to only pass supported options to
168
+ Nokogiri::XML::Builder.
187
169
 
188
170
  rdoc_options:
189
171
  - "--title"
190
- - solr4r Application documentation (v0.0.7)
172
+ - solr4r Application documentation (v0.1.0)
191
173
  - "--charset"
192
174
  - UTF-8
193
175
  - "--line-numbers"
@@ -200,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
182
  requirements:
201
183
  - - ">="
202
184
  - !ruby/object:Gem::Version
203
- version: 1.9.3
185
+ version: '2.0'
204
186
  required_rubygems_version: !ruby/object:Gem::Requirement
205
187
  requirements:
206
188
  - - ">="