bluestorm_sms 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae33a8a4d9623911310e66773adaab2ae565c284
4
- data.tar.gz: 54c0c03ff2e4c24ed10a6dae317937b4cf627e6f
3
+ metadata.gz: a83e92c81ad20483434378574bd8c6761e6c6184
4
+ data.tar.gz: a147e6e210812985c8d908b59104f8724f232925
5
5
  SHA512:
6
- metadata.gz: e5e077fa02305121fd179fa9aa231fa2602d0d2d71793b0dde66e291ca5d7c47bfa8740d289b9cdc77b1efd868ce43473786f37eb85dd4d1abcf3d476b6c27e6
7
- data.tar.gz: b5483761dd6563528dc69d6a54df7d064c4fcbbebaaecad90c0af649939bca89c6d7eebea39c8d78101793e36a23be094927d1d47fbef88b855d1e1aceb7f32d
6
+ metadata.gz: 17e4af13b3812e97ecdb1cbea2e0628b2d74fbb97372cd29ea7130df1e9e1d13ebfd29ff0f9666d8a396f47bc6280ca2ace268b6e4335398f987eea30b89fd88
7
+ data.tar.gz: 2b0c8b8c3c6931ae832058b523f9feb488c80e231c24da5364ab477ca6459f20ff11feacef35da5b79ed495883831814768c29ffe7c7a68116ada49b563a1167
@@ -25,8 +25,8 @@ module BluestormSMS
25
25
  Digest::MD5.hexdigest(@config.sn + @config.pwd).upcase
26
26
  end
27
27
 
28
- def send(phone, content)
29
- result = Net::HTTP.post_form(URI.parse("#{URL}"), sn: @config.sn, pwd: self.pwd, mobile: phone, content: content)
28
+ def send(phone, content, ext = 0)
29
+ result = Net::HTTP.post_form(URI.parse("#{URL}"), sn: @config.sn, pwd: self.pwd, mobile: phone, content: content, ext: ext)
30
30
  if result.body.match '^\d{18}$'
31
31
  {success: result.body}
32
32
  else
@@ -1,3 +1,3 @@
1
1
  module BluestormSms
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluestorm_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - gavin.li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-29 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler