setsuzoku 0.11.8 → 0.11.9
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd0ca4436f63ee80c7411553690acc0600a3556842acda30c580767de4d5fefe
|
|
4
|
+
data.tar.gz: 9cdf81df738bc16aef812b6cc5f68cb7e26b5a3a1666dcbf214a79ac16e22f28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 888f8ee20d1bc364d6a0b9ddd54ab2cdeb8c9e54078ea5bc36ef5193fac5d75ee7310492c55493fa4e6dae2975103b31e087ca6f23557bca2d52f22622d5a700
|
|
7
|
+
data.tar.gz: a07a89413cae6b20f159eec21cd37f90e73e80d8ee8b1d0522f5186b71aa587483145c29deaff231337a805fb5291ba3c45e17a364cab37e0123890982ffd218
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
setsuzoku (0.11.
|
|
4
|
+
setsuzoku (0.11.9)
|
|
5
5
|
activesupport (~> 5.0)
|
|
6
6
|
faraday (~> 0.11)
|
|
7
7
|
httparty (~> 0.16.4)
|
|
@@ -18,7 +18,7 @@ GEM
|
|
|
18
18
|
tzinfo (~> 1.1)
|
|
19
19
|
addressable (2.7.0)
|
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
|
21
|
-
concurrent-ruby (1.1.
|
|
21
|
+
concurrent-ruby (1.1.6)
|
|
22
22
|
crack (0.4.3)
|
|
23
23
|
safe_yaml (~> 1.0.0)
|
|
24
24
|
diff-lcs (1.4.2)
|
|
@@ -28,7 +28,7 @@ GEM
|
|
|
28
28
|
httparty (0.16.4)
|
|
29
29
|
mime-types (~> 3.0)
|
|
30
30
|
multi_xml (>= 0.5.2)
|
|
31
|
-
i18n (1.8.
|
|
31
|
+
i18n (1.8.3)
|
|
32
32
|
concurrent-ruby (~> 1.0)
|
|
33
33
|
mime-types (3.3.1)
|
|
34
34
|
mime-types-data (~> 3.2015)
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
minitest (5.14.1)
|
|
38
38
|
multi_xml (0.6.0)
|
|
39
39
|
multipart-post (2.1.1)
|
|
40
|
-
nokogiri (1.10.
|
|
40
|
+
nokogiri (1.10.9)
|
|
41
41
|
mini_portile2 (~> 2.4.0)
|
|
42
42
|
public_suffix (4.0.5)
|
|
43
43
|
rake (10.5.0)
|
data/lib/setsuzoku/credential.rb
CHANGED
|
@@ -20,6 +20,12 @@ module Setsuzoku
|
|
|
20
20
|
sig { abstract.returns(String) }
|
|
21
21
|
def status; end
|
|
22
22
|
|
|
23
|
+
# Setter for the status of the credential.
|
|
24
|
+
#
|
|
25
|
+
# @return [Hash] the status of the credential.
|
|
26
|
+
sig { abstract.params(val: T.nilable(String)).returns(String) }
|
|
27
|
+
def status=(val); end
|
|
28
|
+
|
|
23
29
|
# A settings object for the credential.
|
|
24
30
|
#
|
|
25
31
|
# @return [Hash] the settings for the credential.
|
|
@@ -42,8 +42,8 @@ module Setsuzoku
|
|
|
42
42
|
# @return [Struct] a stubbed basic_auth_credential-like struct.
|
|
43
43
|
sig { returns(Struct) }
|
|
44
44
|
def self.stub_credential
|
|
45
|
-
s = Struct.new(:username, :password)
|
|
46
|
-
s.new('stubbed_username', 'stubbed_password')
|
|
45
|
+
s = Struct.new(:status, :settings, :username, :password)
|
|
46
|
+
s.new('active', {}, 'stubbed_username', 'stubbed_password')
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
end
|
|
@@ -73,8 +73,8 @@ module Setsuzoku
|
|
|
73
73
|
# @return [Struct] a stubbed o_auth_credential-like struct.
|
|
74
74
|
sig { returns(Struct) }
|
|
75
75
|
def self.stub_credential
|
|
76
|
-
s = Struct.new(:client_id, :client_secret, :redirect_url, :token, :refresh_token, :expires_on
|
|
77
|
-
s.new('stubbed_client_id', 'stubbed_client_secret', 'stubbed_redirect_url', 'stubbed_token', 'refresh_token', (Time.now + 30.days)
|
|
76
|
+
s = Struct.new(:status, :settings, :client_id, :client_secret, :redirect_url, :token, :refresh_token, :expires_on)
|
|
77
|
+
s.new('active', {'extension': 'test'}, 'stubbed_client_id', 'stubbed_client_secret', 'stubbed_redirect_url', 'stubbed_token', 'refresh_token', (Time.now + 30.days))
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
end
|
data/lib/setsuzoku/version.rb
CHANGED