jruby_streaming_update_solr_server 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.1
@@ -225,6 +225,8 @@ class SolrInputDocument
225
225
  end
226
226
  end
227
227
 
228
+ alias_method :additive_merge!, :merge!
229
+
228
230
  # pretty-print
229
231
  # @return A string representation of the fields and values
230
232
  def to_s
@@ -27,6 +27,16 @@ class TestJrubyStreamingUpdateSolrServer < Test::Unit::TestCase
27
27
  assert_equal ['Bill'], doc[:name]
28
28
  end
29
29
 
30
+ should "Allow additive_merge! as well" do
31
+ doc = SolrInputDocument.new
32
+ doc << [:id, 1]
33
+ h = {:id => 2, :name => 'Bill'}
34
+ doc.additive_merge! h
35
+ assert_equal [1,2], doc[:id]
36
+ assert_equal ['Bill'], doc[:name]
37
+
38
+ end
39
+
30
40
  should "Destroy existing items via []=" do
31
41
  doc = SolrInputDocument.new
32
42
  doc[:id] = 1
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
7
+ - 3
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bill Dueber
@@ -14,14 +14,13 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-09 00:00:00 -04:00
17
+ date: 2010-08-16 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thoughtbot-shoulda
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
25
  - - ">="
27
26
  - !ruby/object:Gem::Version
@@ -34,7 +33,6 @@ dependencies:
34
33
  name: yard
35
34
  prerelease: false
36
35
  requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
36
  requirements:
39
37
  - - ">="
40
38
  - !ruby/object:Gem::Version
@@ -76,7 +74,6 @@ rdoc_options:
76
74
  require_paths:
77
75
  - lib
78
76
  required_ruby_version: !ruby/object:Gem::Requirement
79
- none: false
80
77
  requirements:
81
78
  - - ">="
82
79
  - !ruby/object:Gem::Version
@@ -84,7 +81,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
81
  - 0
85
82
  version: "0"
86
83
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
84
  requirements:
89
85
  - - ">="
90
86
  - !ruby/object:Gem::Version
@@ -94,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
90
  requirements: []
95
91
 
96
92
  rubyforge_project:
97
- rubygems_version: 1.3.7
93
+ rubygems_version: 1.3.6
98
94
  signing_key:
99
95
  specification_version: 3
100
96
  summary: Simple jruby interface into StreamingUpdateSolrServer