elastic-site-search 2.1.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/sso_spec.rb CHANGED
@@ -11,14 +11,14 @@ describe Elastic::SiteSearch::SSO do
11
11
  end
12
12
 
13
13
  context '.token' do
14
- it 'generates an SSO token' do
15
- expect(Elastic::SiteSearch::SSO.token(user_id, timestamp)).to eq('81033d182ad51f231cc9cda9fb24f2298a411437')
14
+ it 'generates a proper SHA256 SSO token' do
15
+ expect(Elastic::SiteSearch::SSO.token(user_id, timestamp)).to eq('3da93f6d82efc8530614966ab847fd6d0b6d158ef02e4e65a8f731e299c28d86')
16
16
  end
17
17
  end
18
18
 
19
19
  context '.url' do
20
20
  it 'generates an SSO URL' do
21
- expect(Elastic::SiteSearch::SSO.url(user_id)).to eq('https://swiftype.com/sso?user_id=5064a7de2ed960e715000276&client_id=3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9&timestamp=1379382520&token=81033d182ad51f231cc9cda9fb24f2298a411437')
21
+ expect(Elastic::SiteSearch::SSO.url(user_id)).to eq('https://swiftype.com/sso?user_id=5064a7de2ed960e715000276&client_id=3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9&timestamp=1379382520&token=3da93f6d82efc8530614966ab847fd6d0b6d158ef02e4e65a8f731e299c28d86')
22
22
  end
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-site-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quin Hoxie
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-09 00:00:00.000000000 Z
12
+ date: 2023-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -83,7 +83,6 @@ files:
83
83
  - README.md
84
84
  - Rakefile
85
85
  - elastic-site-search.gemspec
86
- - lib/data/ca-bundle.crt
87
86
  - lib/elastic-site-search.rb
88
87
  - lib/elastic/site-search.rb
89
88
  - lib/elastic/site-search/client.rb
@@ -193,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
192
  - !ruby/object:Gem::Version
194
193
  version: '0'
195
194
  requirements: []
196
- rubyforge_project:
197
- rubygems_version: 2.7.6
195
+ rubygems_version: 3.1.6
198
196
  signing_key:
199
197
  specification_version: 4
200
198
  summary: Official gem for accessing the Elastic Site Search API