swiftype-app-search 0.1.1 → 0.1.2
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/lib/swiftype-app-search/client.rb +3 -3
- data/lib/swiftype-app-search/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6a0446be835e0a75f4178bfe80b2a07d753830c
|
|
4
|
+
data.tar.gz: bece76cd41d93a13e7d4cbdcebc94eda1bc92959
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5372a736a13b54af0924182d6a5a4f3c18fb7b044f1019ed440397a7a664466e89eb0e0dc4de81e8583f969cc9fad5e3e5fae504a01c79ac51cdbccbdb27d4f
|
|
7
|
+
data.tar.gz: 894f9db75969cdf67dd27d3c25b474e74bc76f19280b269521f0e254808271a1a5a50cdba5ce3f34d73a0f39186f0ac8fe386ce42cfbcfe696f6ba1d4c3552c3
|
|
@@ -38,13 +38,13 @@ module SwiftypeAppSearch
|
|
|
38
38
|
# Build a JWT for authentication
|
|
39
39
|
#
|
|
40
40
|
# @param [String] api_key the API Key to sign the request with
|
|
41
|
-
# @param [String]
|
|
41
|
+
# @param [String] api_key_name the unique name for the API Key
|
|
42
42
|
# @option options see the {App Search API}[https://swiftype.com/documentation/app-search/] for supported search options.
|
|
43
43
|
#
|
|
44
44
|
# @return [String] the JWT to use for authentication
|
|
45
|
-
def create_signed_search_key(api_key,
|
|
45
|
+
def create_signed_search_key(api_key, api_key_name, options = {})
|
|
46
46
|
raise 'Must create signed search key with an API Key, cannot use a Search Key' unless api_key.start_with?('api')
|
|
47
|
-
payload = Utils.symbolize_keys(options).merge(:
|
|
47
|
+
payload = Utils.symbolize_keys(options).merge(:api_key_name => api_key_name)
|
|
48
48
|
JWT.encode(payload, api_key, ALGORITHM)
|
|
49
49
|
end
|
|
50
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swiftype-app-search
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Quin Hoxie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
version: '0'
|
|
115
115
|
requirements: []
|
|
116
116
|
rubyforge_project:
|
|
117
|
-
rubygems_version: 2.
|
|
117
|
+
rubygems_version: 2.5.2
|
|
118
118
|
signing_key:
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: Official gem for accessing the Swiftype App Search API
|