omniauth-seznam-cz 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9271faeba9c9cea0f61c4e121255521bde0b3852c8170e807071793d550710ed
4
- data.tar.gz: 89eb3f23cc24cef52e775f029e0532354c77be40fc3da4da7deb5ad66af03997
3
+ metadata.gz: 38e29bebbade9c2f6ea14ca4c989b7caf0fa8a20f68c1a91b7f6ab8d983bbf2f
4
+ data.tar.gz: 0dabcd9795a62a63d7973d4474c4b633795e1dd571ef7cdf379d515cd402ff4d
5
5
  SHA512:
6
- metadata.gz: '03235926e68fbb8016ba3f0511b77458befedd8a6f61c32c51f9e8784707ac9b60db4a6685982faf8ca5548e5deb24d223bff4a0cca38baa7b2aec7bd795ce84'
7
- data.tar.gz: 960ca9ced83c30fc181f8846054f0c7e428059eae600641abe743759f7e41a6af9c10dde81e3c0573a4d2367e869b04213a23494b664e7ff54d1e443deab2f57
6
+ metadata.gz: 7acca8b030523991be51371b30675ef4ae03a1bb148052624e082a0af89e097c53ba5d32f91d52b9dc707c462e0689b4958ac2b4bf31a4b93fa113942a645ca5
7
+ data.tar.gz: de9fd34836d6effc54bd82693e97568a58956c557951571f796c322cd0cd106ba5b3739711a7857536824e53623919613db6da6dc5927fd278e9710ddd1ad467
data/.gitignore CHANGED
@@ -10,3 +10,4 @@ test/tmp
10
10
  test/version_tmp
11
11
  tmp
12
12
  .idea/
13
+ Gemfile.lock
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ rm *.gem
4
+ gem build omniauth-seznam-cz.gemspec
5
+ gem push omniauth-seznam-cz-*.gem
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module SeznamCz
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
@@ -20,9 +20,9 @@ module OmniAuth
20
20
  option :authorized_client_ids, []
21
21
 
22
22
  option :client_options,
23
- site: 'https://login.szn.cz/api/v1/oauth',
24
- authorize_url: 'https://login.szn.cz/api/v1/oauth/auth',
25
- token_url: 'https://login.szn.cz/api/v1/oauth/token'
23
+ site: 'https://login.szn.cz/api/v1',
24
+ authorize_url: '/oauth/auth',
25
+ auth_scheme: :request_body
26
26
 
27
27
  def authorize_params
28
28
  super.tap do |params|
@@ -31,15 +31,15 @@ describe OmniAuth::Strategies::SeznamCz do
31
31
 
32
32
  describe '#client_options' do
33
33
  it 'has correct site' do
34
- expect(subject.client.site).to eq('https://login.szn.cz/api/v1/oauth')
34
+ expect(subject.client.site).to eq('https://login.szn.cz/api/v1')
35
35
  end
36
36
 
37
37
  it 'has correct authorize_url' do
38
- expect(subject.client.options[:authorize_url]).to eq('https://login.szn.cz/api/v1/oauth/auth')
38
+ expect(subject.client.options[:authorize_url]).to eq('/oauth/auth')
39
39
  end
40
40
 
41
41
  it 'has correct token_url' do
42
- expect(subject.client.options[:token_url]).to eq('https://login.szn.cz/api/v1/oauth/token')
42
+ expect(subject.client.options[:token_url]).to eq('/oauth/token')
43
43
  end
44
44
 
45
45
  describe 'overrides' do
@@ -188,5 +188,4 @@ describe OmniAuth::Strategies::SeznamCz do
188
188
  expect(subject.token_params['bad']).to eq(nil)
189
189
  end
190
190
  end
191
-
192
191
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-seznam-cz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sterba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-02 00:00:00.000000000 Z
11
+ date: 2022-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -107,9 +107,9 @@ files:
107
107
  - ".travis.yml"
108
108
  - CHANGELOG.md
109
109
  - Gemfile
110
- - Gemfile.lock
111
110
  - README.md
112
111
  - Rakefile
112
+ - bin/publish-gem.sh
113
113
  - lib/omniauth-seznam-cz.rb
114
114
  - lib/omniauth/seznam_cz.rb
115
115
  - lib/omniauth/seznam_cz/version.rb
data/Gemfile.lock DELETED
@@ -1,99 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- omniauth-seznam-cz (0.0.1)
5
- oauth2 (~> 1.1)
6
- omniauth (~> 2.0)
7
- omniauth-oauth2 (~> 1.7.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ast (2.4.2)
13
- diff-lcs (1.5.0)
14
- faraday (1.8.0)
15
- faraday-em_http (~> 1.0)
16
- faraday-em_synchrony (~> 1.0)
17
- faraday-excon (~> 1.1)
18
- faraday-httpclient (~> 1.0.1)
19
- faraday-net_http (~> 1.0)
20
- faraday-net_http_persistent (~> 1.1)
21
- faraday-patron (~> 1.0)
22
- faraday-rack (~> 1.0)
23
- multipart-post (>= 1.2, < 3)
24
- ruby2_keywords (>= 0.0.4)
25
- faraday-em_http (1.0.0)
26
- faraday-em_synchrony (1.0.0)
27
- faraday-excon (1.1.0)
28
- faraday-httpclient (1.0.1)
29
- faraday-net_http (1.0.1)
30
- faraday-net_http_persistent (1.2.0)
31
- faraday-patron (1.0.0)
32
- faraday-rack (1.0.0)
33
- hashie (5.0.0)
34
- jwt (2.3.0)
35
- multi_json (1.15.0)
36
- multi_xml (0.6.0)
37
- multipart-post (2.1.1)
38
- oauth2 (1.4.7)
39
- faraday (>= 0.8, < 2.0)
40
- jwt (>= 1.0, < 3.0)
41
- multi_json (~> 1.3)
42
- multi_xml (~> 0.5)
43
- rack (>= 1.2, < 3)
44
- omniauth (2.0.4)
45
- hashie (>= 3.4.6)
46
- rack (>= 1.6.2, < 3)
47
- rack-protection
48
- omniauth-oauth2 (1.7.2)
49
- oauth2 (~> 1.4)
50
- omniauth (>= 1.9, < 3)
51
- parallel (1.21.0)
52
- parser (3.0.3.2)
53
- ast (~> 2.4.1)
54
- rack (2.2.3)
55
- rack-protection (2.1.0)
56
- rack
57
- rainbow (3.0.0)
58
- rake (12.3.3)
59
- regexp_parser (2.2.0)
60
- rexml (3.2.5)
61
- rspec (3.10.0)
62
- rspec-core (~> 3.10.0)
63
- rspec-expectations (~> 3.10.0)
64
- rspec-mocks (~> 3.10.0)
65
- rspec-core (3.10.1)
66
- rspec-support (~> 3.10.0)
67
- rspec-expectations (3.10.1)
68
- diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.10.0)
70
- rspec-mocks (3.10.2)
71
- diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.10.0)
73
- rspec-support (3.10.3)
74
- rubocop (0.93.1)
75
- parallel (~> 1.10)
76
- parser (>= 2.7.1.5)
77
- rainbow (>= 2.2.2, < 4.0)
78
- regexp_parser (>= 1.8)
79
- rexml
80
- rubocop-ast (>= 0.6.0)
81
- ruby-progressbar (~> 1.7)
82
- unicode-display_width (>= 1.4.0, < 2.0)
83
- rubocop-ast (1.15.1)
84
- parser (>= 3.0.1.1)
85
- ruby-progressbar (1.11.0)
86
- ruby2_keywords (0.0.5)
87
- unicode-display_width (1.8.0)
88
-
89
- PLATFORMS
90
- arm64-darwin-20
91
-
92
- DEPENDENCIES
93
- omniauth-seznam-cz!
94
- rake (~> 12.0)
95
- rspec (~> 3.6)
96
- rubocop (~> 0.49)
97
-
98
- BUNDLED WITH
99
- 2.2.16