rfetion 0.3.4 → 0.3.5
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/README.textile +4 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/rfetion.rb +1 -1
- data/lib/rfetion/fetion.rb +2 -2
- data/rfetion.gemspec +5 -5
- metadata +3 -3
data/README.textile
CHANGED
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ Jeweler::Tasks.new do |gemspec|
|
|
8
8
|
gemspec.homepage = ''
|
9
9
|
gemspec.authors = ['Richard Huang']
|
10
10
|
gemspec.files.exclude '.gitignore'
|
11
|
-
gemspec.add_dependency '
|
11
|
+
gemspec.add_dependency 'guid'
|
12
12
|
gemspec.executables << 'rfetion'
|
13
13
|
end
|
14
14
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
data/lib/rfetion.rb
CHANGED
data/lib/rfetion/fetion.rb
CHANGED
@@ -9,7 +9,7 @@ class Fetion
|
|
9
9
|
FETION_LOGIN_URL = 'https://nav.fetion.com.cn/ssiportal/SSIAppSignIn.aspx'
|
10
10
|
FETION_CONFIG_URL = 'http://nav.fetion.com.cn/nav/getsystemconfig.aspx'
|
11
11
|
FETION_SIPP = 'SIPP'
|
12
|
-
GUID =
|
12
|
+
GUID = Guid.new.to_s
|
13
13
|
@nonce = nil
|
14
14
|
|
15
15
|
def initialize
|
@@ -236,7 +236,7 @@ class Fetion
|
|
236
236
|
end
|
237
237
|
|
238
238
|
def calc_cnonce
|
239
|
-
Digest::MD5.hexdigest(
|
239
|
+
Digest::MD5.hexdigest(GUID).upcase
|
240
240
|
end
|
241
241
|
|
242
242
|
def hash_password
|
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.5"
|
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-10-
|
12
|
+
s.date = %q{2009-10-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"]
|
@@ -37,11 +37,11 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.specification_version = 3
|
38
38
|
|
39
39
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
40
|
-
s.add_runtime_dependency(%q<
|
40
|
+
s.add_runtime_dependency(%q<guid>, [">= 0"])
|
41
41
|
else
|
42
|
-
s.add_dependency(%q<
|
42
|
+
s.add_dependency(%q<guid>, [">= 0"])
|
43
43
|
end
|
44
44
|
else
|
45
|
-
s.add_dependency(%q<
|
45
|
+
s.add_dependency(%q<guid>, [">= 0"])
|
46
46
|
end
|
47
47
|
end
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-25 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: guid
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|