rummageable 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rummageable/implementation.rb +2 -1
- data/lib/rummageable/version.rb +1 -1
- data/test/rummageable_test.rb +2 -2
- metadata +4 -4
@@ -22,7 +22,8 @@ module Rummageable
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def delete_all(index_name)
|
25
|
-
|
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)
|
data/lib/rummageable/version.rb
CHANGED
data/test/rummageable_test.rb
CHANGED
@@ -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.
|
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-
|
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:
|
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:
|
117
|
+
hash: 3138412841813964079
|
118
118
|
segments:
|
119
119
|
- 0
|
120
120
|
version: "0"
|