turatel_sms 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71ee09796d4cae51610b5a1ac472193ac8fddcff
4
- data.tar.gz: 5b217e2588431e338f0d9cbe3ef4e0c3d9bb0bfe
3
+ metadata.gz: 574ef7b37d149d032f52d91183973e7dd92afc60
4
+ data.tar.gz: 4e1c320d9b3df11b15da727919791e5095773731
5
5
  SHA512:
6
- metadata.gz: fbfc6ca14eee0d54dfeba80f1ef2033f19bdfc737f627faf9d5b23b97d1b5bd790ed8b45d6a4e08e4a285dcbb9042214393c814f6af33d84eb59b21166522197
7
- data.tar.gz: 8ee0288d208739db5978898ce56f325274dc2efbb9004ad3ea072f284b327d5e786eea0dbe15389343bdc6cb8fc3b09dad16ec601138bdacbb174c4f3eb89012
6
+ metadata.gz: edc43615556cd6ef94dfc17f8ad5c519af3b5898b7b87c18f92125c317bdaa6e3c72b7edef8c031a0ff2e367084b60b11f7effcac20dfb6b40952e997aa06b7a
7
+ data.tar.gz: 49627af479b59a48d74431a06ae71f200575fb765b28bf14cada0edb08ac7c785bcffa7a691f624129f16571b3273595e49e7ee0718dab73f50c47466ebe3580
@@ -4,7 +4,8 @@ module TuraTEL
4
4
  def self.send_sms(recipient, message_text, opts={})
5
5
  valid_options = opts.only(:from, :start_date, :stop_date, :turkish)
6
6
  valid_options.merge!(:start_date => TuraTEL::DATE.now) unless valid_options[:start_date]
7
- valid_options.merge!(:stop_date => TuraTEL::DATE.n_hour_from_now(1)) unless valid_options[:stop_date]
7
+ valid_options.merge!(:stop_date => TuraTEL::DATE.n_hour_from_now(21)) unless valid_options[:stop_date]
8
+ valid_options.merge!(:concat => 1) unless valid_options[:concat]
8
9
 
9
10
  if (message_text.chars.to_a.uniq & ['İ','Ğ','Ş','ı','ğ','ş']).empty?
10
11
  type = "1"
@@ -11,7 +11,10 @@ module TuraTEL
11
11
  <Mesgbody><![CDATA[#{message_text}]]></Mesgbody>
12
12
  <Numbers>#{recipient}</Numbers>
13
13
  <Type>#{valid_options[:type]}</Type>
14
+ <Concat>#{valid_options[:concat]}</Concat>
14
15
  <Originator>#{valid_options[:from]}</Originator>
16
+ <SDate>#{valid_options[:start_date]}</SDate>
17
+ <EDate>#{valid_options[:stop_date]}</EDate>
15
18
  </MainmsgBody>"
16
19
  end
17
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turatel_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - IPOS - Huseyin Gomleksizoglu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem is for sending SMS using TuraTEL services
14
14
  email: huseyin.gomleksizoglu@ipos.com.tr