chuanglan 1.1.0 → 1.1.1

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: f4c18627fb61bbe7f5840e0ee0ab5afd3765422f
4
- data.tar.gz: 123da4b43d187b94c0a990a832a75c459f9deb98
3
+ metadata.gz: 8e6a8688b75b26f01c102863dfd163c34eb6222e
4
+ data.tar.gz: dfa1c83e290b45d1fc400aad707d016234a01e55
5
5
  SHA512:
6
- metadata.gz: 9c0c22d246251043f1ea961e4dcef4012781aa9b594889aefe17a5ef8ad2a25cd41b53957f94ae15b4f0b6edc76bea842241dca19d3d8dba2dc471ad3b37f493
7
- data.tar.gz: 2a7a648f5d59efb09a6957576a4c35f8bd31065c5e405434e220d721b91f8c2b0535d5b8a286a8977f75838584109fefb2bd87877bfe7b4ce6c8418e4ca2218b
6
+ metadata.gz: e24479ec3b2ae638617cd1a9c17bbcde59963aa5b639bd5680c0c15e37b242b099c0544498fdb0419f109810a695cba44b8edaf77446a04d8c70ecb1e97876f9
7
+ data.tar.gz: 064c8ff852cfc5f66c1dcd92c3eb9e4d4f7b1fdeb9d051ce2696a293408b9804596e772a137ec0d5e07249f0a96cff0d36517713e9386e99aaddf1fc4fb8177e
data/lib/chuanglan.rb CHANGED
@@ -13,7 +13,7 @@ module Chuanglan
13
13
  def send_to!(recipients, message, params = {})
14
14
  params = base_params.merge(params)
15
15
  params[:phone] = Array(recipients).join(',')
16
- params[:msg] = "#{params.fetch(:signature, signature)}#{message}"
16
+ params[:msg] = "#{params.delete(:signature) || signature}#{message}"
17
17
  rsp = Request.new("#{GATEWAY}/msg/send", params).perform
18
18
  success_or_raise_exception(rsp)
19
19
  end
@@ -8,7 +8,7 @@ module Chuanglan
8
8
  def send_to!(recipients, message, params = {})
9
9
  params = base_params.merge(params)
10
10
  params[:da] = Array(recipients).join(',')
11
- params[:sm] = "#{params.fetch(:signature, signature)}#{message}"
11
+ params[:sm] = "#{params.delete(:signature) || signature}#{message}"
12
12
  rsp = Request.new("#{GATEWAY}/mt", params).perform
13
13
  success_or_raise_exception(rsp)
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Chuanglan
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chuanglan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HungYuHei