algoliasearch 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38bb8e365cc6921a1820890441f95ae1941783ce
4
- data.tar.gz: 455d9b1dbce92bfac9ded41bf71ac43756a0f434
3
+ metadata.gz: 8f0efe2f5a4cedc79116012363711bb5feef6c0d
4
+ data.tar.gz: e8cf374f19589655a79ef2d3be6e062aed1d2dc7
5
5
  SHA512:
6
- metadata.gz: f2c7e270e4211d32ef496a2ca67f566d646ccf78fe0fc1d055c3cada84f4977162fc7a0604feb0c30ca4379964918686ef7232dc1554fc860a5c4777377eb99f
7
- data.tar.gz: 85b6b8642797de0d8a41880f001476127ae0541029ce0e38870ecd12da6ffb047a377075eaba0accd8ae65b2984422307be0cd44120ab1b6d4d366ca917bca0d
6
+ metadata.gz: c17f7ec74abf7a4b5394344219a1a4085f286d3c6decbc7eae0ba0f6e341746e39ebfae5c459aefa600a350db4cb653ca7d6d49524508c93e7557f5dbd4acfba
7
+ data.tar.gz: 3bc352b81e23f1c1a71c507403080fc8e03237c4360f4287d1d0696269e40fe0d9da9821f4c068d04201ef3f8cb317a56fd359aa1ce811930e45e87b3bad1579
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2013-12-11 1.1.14
4
+
5
+ * Added index.add_user_key(acls, validity, rate_limit, maxApiCalls)
6
+
3
7
  2013-12-10 1.1.13
4
8
 
5
9
  * WebMock integration
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: algoliasearch 1.1.13 ruby lib
5
+ # stub: algoliasearch 1.1.14 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "algoliasearch"
9
- s.version = "1.1.13"
9
+ s.version = "1.1.14"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Algolia"]
data/lib/algolia/index.rb CHANGED
@@ -380,8 +380,8 @@ module Algolia
380
380
  # - editSettings : allows to change index settings (https only)
381
381
  # @param validity the number of seconds after which the key will be automatically removed (0 means no time limit for this key)
382
382
  #
383
- def add_user_key(acls, validity = 0)
384
- Algolia.client.post(Protocol.index_keys_uri(name), {"acl" => acls, "validity" => validity}.to_json)
383
+ def add_user_key(acls, validity = 0, maxQueriesPerIPPerHour = 0, maxHitsPerQuery = 0)
384
+ Algolia.client.post(Protocol.index_keys_uri(name), {"acl" => acls, "validity" => validity, "maxQueriesPerIPPerHour" => maxQueriesPerIPPerHour.to_i, "maxHitsPerQuery" => maxHitsPerQuery.to_i}.to_json)
385
385
  end
386
386
 
387
387
  # Delete an existing user key
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = "1.1.13"
2
+ VERSION = "1.1.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.1.11
118
+ rubygems_version: 2.0.3
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: A simple Ruby client for the algolia.com REST API