multi_sms 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module MultiSms
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/multi_sms.rb CHANGED
@@ -69,7 +69,7 @@ module MultiSms
69
69
 
70
70
  def get_provider(country_code)
71
71
  name = config.providers[country_code.to_s]
72
- name = config.default_provider unless name
72
+ name = config.default_provider unless name.instance_of?(String)
73
73
 
74
74
  provider = "Providers::#{name}".split('::').inject(Object) {|o,c| o.const_get c}
75
75
  provider.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -230,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  segments:
232
232
  - 0
233
- hash: 2945269217158432553
233
+ hash: 243028739633658905
234
234
  required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  none: false
236
236
  requirements:
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: 2945269217158432553
242
+ hash: 243028739633658905
243
243
  requirements: []
244
244
  rubyforge_project: multi_sms
245
245
  rubygems_version: 1.8.24