authful 0.5.22 → 0.5.23
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 +8 -8
- data/lib/authful/api.rb +1 -0
- data/spec/lib/authful/api_spec.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTFhZTEyZmJlOGU1NWZkYzg2ZTFmMWRkMDA0OGVjNDY3MzA3NjI5OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzJjYTg3OTljZmFkZmFiODY5ZWQ3MGZmMWZhM2JkYzMxY2E3MzcwYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDRlNDQwNTIwNjFiMWIzMGFkMGNmNTRmYjFiNGMwODJiNjM5MmYwOWY5Nzg0
|
10
|
+
MDcwZjIzMjQ3MzY4MTcwMGJjODJmM2Y1ZGZlZWE0YTNmMTk2ODNjNGUyY2Rl
|
11
|
+
Y2YyZmFiMjM1OWFkNDQwZTcwOWZjMzEwMzk1Zjk3YjNlYWQyZDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjYwMTQ1OTlmNzE0YjNjYTZiMWIzNjNhNGE1NGYzNTUyMDlkYWNmNTRkOTdj
|
14
|
+
MTVlMzQ1NWQ0ZjE5OGNlZGE3Mjk5ODdiYTdiMGIyYmI1NmRlM2QxNWMxZjZj
|
15
|
+
MWExNzY0YWIzZWE2NzBhYTg4MjMyZjNkYjc1YmJhZWU3Y2QyMTY=
|
data/lib/authful/api.rb
CHANGED
@@ -62,13 +62,13 @@ describe Authful do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
it "sends sms to user" do
|
65
|
-
FakeWeb.register_uri :get, "https://my-endpoint.dev/authful/api/users/user-authful-token/send_sms", {body: {ok: 1}.to_json}
|
65
|
+
FakeWeb.register_uri :get, "https://my-endpoint.dev/authful/api/users/user-authful-token/send_sms", {body: {ok: 1}.to_json}
|
66
66
|
|
67
67
|
Authful.send_sms("user-authful-token").should eq(true)
|
68
68
|
end
|
69
69
|
|
70
70
|
it "sends fallback sms to user" do
|
71
|
-
FakeWeb.register_uri :get, "https://my-endpoint.dev/authful/api/users/user-authful-token/fallback", {body: {ok: 1}.to_json}
|
71
|
+
FakeWeb.register_uri :get, "https://my-endpoint.dev/authful/api/users/user-authful-token/fallback", {body: {ok: 1}.to_json}
|
72
72
|
|
73
73
|
Authful.send_fallback_sms("user-authful-token").should eq(true)
|
74
74
|
end
|
@@ -115,6 +115,7 @@ describe Authful do
|
|
115
115
|
FakeWeb.register_uri :get, "https://my-endpoint.dev/authful/api/users/user-authful-token/recovery_codes/000001111100000", {body: {error: "invalid recovery code"}.to_json, status: ["403", "invalid recovery code"]}
|
116
116
|
|
117
117
|
Authful.validate_recovery_code("user-authful-token", "000001111100000").should eq(false)
|
118
|
+
Authful.validate_recovery_code("user-authful-token", "").should eq(false)
|
118
119
|
end
|
119
120
|
|
120
121
|
it "deletes users" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Wyrosdick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.2.
|
156
|
+
rubygems_version: 2.2.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Authful is an open source tool that enables rapid implementation of 2fa for
|