sms_center 0.0.11 → 0.0.12

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sms_center.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb43bb2ad685588a16addd09b0a34bfd6b4245bfc64ae2ad3d328132e95b0415
4
- data.tar.gz: 376fd549f16e8a71de281868efe54d136c1d2c4c2f00784673c8390a4defb00b
3
+ metadata.gz: 137ea50ee8f782ef060f591d5a8c7b93919d505d3da419d9ec141e3a99559534
4
+ data.tar.gz: 31d5b92c42de13d61f9d62a769c89b9457414a5f0195eaa1659595a2dda5e51b
5
5
  SHA512:
6
- metadata.gz: d2891fab8d4039f998d27bcc2894c3b0fb4742cbd79ab994d3246078cdad19318c0b7d33acda0aa2e5625f44d20fe3cd6520058592d49f86357415acc5cd36f5
7
- data.tar.gz: a5954cae36a37a388695c88baad154bf90eb992288f46c043c80b1a7ddc6df46b5726d0349cc749ca72d03ba27537e2bff28361fad6bf482086626870ba8a093
6
+ metadata.gz: 247508e34d6b6d44ff0c259f547488664d19b059b6b0ac666d01961e4adaeaa639e7a94cf0081e4c7194455826987df8bf01e11a4d88a6fc0398a965472b0446
7
+ data.tar.gz: 1330fa2321ffa78164d97ef4dd2a810ab4c46895312f7ebbcff79ad34a8aef7080103f5b9493817993a22b3a3749720244625557d8df444477cb48a292e8ab97
data/lib/sms_center.rb CHANGED
@@ -58,7 +58,7 @@ class SmsCenter
58
58
  private
59
59
  def platform_by_country(country, to_number)
60
60
  platform_by_country = SmsCenter.platform_by_country
61
- platform = platform_by_country[country.downcase.to_sym]
61
+ platform = platform_by_country[country.downcase.to_sym] if country.present?
62
62
  if platform.is_a?(Hash)
63
63
  phone = Phonelib.parse(to_number, country.downcase.to_sym)
64
64
  platform_by_carrier = platform[phone.carrier.to_sym]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deleveree