sticapi_client 0.3.6 → 0.3.7

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
  SHA256:
3
- metadata.gz: 63de177b486ff717dcc3ae8971c398c169246a0d0c03b6f2b0e696b863390010
4
- data.tar.gz: 2bca5ae50c3d18a4973781b0e36bd9b1261601739373def22dc0473283e67ac3
3
+ metadata.gz: 03fb30349df06208ce6cbc5fb77b5b9214aed46e09ef17fc54d8d68a724f726e
4
+ data.tar.gz: b923b2965afe1765750ec351ed052d78cb662915d12da4290ac6d7c7e2a233db
5
5
  SHA512:
6
- metadata.gz: fa77249d0d41b87a65ad2497d63034b1748af3bdc56f78a861704d4d41a5e15c022b8ea020aef18dd632b74fc6996963331b08349b4581cdda42893ac119f389
7
- data.tar.gz: 6f93004a043dbfef9cd6c5cdd0eb4e5282ba6d4dc54a1aeb804ca94fbd4110270da7af0b5a6b04775154190fc6a750921f079a93f8e1a7c6800430ac4affe0ba
6
+ metadata.gz: a9bebb2bf6de2a3e6d5916aff896453568338806795f9f3c9b5e8c83ba79ec5e09b3bcf9a61498b28e136bd6d7a615f73612c83885088eb238775a266889d67a
7
+ data.tar.gz: 011dd93721cc153c357a90abcdee08ecfcfe8ad40635c572646060b1354e625bfada7ec046cf449416413e025993c14295517b36c07972a39f7b86eaa27bb6aa
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
- module SticapiClient
2
- class Sip
3
- def self.unidades
4
- Sticapi::SticapiClient.instance.sticapi_request('/sip/unidades')
5
- end
6
- end
7
- end
1
+ module SticapiClient
2
+ class Sip
3
+ def self.unidades
4
+ Sticapi::SticapiClient.instance.sticapi_request('/sip/unidades')
5
+ end
6
+ end
7
+ end
File without changes
@@ -11,10 +11,10 @@ module Devise
11
11
 
12
12
  def authenticate!
13
13
  if params[:user]
14
- if params[:user].has_key?(:username) || params[:user].has_key?(:email)
14
+ if params[:user].has_key?(:username) || params[:user].has_key?(:login)
15
15
  field = params[:user][:username]
16
- field ||= params[:user][:email]
17
- if field.include? '@'
16
+ field ||= params[:user][:login]
17
+ if field.include?('@') || /^[0-9]*$/.match(field)
18
18
  resource = password.present? && mapping.to.find_for_database_authentication(authentication_hash)
19
19
  hashed = false
20
20
 
@@ -63,9 +63,7 @@ module Devise
63
63
  user.unities = data['user']['unities'] if user.respond_to? :unities
64
64
  user.skip_confirmation! if user.respond_to? 'skip_confirmation!'
65
65
  user.save
66
- # puts user.errors.full_messages
67
66
  success!(user)
68
- # puts user.errors.full_messages
69
67
  return
70
68
  else
71
69
  return fail(:invalid)
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2019-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails