aliyun 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/aliyun.gemspec +1 -1
- data/lib/aliyun/services.rb +3 -1
- data/lib/aliyun/services/business.rb +24 -0
- data/lib/aliyun/services/cdn.rb +1 -1
- data/lib/aliyun/version.rb +1 -1
- data/spec/aliyun_business_spec.rb +12 -0
- metadata +13 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a14e8d0a6f0efe362332a6a45e76a4f1cbf508adde7bb9d090e2363f9a5fb304
|
4
|
+
data.tar.gz: d353caada1d6bfac080e84b6d4717808d5d26472b7ec0ad251e0f986034b9549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9f1004b2afb80ef169cec6800c20c07644a5084d9db5c9c7556eab7073de814e7281c427ca64e3e590ec5fd0a0dd2f2b352dc736d6d10d9a9a05de5996454f0
|
7
|
+
data.tar.gz: 5b2c0e4af36f975eaa85fd5900e8c3c41f9858ae8ae73f1d613e52a39488b7b9f4683db6cc1a1cfd437592ebd94178693c441c14ce94478308e93637917aa90d
|
data/README.md
CHANGED
@@ -55,6 +55,8 @@ Current support these services:
|
|
55
55
|
* `:rds` => `RDS` (Relational Database Service)
|
56
56
|
* `:slb` => `SLB` (Server Load Balancer)
|
57
57
|
* `:sts` => `STS` (Security Token Service)
|
58
|
+
* `:vpc` => `VPC` (Virtual Private Cloud)
|
59
|
+
* `:business` => `Business` (Aliyun Account Management)
|
58
60
|
|
59
61
|
## Contributing
|
60
62
|
|
@@ -70,4 +72,4 @@ Current support these services:
|
|
70
72
|
|
71
73
|
|
72
74
|
## License
|
73
|
-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLax%2Faliyun.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FLax%2Faliyun?ref=badge_large)
|
75
|
+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLax%2Faliyun.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FLax%2Faliyun?ref=badge_large)
|
data/aliyun.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
spec.add_development_dependency "rspec"
|
26
26
|
spec.add_development_dependency "rspec_junit_formatter"
|
data/lib/aliyun/services.rb
CHANGED
@@ -7,6 +7,7 @@ require "aliyun/services/rds"
|
|
7
7
|
require "aliyun/services/slb"
|
8
8
|
require "aliyun/services/sts"
|
9
9
|
require "aliyun/services/vpc"
|
10
|
+
require "aliyun/services/business"
|
10
11
|
|
11
12
|
module Aliyun
|
12
13
|
SERVICES = {
|
@@ -18,6 +19,7 @@ module Aliyun
|
|
18
19
|
:rds => RDSConfig,
|
19
20
|
:slb => SLBConfig,
|
20
21
|
:sts => STSConfig,
|
21
|
-
:vpc => VPCConfig
|
22
|
+
:vpc => VPCConfig,
|
23
|
+
:business => BusinessConfig
|
22
24
|
}
|
23
25
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Aliyun
|
2
|
+
class BusinessConfig < APIConfig
|
3
|
+
def self.info
|
4
|
+
"Aliyu Business Service"
|
5
|
+
end
|
6
|
+
def self.endpoint
|
7
|
+
'https://business.aliyuncs.com/'
|
8
|
+
end
|
9
|
+
def self.default_parameters
|
10
|
+
{
|
11
|
+
:Format=>"JSON",
|
12
|
+
:Version=>"2017-12-14",
|
13
|
+
:SignatureMethod=>"HMAC-SHA1",
|
14
|
+
:SignatureVersion=>"1.0"
|
15
|
+
}
|
16
|
+
end
|
17
|
+
def self.separator
|
18
|
+
super
|
19
|
+
end
|
20
|
+
def self.http_method
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/aliyun/services/cdn.rb
CHANGED
data/lib/aliyun/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Aliyun do
|
4
|
+
it 'can create aliyun business service' do
|
5
|
+
options = load_options
|
6
|
+
options[:service] = :business
|
7
|
+
service = Aliyun::Service.new options
|
8
|
+
|
9
|
+
expect(service).to be_instance_of(Aliyun::Service)
|
10
|
+
expect(service.service).to be(Aliyun::BusinessConfig)
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aliyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liu Lantao
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/aliyun/base.rb
|
102
102
|
- lib/aliyun/common.rb
|
103
103
|
- lib/aliyun/services.rb
|
104
|
+
- lib/aliyun/services/business.rb
|
104
105
|
- lib/aliyun/services/cdn.rb
|
105
106
|
- lib/aliyun/services/cms.rb
|
106
107
|
- lib/aliyun/services/dns.rb
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- lib/aliyun/services/sts.rb
|
112
113
|
- lib/aliyun/services/vpc.rb
|
113
114
|
- lib/aliyun/version.rb
|
115
|
+
- spec/aliyun_business_spec.rb
|
114
116
|
- spec/aliyun_cdn_spec.rb
|
115
117
|
- spec/aliyun_cms_spec.rb
|
116
118
|
- spec/aliyun_dns_spec.rb
|
@@ -126,7 +128,7 @@ homepage: https://github.com/Lax/aliyun
|
|
126
128
|
licenses:
|
127
129
|
- MIT
|
128
130
|
metadata: {}
|
129
|
-
post_install_message:
|
131
|
+
post_install_message:
|
130
132
|
rdoc_options: []
|
131
133
|
require_paths:
|
132
134
|
- lib
|
@@ -141,11 +143,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
143
|
- !ruby/object:Gem::Version
|
142
144
|
version: '0'
|
143
145
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
145
|
-
signing_key:
|
146
|
+
rubygems_version: 3.1.4
|
147
|
+
signing_key:
|
146
148
|
specification_version: 4
|
147
149
|
summary: Ruby wrapper of Aliyun API for system administrator
|
148
150
|
test_files:
|
151
|
+
- spec/aliyun_business_spec.rb
|
149
152
|
- spec/aliyun_cdn_spec.rb
|
150
153
|
- spec/aliyun_cms_spec.rb
|
151
154
|
- spec/aliyun_dns_spec.rb
|