algoliasearch 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/ChangeLog +3 -0
- data/lib/algolia/client.rb +5 -5
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6499852364a9df2e8315a4fd8dd39f990aeddd24
|
4
|
+
data.tar.gz: f7adb2fa84f3c2ba9b777687776a6cb62c4606d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea07f4064258fc0e80ba6d5f3aac45e0b53f7ab16f601c294d8919864639be0c49c5c270aad2311c04efd4772846cc2f669217baf3ef732a4002da4cdfb495e
|
7
|
+
data.tar.gz: 1198f1d56a57cbfd8d00d2bc5644e9c762c6d55b403fae3b693fe85e2b7942f1eeb2b42ee7103a86c418512b5d03cd5c1f5559e75e5871a4768927f844138b0c
|
data/.travis.yml
CHANGED
data/ChangeLog
CHANGED
data/lib/algolia/client.rb
CHANGED
@@ -72,7 +72,7 @@ module Algolia
|
|
72
72
|
# Disable IP rate limit enabled with enableRateLimitForward() function
|
73
73
|
#
|
74
74
|
def disable_rate_limit_forward
|
75
|
-
headers[Protocol::HEADER_API_KEY] =
|
75
|
+
headers[Protocol::HEADER_API_KEY] = api_key
|
76
76
|
headers.delete(Protocol::HEADER_FORWARDED_IP)
|
77
77
|
headers.delete(Protocol::HEADER_FORWARDED_API_KEY)
|
78
78
|
end
|
@@ -81,7 +81,7 @@ module Algolia
|
|
81
81
|
# Convenience method thats wraps enable_rate_limit_forward/disable_rate_limit_forward
|
82
82
|
#
|
83
83
|
def with_rate_limits(end_user_ip, rate_limit_api_key, &block)
|
84
|
-
enable_rate_limit_forward(
|
84
|
+
enable_rate_limit_forward(api_key, end_user_ip, rate_limit_api_key)
|
85
85
|
begin
|
86
86
|
yield
|
87
87
|
ensure
|
@@ -135,7 +135,7 @@ module Algolia
|
|
135
135
|
# @param dst_index the new index name that will contains a copy of srcIndexName (destination will be overriten if it already exist).
|
136
136
|
#
|
137
137
|
def move_index!(src_index, dst_index)
|
138
|
-
res =
|
138
|
+
res = move_index(src_index, dst_index)
|
139
139
|
init_index(dst_index).wait_task(res['taskID'])
|
140
140
|
res
|
141
141
|
end
|
@@ -147,7 +147,7 @@ module Algolia
|
|
147
147
|
#
|
148
148
|
def copy_index(src_index, dst_index)
|
149
149
|
request = {"operation" => "copy", "destination" => dst_index};
|
150
|
-
|
150
|
+
post(Protocol.index_operation_uri(src_index), request.to_json)
|
151
151
|
end
|
152
152
|
|
153
153
|
#
|
@@ -156,7 +156,7 @@ module Algolia
|
|
156
156
|
# @param dst_index the new index name that will contains a copy of srcIndexName (destination will be overriten if it already exist).
|
157
157
|
#
|
158
158
|
def copy_index!(src_index, dst_index)
|
159
|
-
res =
|
159
|
+
res = copy_index(src_index, dst_index)
|
160
160
|
init_index(dst_index).wait_task(res['taskID'])
|
161
161
|
res
|
162
162
|
end
|
data/lib/algolia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algoliasearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Algolia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|