sticapi_client 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 559cdd316e08891d00fef7d3930800d133d43618
4
- data.tar.gz: c33024f1165418ab7008b5c26c66dfe31e98289b
3
+ metadata.gz: 778b311028ed1cf8116040d5d2793c48461e52bf
4
+ data.tar.gz: 84dfd56259dbccc7bed915e8f940018fbb902ce2
5
5
  SHA512:
6
- metadata.gz: 9f934bbeb4bc1694c9dcae039d649bf66360c3d3d9da7aec6b1bc3313d039d523625df0332bdeca46b89afbe0dca30f0d8dd0dcf329bbf52100548059d4c529d
7
- data.tar.gz: e27e325a674a6d930a98e0b93ab18dd65b5d0ec11af9520fd6ff5f0a02f86e443831bb4167a954c1ce75b7f7fb3a02ab48c081d2d5a4f5bdfad4d1bab3bf9363
6
+ metadata.gz: e54c2ceab5a4108884844d64b61cfe5b3fdd74b2ff5741821fad1ceab858f0d7d009fd753ac56fa5f2d444a16cd6a918f02afff354c36008d6f4dca60d2d6a47
7
+ data.tar.gz: 48af02654f2ecb62e1115864f3e876fc185fa0039e24f3c8878931f6d0d70d4594ecb35df1bc70622c48ba02d387852165f1fbc6dac4c18f7e13f5cc6fe715e5
@@ -31,7 +31,7 @@ module Devise
31
31
  case response
32
32
  when Net::HTTPSuccess
33
33
  data = JSON.parse response.body
34
- unless user = User.find_by(cpf: data['user']['cpf'])
34
+ unless user = User.find_by(username: data['user']['username'])
35
35
  user = User.new
36
36
  user.name = data['user']['name'] if user.respond_to? :name
37
37
  user.username = data['user']['username'] if user.respond_to? :username
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -26,7 +26,7 @@ module SticapiClient
26
26
  @host = configs['host']
27
27
  @port = configs['port'] || 80
28
28
  @user = configs['user']
29
- @urn = configs['urn'] || '/sticapi'
29
+ @urn = configs['urn']
30
30
  @password = configs['password']
31
31
  @access_token = ''
32
32
  @client = ''
@@ -35,7 +35,7 @@ module SticapiClient
35
35
  end
36
36
 
37
37
  def uri
38
- "http://#{@host}:#{@port}#{@urn}"
38
+ "http://#{@host}:#{@port}/#{@urn}"
39
39
  end
40
40
 
41
41
  def get_token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana