rummageable 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rummageable.rb CHANGED
@@ -36,7 +36,8 @@ module Rummageable
36
36
  end
37
37
  end
38
38
 
39
- def delete(id, type = 'edition')
39
+ def delete(id, options = {})
40
+ type = options[:type] || 'edition'
40
41
  repeatedly do
41
42
  make_request(:delete, documents_url(id: id, type: type))
42
43
  end
@@ -1,3 +1,3 @@
1
1
  module Rummageable
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
data/test/delete_test.rb CHANGED
@@ -28,7 +28,7 @@ class DeleteTest < MiniTest::Unit::TestCase
28
28
  stub_request(:delete, documents_url(id: 'jobs-exact', type: 'best_bet')).to_return(status(200))
29
29
 
30
30
  index = Rummageable::Index.new(rummager_url, index_name)
31
- index.delete('jobs-exact', 'best_bet')
31
+ index.delete('jobs-exact', type: 'best_bet')
32
32
 
33
33
  assert_requested :delete, documents_url(id: 'jobs-exact', type: 'best_bet') do |request|
34
34
  request.headers['Content-Type'] == 'application/json' &&
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rummageable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-02 00:00:00.000000000 Z
12
+ date: 2014-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -182,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: 4581626904595307404
185
+ hash: 115679246859311682
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  none: false
188
188
  requirements:
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: 4581626904595307404
194
+ hash: 115679246859311682
195
195
  requirements: []
196
196
  rubyforge_project:
197
197
  rubygems_version: 1.8.23