puxun 0.0.2 → 0.0.3

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.
Files changed (5) hide show
  1. data/README.md +11 -14
  2. data/lib/puxun/version.rb +1 -1
  3. data/puxun.gemspec +1 -1
  4. data/test.rb +5 -4
  5. metadata +3 -3
data/README.md CHANGED
@@ -1,29 +1,26 @@
1
- # Puxun
1
+ # 普迅短信接口
2
2
 
3
- TODO: Write a gem description
3
+ 因信息管理原因,利用[普迅自身短信后台](http://duanxin.pushing.com.cn/)进行短信发送
4
4
 
5
- ## Installation
5
+ ## 依赖环境
6
+ 需要leptonica,tesseract支持,主要为了做登录验证码识别。安装完毕后,请先在命令行下测试tesseract可用性,然后再测下rtesseract可用性,如果无法识别,请设置clear_console_output,查看错误输出信息。[可参看](https://github.com/dannnylo/rtesseract/issues/13)
6
7
 
7
- Add this line to your application's Gemfile:
8
+ ## 安装
9
+
10
+ 在 Gemfile 中加入:
8
11
 
9
12
  gem 'puxun'
10
13
 
11
- And then execute:
14
+ 然后执行:
12
15
 
13
16
  $ bundle
14
17
 
15
- Or install it yourself as:
18
+ 或通过以下方式安装:
16
19
 
17
20
  $ gem install puxun
18
21
 
19
- ## Usage
22
+ ## 使用方法
20
23
 
21
- TODO: Write usage instructions here
24
+ 见测试文件test.rb
22
25
 
23
- ## Contributing
24
26
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
@@ -1,3 +1,3 @@
1
1
  module Puxun
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Puxun::VERSION
9
9
  spec.authors = ["wikimo"]
10
10
  spec.email = ["gwikimo@gmail.com"]
11
- spec.description = %q{puxun sms }
11
+ spec.description = %q{pushing sms }
12
12
  spec.summary = %q{send sms use puxun admin}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
data/test.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  # coding: utf-8
2
- require 'Puxun'
2
+ require File.join(File.dirname(__FILE__), 'lib', 'puxun')
3
3
 
4
4
  px = Puxun::Sms.new
5
- # p px
5
+
6
6
  sms_hash = {
7
7
  :username => '5311',
8
8
  :passwd => 'g82720905',
9
- :msg => '亲爱的会员请注意每日金币值,别超标哦【金币健康管理】',
10
- :phone_num => "18157305082\r\n15857367715"
9
+ :msg => '亲爱的会员请注意每日金币值,别超标哦【金币减重】',
10
+ :phone_num => "15068342177\r\n13251005660"
11
11
  }
12
+
12
13
  result = px.send sms_hash
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puxun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-16 00:00:00.000000000 Z
12
+ date: 2014-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -91,7 +91,7 @@ dependencies:
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
- description: ! 'puxun sms '
94
+ description: ! 'pushing sms '
95
95
  email:
96
96
  - gwikimo@gmail.com
97
97
  executables: []