azure-armrest 0.13.0 → 0.15.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
2
  SHA256:
3
- metadata.gz: 9871cdb7ba4cf5a50f47b497aade6aa18f601b3d93dcef2214d97671f451892f
4
- data.tar.gz: a3a4785c87ddefc29242806140decbecd639fa103565805e8a63efa72ae084e3
3
+ metadata.gz: ba1606f21cfb986d9c7a3b7d45a61515f0b5cf6729ab05743ba93577e9f99649
4
+ data.tar.gz: ae4cc96468290c4befe2976b97e11204f89b25b728f1db79fc07272b0a89f52c
5
5
  SHA512:
6
- metadata.gz: 4f2474bff6c9db05e72c9a9890cad96ecd5f6a351e099332aaffdb2793b64bf04eeb767935a12369d64b336eb7973668ca8838bcabac9890b6222e3e1e118212
7
- data.tar.gz: 9f03e1c398ed6336c7b5739fe5aefa92f99bd4748a74b89bfc31e5e839a50c973547e51bc972b8e60b3a086187398f9d866bbc2457cb887e007cc8ae4f146bfa
6
+ metadata.gz: 182daca6dd78e622a8b87b85e1c27e5e1e15de87ffb3128240faea47d8073d8d99063c519809964db06bb667e54ab774b927a6e66b1b99f938c7a8497afc7d97
7
+ data.tar.gz: 63d5304358c1433447d40cde4d79491ee1f17b6ce97894e70b2e8b548b935460b77525ef05d80dbfe145ce73a22a48a1bcb784228a90c0eb3759a6994ca53a0b
@@ -0,0 +1,34 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: '0 0 * * 0'
8
+
9
+ jobs:
10
+ ci:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version:
15
+ - '2.5'
16
+ - '2.6'
17
+ - '2.7'
18
+ - '3.0'
19
+ env:
20
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby-version }}
27
+ bundler-cache: true
28
+ timeout-minutes: 30
29
+ - name: Run tests
30
+ run: bundle exec rake
31
+ - name: Report code coverage
32
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
33
+ continue-on-error: true
34
+ uses: paambaati/codeclimate-action@v3.0.0
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
- --format documentation
1
+ --require spec_helper
2
2
  --color
3
+ --order random
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/CHANGES CHANGED
@@ -1,3 +1,15 @@
1
+ = 0.15.0 - 2-Aug-2022
2
+ * Update parallel gem to v1.22
3
+
4
+ = 0.14.0 - 25-May-2022
5
+ * Fix undefined method delegate (#418)
6
+ * Remove the deprecated `Microsoft Cloud Deutschland` environment (#417)
7
+ * Fix issue with ActiveSupport 7+ (#419)
8
+
9
+ = 0.13.1 - 16-Feb-2022
10
+ * Fix issue with ActiveSupport 7+ (#415)
11
+ * Switch to GitHub Actions (#414)
12
+
1
13
  = 0.11.0 - 20-Apr-2021
2
14
  * Modify the VirtualMachineService#get method to include instance view
3
15
  information
data/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  ## Description
2
2
 
3
- [![Join the chat at https://gitter.im/ManageIQ/azure-armrest](https://badges.gitter.im/ManageIQ/azure-armrest.svg)](https://gitter.im/ManageIQ/azure-armrest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
-
5
3
  A Ruby interface for Azure using the new REST API.
6
4
 
7
5
  [![Gem Version](https://badge.fury.io/rb/azure-armrest.svg)](http://badge.fury.io/rb/azure-armrest)
8
- [![Build Status](https://travis-ci.org/ManageIQ/azure-armrest.svg)](https://travis-ci.org/ManageIQ/azure-armrest)
6
+ [![CI](https://github.com/ManageIQ/azure-armrest/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/azure-armrest/actions/workflows/ci.yaml)
9
7
  [![Code Climate](https://codeclimate.com/github/ManageIQ/azure-armrest/badges/gpa.svg)](https://codeclimate.com/github/ManageIQ/azure-armrest)
10
8
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/azure-armrest/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/azure-armrest/coverage)
11
- [![Security](https://hakiri.io/github/ManageIQ/azure-armrest/master.svg)](https://hakiri.io/github/ManageIQ/azure-armrest/master)
9
+
10
+ [![Join the chat at https://gitter.im/ManageIQ/azure-armrest](https://badges.gitter.im/ManageIQ/azure-armrest.svg)](https://gitter.im/ManageIQ/azure-armrest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
12
11
 
13
12
  ## Synopsis
14
13
 
@@ -17,18 +17,18 @@ different than the current azure gem, which uses the older (XML) interface
17
17
  behind the scenes.
18
18
  EOF
19
19
 
20
- spec.add_dependency 'activesupport', '>= 4.2.2'
21
- spec.add_dependency 'addressable', '~> 2.8'
22
- spec.add_dependency 'azure-signature', '~> 0.3.0'
23
- spec.add_dependency 'json', '~> 2'
24
- spec.add_dependency 'memoist', '~> 0.15'
25
- spec.add_dependency 'parallel', '~> 1.12.0'
26
- spec.add_dependency 'rest-client', '~> 2.1.0'
20
+ spec.add_dependency "activesupport", ">= 4.2.2"
21
+ spec.add_dependency "addressable", "~> 2.8"
22
+ spec.add_dependency "azure-signature", "~> 0.3.0"
23
+ spec.add_dependency "json", "~> 2"
24
+ spec.add_dependency "memoist", "~> 0.15"
25
+ spec.add_dependency "parallel", "~> 1.22"
26
+ spec.add_dependency "rest-client", "~> 2.1.0"
27
27
 
28
- spec.add_development_dependency 'bundler'
29
- spec.add_development_dependency 'manageiq-style'
30
- spec.add_development_dependency 'rake'
31
- spec.add_development_dependency 'rspec', '~> 3.0'
32
- spec.add_development_dependency 'simplecov'
33
- spec.add_development_dependency 'timecop', '~> 0.7'
28
+ spec.add_development_dependency "bundler"
29
+ spec.add_development_dependency "manageiq-style"
30
+ spec.add_development_dependency "rake"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
33
+ spec.add_development_dependency "timecop", "~> 0.7"
34
34
  end
@@ -1,6 +1,8 @@
1
1
  require 'time'
2
+ require 'active_support'
2
3
  require 'active_support/core_ext/hash/conversions'
3
4
  require 'active_support/core_ext/hash/keys'
5
+ require 'active_support/core_ext/module/delegation'
4
6
  require_relative 'model/base_model'
5
7
 
6
8
  module Azure
@@ -154,23 +154,6 @@ module Azure
154
154
  :traffic_manager_dns_suffix => 'usgovtrafficmanager.net',
155
155
  )
156
156
 
157
- Germany = new(
158
- :name => 'Germany',
159
- :active_directory_authority => 'https://login.microsoftonline.de/',
160
- :active_directory_resource_id => 'https://management.core.cloudapi.de/',
161
- :gallery_url => 'https://gallery.cloudapi.de/',
162
- :graph_url => 'https://graph.cloudapi.de/',
163
- :graph_api_version => '1.6',
164
- :key_vault_dns_suffix => 'vault.microsoftazure.de',
165
- :key_vault_service_resource_id => 'https://vault.microsoftazure.de',
166
- :publish_settings_file_url => 'https://manage.microsoftazure.de/publishsettings/index',
167
- :resource_manager_url => 'https://management.microsoftazure.de/',
168
- :service_management_url => 'https://management.core.cloudapi.de/',
169
- :sql_database_dns_suffix => 'database.cloudapi.de',
170
- :storage_suffix => 'core.cloudapi.de',
171
- :traffic_manager_dns_suffix => 'azuretrafficmanager.de'
172
- )
173
-
174
157
  China = new(
175
158
  :name => 'China',
176
159
  :active_directory_authority => 'https://login.chinacloudapi.cn',
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/string/inflections'
2
3
  require 'pp'
3
4
 
@@ -1,4 +1,5 @@
1
1
  require 'azure-signature'
2
+ require 'active_support'
2
3
  require 'active_support/core_ext/hash/conversions'
3
4
 
4
5
  module Azure
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/hash/conversions'
2
3
 
3
4
  module Azure
@@ -1,6 +1,6 @@
1
1
  module Azure
2
2
  module Armrest
3
3
  # The version of the azure-armrest library.
4
- VERSION = '0.13.0'.freeze
4
+ VERSION = '0.15.0'.freeze
5
5
  end
6
6
  end
data/lib/azure/armrest.rb CHANGED
@@ -3,6 +3,7 @@ require 'json'
3
3
  require 'addressable'
4
4
  require 'parallel'
5
5
  require 'memoist'
6
+ require 'active_support'
6
7
  require 'active_support/core_ext/hash'
7
8
 
8
9
  # The Azure module serves as a namespace.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-08-11 00:00:00.000000000 Z
14
+ date: 2022-08-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -89,14 +89,14 @@ dependencies:
89
89
  requirements:
90
90
  - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: 1.12.0
92
+ version: '1.22'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: 1.12.0
99
+ version: '1.22'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: rest-client
102
102
  requirement: !ruby/object:Gem::Requirement
@@ -173,14 +173,14 @@ dependencies:
173
173
  requirements:
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: '0'
176
+ version: 0.21.2
177
177
  type: :development
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
- version: '0'
183
+ version: 0.21.2
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: timecop
186
186
  requirement: !ruby/object:Gem::Requirement
@@ -209,12 +209,13 @@ extensions: []
209
209
  extra_rdoc_files: []
210
210
  files:
211
211
  - ".codeclimate.yml"
212
+ - ".github/workflows/ci.yaml"
212
213
  - ".gitignore"
213
214
  - ".rspec"
214
215
  - ".rubocop.yml"
215
216
  - ".rubocop_cc.yml"
216
217
  - ".rubocop_local.yml"
217
- - ".travis.yml"
218
+ - ".whitesource"
218
219
  - CHANGES
219
220
  - Gemfile
220
221
  - LICENSE
@@ -298,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
299
  - !ruby/object:Gem::Version
299
300
  version: '0'
300
301
  requirements: []
301
- rubygems_version: 3.2.5
302
+ rubygems_version: 3.3.15
302
303
  signing_key:
303
304
  specification_version: 4
304
305
  summary: An interface for ARM/JSON Azure REST API
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - "2.5.7"
5
- - "2.6.5"
6
- - ruby-head
7
- - jruby-head
8
- matrix:
9
- allow_failures:
10
- - rvm: ruby-head
11
- - rvm: jruby-head
12
- fast_finish: true
13
- before_script:
14
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15
- - chmod +x ./cc-test-reporter
16
- - ./cc-test-reporter before-build
17
- after_script:
18
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT