gauthify 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. data/lib/gauthify.rb +2 -11
  2. metadata +3 -3
data/lib/gauthify.rb CHANGED
@@ -38,15 +38,6 @@ class NotFoundError < GAuthifyError
38
38
  end
39
39
 
40
40
 
41
- class ConnectionError < GAuthifyError
42
- <<-DOC
43
- Raised when couldn't connect to GAuthify.com. Check firewalls and other
44
- things that could effect your network connection. Its a good idea to
45
- accept 2nd factor authentication during times when this happens.
46
- DOC
47
- end
48
-
49
-
50
41
  class ServerError < GAuthifyError
51
42
  <<-DOC
52
43
  Raised for any other error that the server can give, mainly a 500
@@ -69,7 +60,7 @@ class GAuthify
69
60
  'https://api.gauthify.com/v1/',
70
61
  'https://backup.gauthify.com/v1/'
71
62
  ]
72
- @headers = {:authorization => api_key, :user_agent => 'GAuthify/v1.00 Ruby/1.00'}
63
+ @headers = {:authorization => api_key, :user_agent => 'GAuthify/v1.00 Ruby/1.01'}
73
64
 
74
65
  end
75
66
 
@@ -234,7 +225,7 @@ class GAuthify
234
225
  end
235
226
  puts("Success ")
236
227
  puts("6) Detection of provided auth...")
237
- result = get_user(account_name, 'test12')
228
+ result = get_user(account_name, 'test12')['provided_auth']
238
229
  if not result
239
230
  raise Exception
240
231
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gauthify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &70292122966280 !ruby/object:Gem::Requirement
16
+ requirement: &70307964850660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.6.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70292122966280
24
+ version_requirements: *70307964850660
25
25
  description: API library for GAuthify.com (Google Authenticator, SMS, email multi
26
26
  factor authentication).
27
27
  email: support@gauthify.com