gauthify 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gauthify.rb +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae79c8f5170cbca7d5e8c62276f73e900dc2f24f
4
- data.tar.gz: 00b262b7a861a172af456677e649837a08cced5d
3
+ metadata.gz: ec7c02906f52b2669c16522753e56f05c56660a3
4
+ data.tar.gz: 1c9491fed1ad9a5b23ad61cc6876e31ea39ae28c
5
5
  SHA512:
6
- metadata.gz: a003964107bc6c555a388a050da9cebae75b41bf7c57937fe751c82524b69ab1ebc4c343b41ca464c782f3d03afa839d662a8fce988e5b5da45b94b55146edcf
7
- data.tar.gz: aff87a8239fb037aa932393db3f7d62944738af77fc465567cf9074a186ab5ff327efaa87350bc83321cfb7e1d9f1614a0c0d3e7b44dae405a70469ba8a4aa7b
6
+ metadata.gz: 2575cc08d186c401fac149642d4efdfc3655ee57fe34d9edced1b4682a3d46a5f6c9c3ec3eec053eb01f607de781e13121d98490d83a579b82c5ead81a141025
7
+ data.tar.gz: 0b885b48658d02d266bbb671b07d9eb0dfa279d8b0c1d9bd8aff6a9a60cc7062195e428ff36b64c597a10531a20e2dc3aadacbfca3dfdb2642faf88810df0f74
data/lib/gauthify.rb CHANGED
@@ -60,7 +60,7 @@ class GAuthify
60
60
  'https://api.gauthify.com/v1/',
61
61
  'https://backup.gauthify.com/v1/'
62
62
  ]
63
- @headers = {:authorization => api_key, :user_agent => 'GAuthify/v1.25 Ruby/1.25'}
63
+ @headers = {:authorization => api_key, :user_agent => 'GAuthify-Ruby/v1.27'}
64
64
 
65
65
  end
66
66
 
@@ -110,7 +110,7 @@ class GAuthify
110
110
 
111
111
  def create_user(unique_id, display_name, email=nil, phone_number=nil)
112
112
  <<-DOC
113
- Creates new user with a new secret key or resets if already exists
113
+ Creates new user (replaces with new if already exists)
114
114
  DOC
115
115
 
116
116
  params = {'display_name' => display_name}
@@ -121,7 +121,6 @@ class GAuthify
121
121
  params['phone_number'] = phone_number
122
122
  end
123
123
  url_addon = "users/#{unique_id}/"
124
- puts "HELLO", params
125
124
  return requests_handler('post', url_addon, params=params)
126
125
  end
127
126
 
@@ -269,7 +268,7 @@ class GAuthify
269
268
  if not user.class == Hash
270
269
  raise Exception
271
270
  end
272
- puts(result)
271
+ puts(user)
273
272
  success()
274
273
 
275
274
  puts("3) Retrieving All Users...")
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.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - GAuthify