aliyun 0.5.0 → 0.6.0

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
- SHA1:
3
- metadata.gz: 24f249568cd9de8c09fedfe4e5a846e21828e018
4
- data.tar.gz: 74c41834e2dd4b7ec6e650afefc090000794b53a
2
+ SHA256:
3
+ metadata.gz: 91e30aa59e1a71dae4f31e8051c6fdb4105f48158672ff57c93ac6119a1f2144
4
+ data.tar.gz: 6225bbadc324b08a4fe53e00bc808e6c297dce446997e274febd9f2cb8f663d8
5
5
  SHA512:
6
- metadata.gz: df5968523cdf0eda0ff24c8e289e382ef1021c8a3264b409dbf6e94afb433aa1fe3771552bfa397a76f3a706b7d42f4511d2b62c34eb51549d3d82a3c31a5602
7
- data.tar.gz: efbf9032241e9d59f694747168c3c3c881998f03dc953daea9fd64505f8536828faced6cda1f8222109a23e868addaddb2a3316bea09d351f73dece97b44e8b8
6
+ metadata.gz: 021e0a4c1137913bfd8aa5e21d7d4448e303a55bb47435515fdfaf4994b3bf750561fc9ae82d874500310a83051a721023643d56837a5ae1ef934c9b19434167
7
+ data.tar.gz: 26b2fda05bc7778432a346ad2d9a524aed64c5cd0730ca38515aee58d5dcd9bd9508773f789ff84f1775fcf43ab229715f437222d17bc080c44a0e0124cca418
data/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![CircleCI](https://circleci.com/gh/Lax/aliyun/tree/master.png?style=shield)](https://circleci.com/gh/Lax/aliyun)
8
8
  [![security](https://hakiri.io/github/Lax/aliyun/master.svg)](https://hakiri.io/github/Lax/aliyun/master)
9
9
  [![Dependency Status](https://gemnasium.com/Lax/aliyun.svg)](https://gemnasium.com/Lax/aliyun)
10
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLax%2Faliyun.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FLax%2Faliyun?ref=badge_shield)
10
11
 
11
12
  Ruby wrapper of Aliyun API for system adminstrator.
12
13
 
@@ -66,3 +67,7 @@ Current support these services:
66
67
  ## Author
67
68
 
68
69
  * [Liu Lantao](https://github.com/Lax)
70
+
71
+
72
+ ## 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)
@@ -6,6 +6,7 @@ require "aliyun/services/ram"
6
6
  require "aliyun/services/rds"
7
7
  require "aliyun/services/slb"
8
8
  require "aliyun/services/sts"
9
+ require "aliyun/services/vpc"
9
10
 
10
11
  module Aliyun
11
12
  SERVICES = {
@@ -16,6 +17,7 @@ module Aliyun
16
17
  :ram => RAMConfig,
17
18
  :rds => RDSConfig,
18
19
  :slb => SLBConfig,
19
- :sts => STSConfig
20
+ :sts => STSConfig,
21
+ :vpc => VPCConfig
20
22
  }
21
23
  end
@@ -0,0 +1,24 @@
1
+ module Aliyun
2
+ class VPCConfig < APIConfig
3
+ def self.info
4
+ "Aliyu VPC Service"
5
+ end
6
+ def self.endpoint
7
+ 'https://vpc.aliyuncs.com/'
8
+ end
9
+ def self.default_parameters
10
+ {
11
+ :Format=>"JSON",
12
+ :Version=>"2016-04-28",
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
@@ -1,3 +1,3 @@
1
1
  module Aliyun
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Aliyun do
4
+ it 'can create aliyun vpc service' do
5
+ options = load_options
6
+ options[:service] = :vpc
7
+ service = Aliyun::Service.new options
8
+
9
+ expect(service).to be_instance_of(Aliyun::Service)
10
+ expect(service.service).to be(Aliyun::VPCConfig)
11
+ end
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Lantao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,6 +109,7 @@ files:
109
109
  - lib/aliyun/services/rds.rb
110
110
  - lib/aliyun/services/slb.rb
111
111
  - lib/aliyun/services/sts.rb
112
+ - lib/aliyun/services/vpc.rb
112
113
  - lib/aliyun/version.rb
113
114
  - spec/aliyun_cdn_spec.rb
114
115
  - spec/aliyun_cms_spec.rb
@@ -119,6 +120,7 @@ files:
119
120
  - spec/aliyun_slb_spec.rb
120
121
  - spec/aliyun_spec.rb
121
122
  - spec/aliyun_sts_spec.rb
123
+ - spec/aliyun_vpc_spec.rb
122
124
  - spec/spec_helper.rb
123
125
  homepage: https://github.com/Lax/aliyun
124
126
  licenses:
@@ -139,8 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
141
  - !ruby/object:Gem::Version
140
142
  version: '0'
141
143
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.6.14
144
+ rubygems_version: 3.0.2
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: Ruby wrapper of Aliyun API for system administrator
@@ -154,4 +155,5 @@ test_files:
154
155
  - spec/aliyun_slb_spec.rb
155
156
  - spec/aliyun_spec.rb
156
157
  - spec/aliyun_sts_spec.rb
158
+ - spec/aliyun_vpc_spec.rb
157
159
  - spec/spec_helper.rb