taobao_fu_reload 1.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/taobao_fu.rb +6 -5
  2. metadata +4 -4
data/lib/taobao_fu.rb CHANGED
@@ -5,7 +5,6 @@ rescue LoadError
5
5
  "of Rails, please make sure crack is installed. \n "
6
6
  exit
7
7
  end
8
- # require "patron"
9
8
  require "digest/md5"
10
9
  require "yaml"
11
10
  require "uri"
@@ -28,11 +27,13 @@ module TaobaoFu
28
27
  apply_settings
29
28
  end
30
29
 
30
+ def settings=(settings)
31
+ @settings = settings
32
+ apply_settings
33
+ end
34
+
31
35
  def apply_settings
32
- ENV['TAOBAO_API_KEY'] = @settings['app_key'].to_s
33
- ENV['TAOBAO_SECRET_KEY'] = @settings['secret_key']
34
- ENV['TAOBAOKE_PID'] = @settings['taobaoke_pid']
35
- @base_url = @settings['is_sandbox'] ? SANDBOX : PRODBOX
36
+ @base_url = @settings['is_sandbox'] ? SANDBOX : PRODBOX
36
37
 
37
38
  initialize_session if @settings['use_curl']
38
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taobao_fu_reload
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-01 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crack
16
- requirement: &70361236937180 !ruby/object:Gem::Requirement
16
+ requirement: &70106294689960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.1.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70361236937180
24
+ version_requirements: *70106294689960
25
25
  description: long live the taobao_fu!
26
26
  email: info@networking.io
27
27
  executables: []