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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95b3d20c46dcec3d87a58b59208d8b956f69612f
4
- data.tar.gz: 8fb785f3f57a5295e30906f2edd265c8d1d126fc
3
+ metadata.gz: 6499852364a9df2e8315a4fd8dd39f990aeddd24
4
+ data.tar.gz: f7adb2fa84f3c2ba9b777687776a6cb62c4606d1
5
5
  SHA512:
6
- metadata.gz: 2095a59b89eb093a49c33b7b2c3ed6e4e37c5b12f0dc1b29a7df95bdccfb6864502129e518c1761dc5ee6356303502272ca93988997b396479effb07926af946
7
- data.tar.gz: c55055efdec8a1cca1c16f9211aa119f81434a589ed1482862b591104787b6a42e66c698f51389fbf628bf513602b48a80fdcebf9ec3a5bbd2fdfb7fa99b49d8
6
+ metadata.gz: 2ea07f4064258fc0e80ba6d5f3aac45e0b53f7ab16f601c294d8919864639be0c49c5c270aad2311c04efd4772846cc2f669217baf3ef732a4002da4cdfb495e
7
+ data.tar.gz: 1198f1d56a57cbfd8d00d2bc5644e9c762c6d55b403fae3b693fe85e2b7942f1eeb2b42ee7103a86c418512b5d03cd5c1f5559e75e5871a4768927f844138b0c
data/.travis.yml CHANGED
@@ -3,7 +3,6 @@ branches:
3
3
  only:
4
4
  - master
5
5
  rvm:
6
- - 1.8.7
7
6
  - 1.9.3
8
7
  - 2.0.0
9
8
  - 2.1.10
@@ -13,6 +12,7 @@ rvm:
13
12
  - rbx-2
14
13
  matrix:
15
14
  allow_failures:
15
+ - rvm: 1.8.7
16
16
  - rvm: rbx-2
17
17
  cache: bundler
18
18
  env:
data/ChangeLog CHANGED
@@ -1,5 +1,8 @@
1
1
  CHANGELOG
2
2
 
3
+ 2016-12-05
4
+ * Fix client scoped methods
5
+
3
6
  2016-11-25 1.12.1
4
7
  * Rename `search_facet` to `search_for_facet_values`
5
8
 
@@ -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] = Algolia.client.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(Algolia.client.api_key, end_user_ip, rate_limit_api_key)
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 = Algolia.move_index(src_index, dst_index)
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
- Algolia.client.post(Protocol.index_operation_uri(src_index), request.to_json)
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 = Algolia.copy_index(src_index, dst_index)
159
+ res = copy_index(src_index, dst_index)
160
160
  init_index(dst_index).wait_task(res['taskID'])
161
161
  res
162
162
  end
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = "1.12.1"
2
+ VERSION = "1.12.2"
3
3
  end
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.1
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-25 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient