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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9b0f16743600223ebf29bd8ee89a81426ceeed7b3b04b364b07423ecf5dbed
|
4
|
+
data.tar.gz: 6aa2dbbaefb12f8da964ca5a9b0d07e41e68272aaf2658521dbce89ee8d5c263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
16
|
+
def init_params
|
17
17
|
yield self
|
18
18
|
end
|
19
19
|
|
20
20
|
# 对象初始化属性
|
21
|
-
def initialize(config =
|
21
|
+
def initialize(config = init_params, verbose = false)
|
22
22
|
validate config
|
23
23
|
|
24
24
|
self.endpoint = config[:endpoint]
|
data/lib/aliyun/rails/version.rb
CHANGED
@@ -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.
|
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.
|
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
|
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
|