es 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,8 +10,8 @@ module ES
10
10
 
11
11
  def bulk(requests, path = nil)
12
12
  serialized = requests.map do |r|
13
- @dumper.dump(r)
14
- end.join("\n")
13
+ @dumper.dump(r) + "\n"
14
+ end.join('')
15
15
 
16
16
  response = @client.bulk(serialized, path)
17
17
 
@@ -1,3 +1,3 @@
1
1
  module ES
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -22,7 +22,7 @@ describe ES::Client do
22
22
 
23
23
  it 'serializes data for .bulk' do
24
24
  requests = [1, 2, 3]
25
- client.should_receive(:bulk).with("1\n2\n3", 'an_index').and_return(raw_response)
25
+ client.should_receive(:bulk).with("1\n2\n3\n", 'an_index').and_return(raw_response)
26
26
 
27
27
  subject.bulk(requests, 'an_index').should == response
28
28
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: es
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Suchal
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-21 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oj