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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +8 -1
- data/README.md +232 -138
- data/lib/elastic/site-search/request.rb +0 -1
- data/lib/elastic/site-search/sso.rb +2 -2
- data/lib/elastic/site-search/version.rb +1 -1
- data/spec/sso_spec.rb +3 -3
- metadata +3 -5
- data/lib/data/ca-bundle.crt +0 -3554
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
|
15
|
-
expect(Elastic::SiteSearch::SSO.token(user_id, timestamp)).to eq('
|
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×tamp=1379382520&token=
|
21
|
+
expect(Elastic::SiteSearch::SSO.url(user_id)).to eq('https://swiftype.com/sso?user_id=5064a7de2ed960e715000276&client_id=3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9×tamp=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:
|
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:
|
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
|
-
|
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
|