rfetion 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -59,3 +59,7 @@ different mode:
59
59
  Common options:
60
60
  -h, --help Show this message
61
61
  </code></pre>
62
+
63
+ ******************************************************************************
64
+
65
+ Copyright (c) 2009 Richard Huang (flyerhzm@gmail.com), released under the MIT license
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 'uuid'
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.4
1
+ 0.3.5
data/lib/rfetion.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- require 'uuid'
2
+ require 'guid'
3
3
  require 'net/http'
4
4
  require 'net/https'
5
5
  require 'rexml/document'
@@ -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 = UUID.new.generate
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(UUID.new.generate).upcase
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.4"
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-17}
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<uuid>, [">= 0"])
40
+ s.add_runtime_dependency(%q<guid>, [">= 0"])
41
41
  else
42
- s.add_dependency(%q<uuid>, [">= 0"])
42
+ s.add_dependency(%q<guid>, [">= 0"])
43
43
  end
44
44
  else
45
- s.add_dependency(%q<uuid>, [">= 0"])
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
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-17 00:00:00 +08:00
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: uuid
16
+ name: guid
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement