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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b86e3b114c437d2143b9657648f8951b8caa8f5a
4
- data.tar.gz: 8b9ac6c6f01e334e13df2097f2e09c56e9dbb10c
3
+ metadata.gz: ffafa2d15a45737517d1fb85dfb35ff55079b0de
4
+ data.tar.gz: f8f39f6410d688fe46baa4db2ebfb3867f853958
5
5
  SHA512:
6
- metadata.gz: 411988b2985245817fc0441383c42e9242bb70cafee59d8a57e1e077c45882ecb95014863815a5ee256943964280a0ad84e7eaca83e64d35e25308ec439fe4b4
7
- data.tar.gz: a283bbc7fca7f8c7baef1d05fa1e5e3d9637d15cd632dca01dd0583d734be2aed8446dee3f4d8a98a7fce1d8a103e39f2197833be2d5580a37d5bd52272befaa
6
+ metadata.gz: 865d80c7bebbf181367ca52f5d7c8e108c4539f28a5a469e8bc7efb44eeae8adc57e6aa2c503842d891fdf97a801a06877cae884961b6a73111dc8e90976c619
7
+ data.tar.gz: ca43df12c53004b6b810febc2fdb604338a620d9de5d9ea9e0bc1cf57850fb32bcfa4457bcc8bf2b4b107e3c5a568a0422bc786f5ddc654a2046f8fbc67b65b2
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Credly
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday