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 +4 -4
- data/README.md +3 -2
- data/lib/luosimao.rb +4 -4
- data/lib/luosimao/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14f33d518d80e2eb7b0f7acb4c92b7f044fa816c
|
4
|
+
data.tar.gz: 049ae2e72406f19e8c0b1b4aae2526d377771ae4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
30
|
+
Luosimao::Message.to("10086", "hello world!")
|
31
|
+
# Luosimao.send_to(%w(10086 10010), "hello world!")
|
31
32
|
```
|
32
33
|
## Contributing
|
33
34
|
|
data/lib/luosimao.rb
CHANGED
@@ -6,12 +6,12 @@ module Luosimao
|
|
6
6
|
attr_accessor :username, :key, :brand
|
7
7
|
end
|
8
8
|
|
9
|
-
def self.send_to(
|
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!(
|
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
|
data/lib/luosimao/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|