locked-rb 0.0.3 → 0.0.4
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 +4 -4
- data/lib/locked/configuration.rb +1 -1
- data/lib/locked/version.rb +1 -1
- data/spec/lib/Locked/client_spec.rb +6 -6
- data/spec/lib/Locked/configuration_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 492e2c8b4c909657d06c578a91f73d4202165f3ca7708dc0cf1d624a1bcdb43f
|
|
4
|
+
data.tar.gz: 6a1f662ff1b157cfa93364a4536c4aa1decb13e30d6fe6b01622c9c76dfa3c60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51b6c09b930b4b91aa1c80718e399e31c415dfc15d2a195cb9dd99c0e007beb42c9ed579736317853217c561af3acb448c63faacba71da8ff6babee9218688a3
|
|
7
|
+
data.tar.gz: 74195636028090ed5d5a309c29e467e45397910afe427f90a3c34fa3586abc6876d726e65cf3af6b596417ec406a75b064f95681ba0b4263692386e452feff28
|
data/lib/locked/configuration.rb
CHANGED
data/lib/locked/version.rb
CHANGED
|
@@ -142,7 +142,7 @@ describe Locked::Client do
|
|
|
142
142
|
before { request_response }
|
|
143
143
|
|
|
144
144
|
it do
|
|
145
|
-
assert_requested :post, 'https://
|
|
145
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/authenticate', times: 1 do |req|
|
|
146
146
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
147
147
|
end
|
|
148
148
|
end
|
|
@@ -155,7 +155,7 @@ describe Locked::Client do
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
it do
|
|
158
|
-
assert_requested :post, 'https://
|
|
158
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/authenticate', times: 1 do |req|
|
|
159
159
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
160
160
|
end
|
|
161
161
|
end
|
|
@@ -168,7 +168,7 @@ describe Locked::Client do
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
it do
|
|
171
|
-
assert_requested :post, 'https://
|
|
171
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/authenticate', times: 1 do |req|
|
|
172
172
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
173
173
|
end
|
|
174
174
|
end
|
|
@@ -181,7 +181,7 @@ describe Locked::Client do
|
|
|
181
181
|
before { request_response }
|
|
182
182
|
|
|
183
183
|
it do
|
|
184
|
-
assert_requested :post, 'https://
|
|
184
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/authenticate', times: 1 do |req|
|
|
185
185
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
186
186
|
end
|
|
187
187
|
end
|
|
@@ -233,7 +233,7 @@ describe Locked::Client do
|
|
|
233
233
|
it '期待したrequest bodyが生成されること' do
|
|
234
234
|
subject
|
|
235
235
|
|
|
236
|
-
assert_requested :post, 'https://
|
|
236
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/deny_verification', times: 1 do |req|
|
|
237
237
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
238
238
|
end
|
|
239
239
|
end
|
|
@@ -266,7 +266,7 @@ describe Locked::Client do
|
|
|
266
266
|
it '期待したrequest bodyが生成されること' do
|
|
267
267
|
subject
|
|
268
268
|
|
|
269
|
-
assert_requested :post, 'https://
|
|
269
|
+
assert_requested :post, 'https://locked.jp/api/v1/client/allow_verification', times: 1 do |req|
|
|
270
270
|
JSON.parse(req.body) == JSON.parse(request_body.to_json)
|
|
271
271
|
end
|
|
272
272
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: locked-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoshiki Takeda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: locked protects your users from account compromise
|
|
14
14
|
email: takeda@locked.jp
|