rummageable 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,8 @@ module Rummageable
22
22
  end
23
23
 
24
24
  def delete_all(index_name)
25
- RestClient.delete unescaped_url_for("*", index_name), content_type: :json, accept: :json
25
+ url = Rummageable.rummager_host + index_name + "/documents?delete_all=1"
26
+ RestClient.delete url, content_type: :json, accept: :json
26
27
  end
27
28
 
28
29
  def commit(index_name)
@@ -1,3 +1,3 @@
1
1
  module Rummageable
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -135,14 +135,14 @@ class RummageableTest < MiniTest::Unit::TestCase
135
135
  end
136
136
 
137
137
  def test_should_allow_delete_all
138
- stub_request(:delete, "#{API}/documents/*").
138
+ stub_request(:delete, "#{API}/documents?delete_all=1").
139
139
  to_return(status: 200, body: '{"status":"OK"}')
140
140
 
141
141
  Rummageable.delete_all
142
142
  end
143
143
 
144
144
  def test_should_allow_delete_all_from_an_alternative_index
145
- stub_request(:delete, "#{API}/alternative/documents/*").
145
+ stub_request(:delete, "#{API}/alternative/documents?delete_all=1").
146
146
  to_return(status: 200, body: '{"status":"OK"}')
147
147
 
148
148
  Rummageable.delete_all('/alternative')
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rummageable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.0
5
+ version: 0.6.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - GovUK Beta Team
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-11-20 00:00:00 Z
13
+ date: 2012-11-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- hash: -1342120021253896970
108
+ hash: 3138412841813964079
109
109
  segments:
110
110
  - 0
111
111
  version: "0"
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- hash: -1342120021253896970
117
+ hash: 3138412841813964079
118
118
  segments:
119
119
  - 0
120
120
  version: "0"