ibm_vpc 0.6.1 → 0.8.0
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 +4 -4
- data/.bumpversion.cfg +1 -1
- data/.github/workflows/ci.yml +71 -0
- data/CHANGELOG.md +27 -0
- data/README.md +1 -1
- data/ibm_vpc.gemspec +1 -4
- data/lib/ibm_vpc/common.rb +3 -0
- data/lib/ibm_vpc/version.rb +1 -1
- data/lib/ibm_vpc/vpc_v1.rb +5061 -1697
- metadata +9 -51
- data/.travis.yml +0 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17d905c81e562ed8b22c4733b66750efec696410efdefc9d610e5860c730e81f
|
4
|
+
data.tar.gz: b1bcea65b424b50e89b7b11d9b61ca314d5141019e11d7cfbb5e1b203b63d3c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23b90c2af73f4b98337571d2d040fcf6a265abdc3676f7e233fe174cfaa4fe43964fa467e84b1c38532720a1486e3d25f361946f8343fe5eceffd310ae0061c3
|
7
|
+
data.tar.gz: fd3514a3eaccb1c0b5fba18c81181252e0b700ccaf5e922807153043c4eb3fb645ff513a9ac36bf03846e89313ff22794524aec710860da2b79209d1780b9bd5
|
data/.bumpversion.cfg
CHANGED
@@ -0,0 +1,71 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [master]
|
6
|
+
tags: ['*']
|
7
|
+
pull_request:
|
8
|
+
branches: [master]
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
environment: ci
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby-version:
|
17
|
+
- '2.7'
|
18
|
+
- '3.0'
|
19
|
+
- '3.1'
|
20
|
+
- '3.2'
|
21
|
+
- '3.3'
|
22
|
+
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v4
|
25
|
+
with:
|
26
|
+
fetch-depth: 0
|
27
|
+
|
28
|
+
- name: Set up Ruby
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
32
|
+
bundler-cache: true
|
33
|
+
|
34
|
+
- name: Set up Python
|
35
|
+
uses: actions/setup-python@v5
|
36
|
+
with:
|
37
|
+
python-version: '3.x'
|
38
|
+
|
39
|
+
- name: Set up Node.js
|
40
|
+
uses: actions/setup-node@v4
|
41
|
+
with:
|
42
|
+
node-version: 'lts/*'
|
43
|
+
|
44
|
+
- name: Install dependencies
|
45
|
+
run: |
|
46
|
+
python -m pip install --upgrade pip
|
47
|
+
pip install bumpversion
|
48
|
+
npm install -g semantic-release @semantic-release/exec @semantic-release/git @semantic-release/github @semantic-release/commit-analyzer
|
49
|
+
bundle install
|
50
|
+
|
51
|
+
- name: Run tests
|
52
|
+
run: bundle exec rake
|
53
|
+
|
54
|
+
- name: Install release dependencies
|
55
|
+
if: github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7'
|
56
|
+
run: |
|
57
|
+
npm install -g semantic-release @semantic-release/changelog @semantic-release/exec @semantic-release/git @semantic-release/github
|
58
|
+
|
59
|
+
- name: Semantic Release and Publish
|
60
|
+
if: github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7'
|
61
|
+
env:
|
62
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
63
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
64
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
65
|
+
run: |
|
66
|
+
npx semantic-release
|
67
|
+
# If semantic-release was successful, publish to RubyGems
|
68
|
+
if [ $? -eq 0 ]; then
|
69
|
+
gem build *.gemspec
|
70
|
+
gem push *.gem
|
71
|
+
fi
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
# [0.8.0](https://github.com/IBM/vpc-ruby-sdk/compare/0.7.0...0.8.0) (2025-01-31)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* **build:** update travis ([2ccb79a](https://github.com/IBM/vpc-ruby-sdk/commit/2ccb79af909ede6eeeb3d99fbfd6abc6a599f90b))
|
7
|
+
* **build:** update travis ([02df594](https://github.com/IBM/vpc-ruby-sdk/commit/02df59401b2f6808f7bb95be097a41c47ae0e2b7))
|
8
|
+
* **build:** update travis gem bundler version ([720ad65](https://github.com/IBM/vpc-ruby-sdk/commit/720ad6587a69ef21bd2a88001677ecbd4b1b1105))
|
9
|
+
* **build:** update travis nvm ([dade8fd](https://github.com/IBM/vpc-ruby-sdk/commit/dade8fda88d6b91a42c1370b5ce25aa6c0f19720))
|
10
|
+
* **build:** update travis.yml remove deprecated ruby version ([4886347](https://github.com/IBM/vpc-ruby-sdk/commit/48863474edb3dce6767520deb79788ad9a36cac7))
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* **release:** fixed github workflow ([5c76c27](https://github.com/IBM/vpc-ruby-sdk/commit/5c76c27085a03705eb309177035ff530ec6c8086))
|
16
|
+
* **release:** fixed github workflow ([f97a261](https://github.com/IBM/vpc-ruby-sdk/commit/f97a2614f21acfc188464a39e2a150687bdbf12d))
|
17
|
+
* **release:** fixed github workflow ([889f380](https://github.com/IBM/vpc-ruby-sdk/commit/889f380c2dd594fb34c0f0a0223a364afdb1ee07))
|
18
|
+
* **release:** fixed github workflow ([a83e6b0](https://github.com/IBM/vpc-ruby-sdk/commit/a83e6b07100c81b5ccc40214f5171a17d521d535))
|
19
|
+
* **release:** Update SDK to support VPC API version 2024-08-20 ([#28](https://github.com/IBM/vpc-ruby-sdk/issues/28)) ([d97d0df](https://github.com/IBM/vpc-ruby-sdk/commit/d97d0df05735adf6d96276eddf906b5ba1c71e1a))
|
20
|
+
|
21
|
+
# [0.7.0](https://github.com/IBM/vpc-ruby-sdk/compare/0.6.1...0.7.0) (2023-12-29)
|
22
|
+
|
23
|
+
|
24
|
+
### Features
|
25
|
+
|
26
|
+
* **release:** Update SDK to support VPC API version 2023-12-19 ([117dc13](https://github.com/IBM/vpc-ruby-sdk/commit/117dc132d21619fcea1f1493e1bcacd384b943f6))
|
27
|
+
|
1
28
|
## [0.6.1](https://github.com/IBM/vpc-ruby-sdk/compare/0.6.0...0.6.1) (2023-10-16)
|
2
29
|
|
3
30
|
|
data/README.md
CHANGED
@@ -91,7 +91,7 @@ Setting up and using the API client is simple, just pass in your authenticator o
|
|
91
91
|
|
92
92
|
# Pass the authenticator into the VpcV1 service
|
93
93
|
vpc_v1 = IbmVpc::VpcV1.new(
|
94
|
-
version: "
|
94
|
+
version: "2023-12-19" # Will default to the latest version if not specified
|
95
95
|
authenticator: authenticator
|
96
96
|
)
|
97
97
|
|
data/ibm_vpc.gemspec
CHANGED
@@ -28,10 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_runtime_dependency "
|
32
|
-
spec.add_runtime_dependency "http", "~> 5.1.1"
|
33
|
-
spec.add_runtime_dependency "ibm_cloud_sdk_core", "~> 1.2.0"
|
34
|
-
spec.add_runtime_dependency "jwt", "~> 2.2.1"
|
31
|
+
spec.add_runtime_dependency "ibm_cloud_sdk_core", "~> 1.3.0"
|
35
32
|
|
36
33
|
spec.add_development_dependency "bundler", "~> 2.1"
|
37
34
|
spec.add_development_dependency "dotenv", "~> 2.4"
|
data/lib/ibm_vpc/common.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "./version.rb"
|
4
|
+
require "securerandom"
|
4
5
|
|
5
6
|
module IbmVpc
|
6
7
|
# SDK Common class
|
@@ -15,6 +16,8 @@ module IbmVpc
|
|
15
16
|
headers["User-Agent"] = user_agent_string
|
16
17
|
return headers if service_name.nil? || service_version.nil? || operation_id.nil?
|
17
18
|
|
19
|
+
headers["X-Request-Id"] = SecureRandom.uuid
|
20
|
+
|
18
21
|
headers["X-IBMCloud-SDK-Analytics"] = "service_name=#{service_name};service_version=#{service_version};operation_id=#{operation_id}"
|
19
22
|
headers
|
20
23
|
end
|
data/lib/ibm_vpc/version.rb
CHANGED