rfetion 0.3.11 → 0.3.12
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.
- data/VERSION +1 -1
- data/lib/rfetion/command.rb +7 -2
- data/rfetion.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.12
|
data/lib/rfetion/command.rb
CHANGED
|
@@ -7,10 +7,10 @@ OptionParser.new do |opts|
|
|
|
7
7
|
opts.banner = "Usage: rfetion [options]"
|
|
8
8
|
|
|
9
9
|
opts.separator ""
|
|
10
|
-
opts.separator
|
|
10
|
+
opts.separator <<-EOF
|
|
11
11
|
Example: rfetion -m mobile -p password -f friends_mobile_or_fetion_number -c sms_content
|
|
12
12
|
rfetion -m mobile -p password -a friend_mobile
|
|
13
|
-
EOF
|
|
13
|
+
EOF
|
|
14
14
|
|
|
15
15
|
opts.on('-m', '--mobile MOBILE', 'Fetion mobile number') do |mobile|
|
|
16
16
|
options[:mobile_no] = mobile
|
|
@@ -47,6 +47,11 @@ EOF
|
|
|
47
47
|
opts.separator ""
|
|
48
48
|
opts.separator "Common options:"
|
|
49
49
|
|
|
50
|
+
opts.on_tail('-v', '--version', 'Show this version') do
|
|
51
|
+
puts File.read(File.dirname(__FILE__) + '/../../VERSION')
|
|
52
|
+
exit
|
|
53
|
+
end
|
|
54
|
+
|
|
50
55
|
opts.on_tail("-h", "--help", "Show this message") do
|
|
51
56
|
puts opts
|
|
52
57
|
exit
|
data/rfetion.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{rfetion}
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.12"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Richard Huang"]
|
|
12
|
-
s.date = %q{2009-11-
|
|
12
|
+
s.date = %q{2009-11-25}
|
|
13
13
|
s.description = %q{rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.}
|
|
14
14
|
s.email = %q{flyerhzm@gmail.com}
|
|
15
15
|
s.executables = ["rfetion", "rfetion"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rfetion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-11-
|
|
12
|
+
date: 2009-11-25 00:00:00 +08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|