gm-luosimao 0.0.3 → 0.0.4

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: 1a78947c2ba20261b182d553223f975a3d64c128
4
- data.tar.gz: b38841956125fc39fe3a091abbcfdaceeea0429e
3
+ metadata.gz: 14f33d518d80e2eb7b0f7acb4c92b7f044fa816c
4
+ data.tar.gz: 049ae2e72406f19e8c0b1b4aae2526d377771ae4
5
5
  SHA512:
6
- metadata.gz: 520fdbf29fc41f14aaad2b8c37652e561da05666cdce36b498fc466be9bfd08bdb3e2fab37bf5146846887374644ba98da7638f614edc9a0296d78a422310044
7
- data.tar.gz: e9285deceaac361431c722bca7ca6550f13ea4bc0ee2bb94378f6872e806d8811b84ff348f88cde1ce9ff1904bb25656764b02abe133b59d9c227f46f00eef69
6
+ metadata.gz: 77947806eda3d45166c94f2c68bc8a091b773dcef7b2e12acb641152fbe2697b47ff80256ea406fad70adcb4ce989d32b85173c03f7fc733883d8679aca59aeb
7
+ data.tar.gz: 9106a581f16172082834d2689ecf76780575b480a35379a080d8573c0f99a3eca014425dc335975accd68aa8ccc27ca3d45d937f1d8d9ce45fb2d601c2b7ad76
data/README.md CHANGED
@@ -7,7 +7,7 @@ TODO: Write a gem description
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'gm-luosimao'
10
+ gem 'gm-luosimao', require: 'luosimao'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -27,7 +27,8 @@ Luosimao.brand = "【有演出】"
27
27
  ```
28
28
  ### Send message
29
29
  ```ruby
30
- Luosimao::Message.to "10086", "hello world!"
30
+ Luosimao::Message.to("10086", "hello world!")
31
+ # Luosimao.send_to(%w(10086 10010), "hello world!")
31
32
  ```
32
33
  ## Contributing
33
34
 
@@ -6,12 +6,12 @@ module Luosimao
6
6
  attr_accessor :username, :key, :brand
7
7
  end
8
8
 
9
- def self.send_to(phone, content)
10
- Message.to(phone, content)
9
+ def self.send_to(phones, content)
10
+ Array(phones).each { |phone| Message.to(phone, content) }
11
11
  end
12
12
 
13
- def self.send_to!(phone, content)
14
- Message.to!(phone, content)
13
+ def self.send_to!(phones, content)
14
+ Array(phones).each { |phone| Message.to!(phone, content) }
15
15
  end
16
16
 
17
17
  def self.deposit_check
@@ -1,3 +1,3 @@
1
1
  module Luosimao
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gm-luosimao
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - HungYuHei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler