usman 0.3.27 → 0.3.28

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: f92a7c718aee50ad9013355ee1a2cc4893dd7f71
4
- data.tar.gz: 73cbf7609e77b3069772e09614c00cb36abaee49
3
+ metadata.gz: beda5a8898223f4c9111aab181ca6101fdd95d48
4
+ data.tar.gz: a4b060c7a6dccbbd5c36e4f1ec399f09e4965751
5
5
  SHA512:
6
- metadata.gz: da3684674e7e8442ca3d7b4116c17c0f57d2a681d5e31b57c87964b035f2a30ac53fd5bdc6133fcfb2fe03097d6aac55362b2d5dc27c32c4abc869b994080bde
7
- data.tar.gz: ae26db23e9f3eff5b5b3169a9e9a3533e586f366574648cc86cb93daf2fe2c340f7bc9c5a8e8648a21173959f1e34796f2b5458e19ebe19f807137952929e2d8
6
+ metadata.gz: 9573d3001f302905d4af8f87c363a197fd40a7e52b13d3b0d93e2e1029645a436a113ff1929f7550bbca19f438163f628b1ea4940c48c1c66ddeeee8a08aa768
7
+ data.tar.gz: 3841203c69049d93f63e92d1881bbddddb9a69657959d578aaff90c45d686b070ac4bf47e44321a5f0c640559e49b1641dd670654ac6f425f473eb4817b02d07
@@ -375,7 +375,7 @@ module Usman
375
375
  end
376
376
 
377
377
  def send_otp_to_change_number
378
- set_title("Resend OTP API")
378
+ set_title("Send OTP to Change Number - API")
379
379
  @request_type = "POST"
380
380
  @end_point = "/api/v1/send_otp_to_change_number"
381
381
  @description = <<-eos
@@ -13,8 +13,8 @@ class Usman::Contact < Usman::ApplicationRecord
13
13
  validates :name, presence: true, length: {maximum: 512}
14
14
  validates :account_type, length: {maximum: 256}
15
15
 
16
- validates :email, length: {maximum: 256}
17
- validate_email :email
16
+ validates :email, length: {maximum: 256}, allow_nil: true,
17
+ format: /\A(|(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6})\z/i
18
18
  validates :address, length: {maximum: 512}
19
19
 
20
20
  validates :contact_number_1, presence: true, length: {maximum: 24}
@@ -64,7 +64,7 @@ module Usman
64
64
  def register_new_device
65
65
 
66
66
  if @device && @device.blocked?
67
- set_error("api.register.device_blocked")
67
+ set_error("api.general.device_blocked")
68
68
  return
69
69
  end
70
70
 
data/lib/usman/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Usman
2
- VERSION = '0.3.27'
2
+ VERSION = '0.3.28'
3
3
  end
@@ -9,9 +9,6 @@ FactoryGirl.define do
9
9
  name "Some Name"
10
10
  account_type "com.google"
11
11
 
12
- email "something@domain.com"
13
- address "Some Address"
14
-
15
12
  contact_number_1 "9912345678"
16
13
  end
17
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.27
4
+ version: 0.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails