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 +4 -4
- data/ChangeLog +4 -0
- data/algoliasearch.gemspec +2 -2
- data/lib/algolia/index.rb +2 -2
- 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: 8f0efe2f5a4cedc79116012363711bb5feef6c0d
|
|
4
|
+
data.tar.gz: e8cf374f19589655a79ef2d3be6e062aed1d2dc7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c17f7ec74abf7a4b5394344219a1a4085f286d3c6decbc7eae0ba0f6e341746e39ebfae5c459aefa600a350db4cb653ca7d6d49524508c93e7557f5dbd4acfba
|
|
7
|
+
data.tar.gz: 3bc352b81e23f1c1a71c507403080fc8e03237c4360f4287d1d0696269e40fe0d9da9821f4c068d04201ef3f8cb317a56fd359aa1ce811930e45e87b3bad1579
|
data/ChangeLog
CHANGED
data/algoliasearch.gemspec
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
data/lib/algolia/version.rb
CHANGED
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.
|
|
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.
|
|
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
|