aliyun-rails 0.1.2 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbbc4a487a18539d9b7f3cd46f3e0a6f958d1062ba4b4728f6cda825fe2282b3
4
- data.tar.gz: b9448aea286f44c0d8146b3373c554dbd742d491dd470d76fc913df2363d548c
3
+ metadata.gz: a056069a71f1de1a699f72849e47bda0eb5c552985295ed6a6e381b99623fdde
4
+ data.tar.gz: 5b8e1bfaedfcdfa818d66da2a2753cdf3c97c10f0d9adbcec1b62a0aafcb4582
5
5
  SHA512:
6
- metadata.gz: f83fca042636e501e9873fb7a825d54578b585180368556319728eec3c562b47a657775ed583424a0bb3f37058bcec1e69d149ff59ad4951b5b01609f6ad8b6a
7
- data.tar.gz: 5d3fe964968d1a927eb1e153486586bbcd74c32a4d498a1216d8a55dab53352d8dba98951c6d03592b40083befdb43bf5c3112e36afa055f31d146d23d260461
6
+ metadata.gz: d98f80bf57213f499e4c2f364fcb25b7ccbb31fbc02896fea9611930844d1c37abf45e0aaa12406e84ec627381a40064c1cc8e10806636827868fa715dcec5dc
7
+ data.tar.gz: 352ca1465ed2f06725bf8180dec2a1e8457785c80cf93f144714c31b633118ab6a5beefd346521d47dcdb878d912cc460072b0dd5ffe86f0ff7c83385c5aea5c
@@ -13,12 +13,12 @@ module Aliyun
13
13
  attr_accessor :endpoint, :api_version, :access_key_id, :access_key_secret,
14
14
  :security_token, :codes, :opts, :verbose
15
15
 
16
- def configure
16
+ def init_params
17
17
  yield self
18
18
  end
19
19
 
20
20
  # 对象初始化属性
21
- def initialize(config = configure, verbose = false)
21
+ def initialize(config = init_params, verbose = false)
22
22
  validate config
23
23
 
24
24
  self.endpoint = config[:endpoint]
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Aliyun
4
4
  module Rails
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.4"
6
6
  DEFAULT_UA = "AlibabaCloud (#{Gem::Platform.local.os}; " +
7
7
  "#{Gem::Platform.local.cpu}) Ruby/#{RUBY_VERSION} Core/#{VERSION}"
8
8
  end
data/lib/aliyun/rails.rb CHANGED
@@ -14,7 +14,7 @@ module Aliyun
14
14
 
15
15
  class << self
16
16
  def config(&block)
17
- RPCClient.configure(&block)
17
+ RPCClient.init_params(&block)
18
18
  end
19
19
  end
20
20
  # Your code goes here...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyun-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - WENWU.YAN