aliyun-rails 0.1.2 → 0.1.6

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
  SHA256:
3
- metadata.gz: bbbc4a487a18539d9b7f3cd46f3e0a6f958d1062ba4b4728f6cda825fe2282b3
4
- data.tar.gz: b9448aea286f44c0d8146b3373c554dbd742d491dd470d76fc913df2363d548c
3
+ metadata.gz: dc9b0f16743600223ebf29bd8ee89a81426ceeed7b3b04b364b07423ecf5dbed
4
+ data.tar.gz: 6aa2dbbaefb12f8da964ca5a9b0d07e41e68272aaf2658521dbce89ee8d5c263
5
5
  SHA512:
6
- metadata.gz: f83fca042636e501e9873fb7a825d54578b585180368556319728eec3c562b47a657775ed583424a0bb3f37058bcec1e69d149ff59ad4951b5b01609f6ad8b6a
7
- data.tar.gz: 5d3fe964968d1a927eb1e153486586bbcd74c32a4d498a1216d8a55dab53352d8dba98951c6d03592b40083befdb43bf5c3112e36afa055f31d146d23d260461
6
+ metadata.gz: 2ac70aece2de21d489e26720e8a02bd7aa41fea5fb489c97a2aeeb2afc26e31729487a6a4997ddb41a3543b5e29d34cb26a1d547b919c55ba348ccd9f6ec9d8d
7
+ data.tar.gz: bec5d7f3fb133eb384545d9703ba26fc5d0962f1c0d0d07f63ed4ab6679cffa6aa1b03c570d7b0c4b56205677fbe8f3f8b271d41e38885a4972ef7c5adf32196
@@ -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.6"
6
6
  DEFAULT_UA = "AlibabaCloud (#{Gem::Platform.local.os}; " +
7
7
  "#{Gem::Platform.local.cpu}) Ruby/#{RUBY_VERSION} Core/#{VERSION}"
8
8
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "rails/version"
4
-
5
3
  require "aliyun/rails/version"
6
4
  require "aliyun/rails/connector/roa_client"
7
5
  require "aliyun/rails/connector/rpc_client"
@@ -14,9 +12,10 @@ module Aliyun
14
12
 
15
13
  class << self
16
14
  def config(&block)
17
- RPCClient.configure(&block)
15
+ RPCClient.init_params(&block)
18
16
  end
19
17
  end
18
+
20
19
  # Your code goes here...
21
20
  end
22
21
  end
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - WENWU.YAN
@@ -47,7 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - README.md
49
49
  - Rakefile
50
- - lib/aliyun/rails.rb
50
+ - lib/aliyun-rails.rb
51
51
  - lib/aliyun/rails/connector/roa_client.rb
52
52
  - lib/aliyun/rails/connector/rpc_client.rb
53
53
  - lib/aliyun/rails/dysms.rb