china_sms 0.0.1 → 0.0.2

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: e5f162b7555923e2041d9c91e7542ffb8b639f3f
4
- data.tar.gz: 8004e430e389d4ef935d69270a65e31536ec9cb1
3
+ metadata.gz: e2ca5471dd6d7293895313bd3900c081019166af
4
+ data.tar.gz: 922a28c72cbbd6ff6200b3db56123e91a833673e
5
5
  SHA512:
6
- metadata.gz: 00cb79fb356a692d3b84d4d4f0d0d04e2819b33b176b6a897a0602c373133c1db46e6be811a36fd2dc2b475cffdc3c72e8b8997be5b4529504a0b415b24669c6
7
- data.tar.gz: 1d406912d5610e6a0bf96e7bd79bd850c77afa52da7880df42497a316c9c51f2f6e9f3aa16dd40116d19d35d00cae8bae952d0357ee01a197c38f4d0ecb155ef
6
+ metadata.gz: 0b6a6f1b48d62b0b23c96cebdc9a95c6387fa3a17d20bc3fc548af15162b1f22a471bac9e5dd0966693fcf994f378592e572e1099f9f744c718a32491cb9abeb
7
+ data.tar.gz: abd36f9c6c865cbe054b9c833863d2ff8f6c55b19673bee1c6844e7167ce24f459f435859bf5058be09b46195ef12a02e72c34ad828018be75971f43a8349899
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+
7
+ script:
8
+ - bundle exec rspec spec
data/README.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # ChinaSMS 短信平台 Ruby 接口
2
2
 
3
+ [![Build Status](https://travis-ci.org/saberma/china_sms.png?branch=master)](https://travis-ci.org/saberma/china_sms)
4
+
3
5
  ## 支持以下短信平台
4
6
 
5
7
  所有短信平台都禁止发送私人短信,并要求在短信内容末尾加上签名后缀,如【19屋】
6
8
 
7
- * [推立方](http://tui3.com/) 专注于注册校验码等实时应用,需要[配置内容格式和签名](http://www.tui3.com/Members/smsconfigv2/),自动在短信加上签名后缀
9
+ * [推立方](http://tui3.com/) 专注于注册校验码等实时应用,需要[配置内容格式和签名](http://www.tui3.com/Members/smsconfigv2/),会自动在短信加上签名后缀
8
10
  * [短信宝](http://www.smsbao.com/)
9
11
  * [畅友网络](http://www.chanyoo.cn/) 群发短信需要半小时左右的时间审核,星期五等繁忙时段会有几个小时的延时,不适合发送注册校验码等实时短信,单次最多发送500个号码
10
12
 
13
+ 非常感谢 [推立方](http://tui3.com/) 为 [19屋活动平台](http://19wu.com) 提供短信赞助。
14
+
11
15
  ## 安装
12
16
 
13
17
  加入以下代码到 Gemfile:
@@ -26,6 +30,6 @@
26
30
 
27
31
  ```ruby
28
32
  # 支持 :tui3, :smsbao, chanyoo 短信接口
29
- ChinaSMS.use :smsbao, username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD'
33
+ ChinaSMS.use :tui3, username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD'
30
34
  ChinaSMS.to '13912345678', '[Test]China SMS gem has been released.'
31
35
  ```
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module ChinaSMS
2
3
  module Service
3
4
  module Chanyoo
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module ChinaSMS
2
3
  module Service
3
4
  module Smsbao
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'json'
2
3
 
3
4
  module ChinaSMS
@@ -1,3 +1,3 @@
1
1
  module ChinaSMS
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/china_sms.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "china_sms/version"
2
3
  require 'net/http'
3
4
  Dir.glob("#{File.expand_path(File.dirname(__FILE__))}/china_sms/service/*.rb").sort.each do |f|
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe "ChinaSMS" do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe "Chanyoo" do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe "Smsbao" do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe "Tui3" do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'webmock/rspec'
2
3
  require 'china_sms'
3
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: china_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saberma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-01 00:00:00.000000000 Z
11
+ date: 2013-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - .gitignore
77
+ - .travis.yml
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md