credly 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 +4 -4
- data/lib/credly/client.rb +4 -1
- data/lib/credly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffafa2d15a45737517d1fb85dfb35ff55079b0de
|
4
|
+
data.tar.gz: f8f39f6410d688fe46baa4db2ebfb3867f853958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865d80c7bebbf181367ca52f5d7c8e108c4539f28a5a469e8bc7efb44eeae8adc57e6aa2c503842d891fdf97a801a06877cae884961b6a73111dc8e90976c619
|
7
|
+
data.tar.gz: ca43df12c53004b6b810febc2fdb604338a620d9de5d9ea9e0bc1cf57850fb32bcfa4457bcc8bf2b4b107e3c5a568a0422bc786f5ddc654a2046f8fbc67b65b2
|
data/lib/credly/client.rb
CHANGED
@@ -24,7 +24,7 @@ module Credly
|
|
24
24
|
if resp['meta']['status_code'] == 200
|
25
25
|
resp['data']['token']
|
26
26
|
else
|
27
|
-
raise "The username or password was invalid\n#{resp}"
|
27
|
+
raise AuthFailed.new("The username or password was invalid\n#{resp}")
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -71,4 +71,7 @@ module Credly
|
|
71
71
|
end
|
72
72
|
|
73
73
|
end
|
74
|
+
|
75
|
+
class AuthFailed < StandardError
|
76
|
+
end
|
74
77
|
end
|
data/lib/credly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Rodríguez-Baltanás Díaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|