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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c972801b8a2eb2bc5392ec4ffcb8baee2300ea9
4
- data.tar.gz: d72338caf6d4921ba5bf1e878a9622bcabcd879c
3
+ metadata.gz: e6a0446be835e0a75f4178bfe80b2a07d753830c
4
+ data.tar.gz: bece76cd41d93a13e7d4cbdcebc94eda1bc92959
5
5
  SHA512:
6
- metadata.gz: 95075f1a43d279032fe9a474785bec71c0f9893dc80248fcfe91bead562afccac0d79290d49a476b58c16d2e2ca179d0cc46f38148a7b0446e9ad8be1ffee6c8
7
- data.tar.gz: 0f8ee01000e353314edc77dbc468fb631285d6d52c03929e252925fa52ecc8d26161842cc252841a269431c07a0c9b20614b74972dd3a0a11c65c8a894469bbb
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] api_key_id the unique API Key identifier
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, api_key_id, options = {})
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(:api_key_id => api_key_id)
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
@@ -1,3 +1,3 @@
1
1
  module SwiftypeAppSearch
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  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.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-04-24 00:00:00.000000000 Z
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.4.5
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