firstmiler_sms_oauth 0.0.2 → 0.0.3

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.
@@ -13,12 +13,13 @@ module FirstmilerSmsOauth
13
13
 
14
14
  module InstanceMethods
15
15
  def send_otp
16
- content = sms_content
17
- # begin
18
- FirstmilerSmsOauth::FmSms.send_otp(self.phone_no, content)
19
- # rescue Exception => e
20
- # delete_user_sms_oauth_tokens
21
- # end
16
+ p content = sms_content
17
+ begin
18
+ FirstmilerSmsOauth::FmSms.send_otp(self.phone_no, content)
19
+ rescue Exception => e
20
+ delete_user_sms_oauth_tokens
21
+ p e.to_s
22
+ end
22
23
  end
23
24
 
24
25
  def delete_user_sms_oauth_tokens
@@ -1,3 +1,3 @@
1
1
  module FirstmilerSmsOauth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firstmiler_sms_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: