magti 0.1.0.beta1 → 0.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magti/sms.rb +1 -1
- data/lib/magti/version.rb +1 -1
- metadata +1 -1
data/lib/magti/sms.rb
CHANGED
@@ -20,7 +20,7 @@ module Magti
|
|
20
20
|
raise ArgumentError, 'illegal mobile number' unless C12.correct_mobile?(mobile)
|
21
21
|
raise ArgumentError, 'max size exceeded' if text.length > Magti::MAX_SIZE
|
22
22
|
options = Magti.config.security_options
|
23
|
-
if options.nil? or options.empty? or !Set.new(options.keys).proper_subset?(Set[:username, :password, :
|
23
|
+
if options.nil? or options.empty? or !Set.new(options.keys).proper_subset?(Set[:username, :password, :client_id, :service_id])
|
24
24
|
raise ArgumentError, 'specify Magti.config(options) with :username, :password, :client and :service keys'
|
25
25
|
end
|
26
26
|
options = options.merge(:to => "995#{mobile}", :text => text)
|
data/lib/magti/version.rb
CHANGED