iletimerkezisms 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/iletimerkezisms/sms.rb +4 -2
  3. metadata +27 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baf78905223a49ba069684947da9beef86322d09
4
- data.tar.gz: bcbc504cb51821f3ebd76bd0e38c8908fd791ca8
3
+ metadata.gz: 3e6ca34154ad2c88f2f87b1625ff520ca07452d9
4
+ data.tar.gz: 7f676c72179a23c7571def3d2e363fae50bb6aca
5
5
  SHA512:
6
- metadata.gz: 1048871e45b4377b41f2d15fe1d870b74392c35021d2b92438e90e8c1a93ef0f8eaec17924859a7d6442da85697b57004348875e37defe67d5abc842ae7a96ed
7
- data.tar.gz: af6c012c411b971ae0788740a9dfeadcb573252649118cdda9907e875eef4d945f9eaee267fe8178791343eb7caabe6e326f6d8c76a47d1d6fb5a4cc519f1752
6
+ metadata.gz: 0a9b261ddc626e80d9ca99282f6b0527f0078c1341c3b35c58b6c13728891cd0591764fc3ce221507cda6dec865819b8a850f7d595991677a64674890233ceee
7
+ data.tar.gz: bc25ed597531267b0ff1818b4b365b22e96f3998645905735877e53f610540aa570bbdaf5e024c7ddf20eb16b510ed982af8e902d15ff1f00a118841a1d67f55
@@ -16,6 +16,7 @@ module IletimerkeziSMS
16
16
  # Description: Single Message => Multi Number
17
17
  def send(argv)
18
18
  path = "send-sms"
19
+ argv = {sendDateTime: Time.now.strftime("%d/%m/%Y %H:%M")}.merge(argv)
19
20
  xml_build = Nokogiri::XML::Builder.new do |xlm|
20
21
  xlm.request {
21
22
  xlm.authentication {
@@ -24,7 +25,7 @@ module IletimerkeziSMS
24
25
  }
25
26
  xlm.order {
26
27
  xlm.sender argv[:sender]
27
- xlm.sendDateTime Time.now.strftime("%d/%m/%Y %H:%M")
28
+ xlm.sendDateTime argv[:sendDateTime]
28
29
  xlm.message {
29
30
  xlm.text_ argv[:message]
30
31
  xlm.receipents{
@@ -51,6 +52,7 @@ module IletimerkeziSMS
51
52
  # Description: Multi Message => Multi Number (Birden fazla farklı mesajı birden fazla farklı kişiye göndermeye yarar.)
52
53
  def multi_send(argv)
53
54
  path = "send-sms"
55
+ argv = {sendDateTime: Time.now.strftime("%d/%m/%Y %H:%M")}.merge(argv)
54
56
  xml_build = Nokogiri::XML::Builder.new do |xlm|
55
57
  xlm.request {
56
58
  xlm.authentication {
@@ -59,7 +61,7 @@ module IletimerkeziSMS
59
61
  }
60
62
  xlm.order {
61
63
  xlm.sender argv[:sender]
62
- xlm.sendDateTime Time.now.strftime("%d/%m/%Y %H:%M")
64
+ xlm.sendDateTime argv[:sendDateTime]
63
65
  argv[:messages].each do |message|
64
66
  xlm.message {
65
67
  xlm.text_ message[:text]
metadata CHANGED
@@ -1,57 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iletimerkezisms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Irfan SUBAS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.6.6
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: '0'
22
+ version: 1.6.6.3
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.6
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: '0'
32
+ version: 1.6.6.3
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rest-client
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.8'
31
40
  - - ">="
32
41
  - !ruby/object:Gem::Version
33
- version: '0'
42
+ version: 1.8.0
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.8'
38
50
  - - ">="
39
51
  - !ruby/object:Gem::Version
40
- version: '0'
52
+ version: 1.8.0
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: crack
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.4'
45
60
  - - ">="
46
61
  - !ruby/object:Gem::Version
47
- version: '0'
62
+ version: 0.4.2
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.4'
52
70
  - - ">="
53
71
  - !ruby/object:Gem::Version
54
- version: '0'
72
+ version: 0.4.2
55
73
  description: api.iletimerkezi.com uzerinden toplu sms gonderme, raporlama gibi islemleri
56
74
  yapabilmek icin hazırlanmistir
57
75
  email: irfansubas08@gmail.com
@@ -83,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
101
  version: '0'
84
102
  requirements: []
85
103
  rubyforge_project:
86
- rubygems_version: 2.4.5
104
+ rubygems_version: 2.2.2
87
105
  signing_key:
88
106
  specification_version: 4
89
107
  summary: api.iletimerkezi.com API Ruby SMS GEM