upyun-purge 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a68306a260f897f14087197e19f97e50615a2abe
4
- data.tar.gz: e19708549c7114c372e4baa3e14128af7f75a104
3
+ metadata.gz: 3889962b85d048baf65e383bce42fc20c693b8ba
4
+ data.tar.gz: d9aaf2be06663b72268984310f862d3ec6d12bb3
5
5
  SHA512:
6
- metadata.gz: 47ce72b1cc0a1fab7729bad306da96ce6ea037306222c696c34d66ea5bf4f5b31127dc4f3c82d5034d3f7dc80bf20134bb0baf91c223f8bb384687ba534f57db
7
- data.tar.gz: 9a07b789e6d5ea208c3970f3e3a6d3ff5692ac8b31fc328edd2e241b5754a6806ea71d351a21cd4a0d1b365e2c24510de61f019444c3ccb1188acb691c266530
6
+ metadata.gz: 32bf305b63de12f39029b768364592808ea59d033f42d4896d1943e7b1086a23545475a0b95175f560093890fbd1ddb078f868e016540b0c11c32942c2f05ced
7
+ data.tar.gz: f6637a8949e5e2b29afc40f87d9e0cc79d6226bb829d2966875ed3ad891582864c25e90704d0383482802200afa953a8a546c83d2bb3ac11b40980f8f7324db3
@@ -29,7 +29,10 @@ module Upyun
29
29
 
30
30
 
31
31
 
32
- def self.new
32
+ def self.new( hash = {} )
33
+ @@bucket_name ||= hash[:bucket_name]
34
+ @@operator_name ||= hash[:operator_name]
35
+ @@operator_password ||= hash[:operator_password]
33
36
  Client.new
34
37
  end
35
38
 
@@ -1,5 +1,5 @@
1
1
  module Upyun
2
2
  module Purge
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upyun-purge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lester Zhao