openapi_okta_ip_ranges 1.0.0 → 1.1.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/Gemfile.lock +92 -23
- data/README.md +11 -11
- data/bin/byebug +2 -15
- data/bin/coderay +2 -15
- data/bin/htmldiff +2 -15
- data/bin/ldiff +2 -15
- data/bin/pry +2 -15
- data/bin/racc +2 -15
- data/bin/rake +2 -15
- data/bin/rspec +2 -15
- data/bin/rubocop +2 -15
- data/bin/ruby-parse +2 -15
- data/bin/ruby-rewrite +2 -15
- data/docs/DefaultApi.md +4 -4
- data/docs/IpRangesJsonGet200ResponseValue.md +2 -2
- data/lib/openapi_okta_ip_ranges/api/default_api.rb +3 -3
- data/lib/openapi_okta_ip_ranges/api_client.rb +17 -14
- data/lib/openapi_okta_ip_ranges/api_error.rb +3 -3
- data/lib/openapi_okta_ip_ranges/api_model_base.rb +88 -0
- data/lib/openapi_okta_ip_ranges/configuration.rb +3 -3
- data/lib/openapi_okta_ip_ranges/models/ip_ranges_json_get200_response_value.rb +14 -81
- data/lib/openapi_okta_ip_ranges/version.rb +4 -4
- data/lib/openapi_okta_ip_ranges.rb +5 -4
- data/openapi_okta_ip_ranges.gemspec +3 -3
- data/spec/api/default_api_spec.rb +5 -5
- data/spec/models/ip_ranges_json_get200_response_value_spec.rb +6 -6
- data/spec/spec_helper.rb +2 -2
- metadata +7 -7
- data/bin/bundle +0 -114
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff5f2bb90856adf71c3efb34851bdeaf9e1ce5a77348a22b0af491c0bbfa19ca
|
|
4
|
+
data.tar.gz: a660a4f2f0a780def042c32f1952b5f144ceb375ef7a667dadb6e75100e358f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1b82df86bcb86276873863bfd4213442e00e69651d1a7d9714a6b460f248c051461fc5127d302754d8afd41f8744198dd89921282ecaffe74d9a49a444ba393
|
|
7
|
+
data.tar.gz: b606cee59690c115dde3c504ab96749a3dfdcd4a76026e05e5d7e3f61650f83cd9b5b5ae55bb9e050df4ff42fd97d5d13b5cedda8cc1c013869c77604242c4c5
|
data/Gemfile.lock
CHANGED
|
@@ -1,49 +1,66 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
openapi_okta_ip_ranges (1.
|
|
4
|
+
openapi_okta_ip_ranges (1.1.0)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
ast (2.4.
|
|
11
|
-
byebug (
|
|
10
|
+
ast (2.4.3)
|
|
11
|
+
byebug (13.0.0)
|
|
12
|
+
reline (>= 0.6.0)
|
|
12
13
|
coderay (1.1.3)
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
date (3.5.1)
|
|
15
|
+
diff-lcs (1.6.2)
|
|
16
|
+
ethon (0.15.0)
|
|
15
17
|
ffi (>= 1.15.0)
|
|
16
|
-
ffi (1.17.
|
|
18
|
+
ffi (1.17.3)
|
|
19
|
+
ffi (1.17.3-aarch64-linux-gnu)
|
|
20
|
+
ffi (1.17.3-aarch64-linux-musl)
|
|
21
|
+
ffi (1.17.3-arm-linux-gnu)
|
|
22
|
+
ffi (1.17.3-arm-linux-musl)
|
|
23
|
+
ffi (1.17.3-arm64-darwin)
|
|
24
|
+
ffi (1.17.3-x86-linux-gnu)
|
|
25
|
+
ffi (1.17.3-x86-linux-musl)
|
|
26
|
+
ffi (1.17.3-x86_64-darwin)
|
|
27
|
+
ffi (1.17.3-x86_64-linux-gnu)
|
|
28
|
+
ffi (1.17.3-x86_64-linux-musl)
|
|
29
|
+
io-console (0.8.2)
|
|
17
30
|
jaro_winkler (1.5.6)
|
|
18
31
|
method_source (1.1.0)
|
|
19
|
-
parallel (1.
|
|
20
|
-
parser (3.3.
|
|
32
|
+
parallel (1.27.0)
|
|
33
|
+
parser (3.3.10.1)
|
|
21
34
|
ast (~> 2.4.1)
|
|
22
35
|
racc
|
|
23
|
-
pry (0.
|
|
36
|
+
pry (0.16.0)
|
|
24
37
|
coderay (~> 1.1)
|
|
25
38
|
method_source (~> 1.0)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
reline (>= 0.6.0)
|
|
40
|
+
pry-byebug (3.12.0)
|
|
41
|
+
byebug (~> 13.0)
|
|
42
|
+
pry (>= 0.13, < 0.17)
|
|
43
|
+
psych (5.3.1)
|
|
44
|
+
date
|
|
30
45
|
stringio
|
|
31
46
|
racc (1.8.1)
|
|
32
47
|
rainbow (3.1.1)
|
|
33
48
|
rake (13.0.6)
|
|
34
|
-
|
|
49
|
+
reline (0.6.3)
|
|
50
|
+
io-console (~> 0.5)
|
|
51
|
+
rspec (3.13.2)
|
|
35
52
|
rspec-core (~> 3.13.0)
|
|
36
53
|
rspec-expectations (~> 3.13.0)
|
|
37
54
|
rspec-mocks (~> 3.13.0)
|
|
38
|
-
rspec-core (3.13.
|
|
55
|
+
rspec-core (3.13.6)
|
|
39
56
|
rspec-support (~> 3.13.0)
|
|
40
|
-
rspec-expectations (3.13.
|
|
57
|
+
rspec-expectations (3.13.5)
|
|
41
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
42
59
|
rspec-support (~> 3.13.0)
|
|
43
|
-
rspec-mocks (3.13.
|
|
60
|
+
rspec-mocks (3.13.7)
|
|
44
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
62
|
rspec-support (~> 3.13.0)
|
|
46
|
-
rspec-support (3.13.
|
|
63
|
+
rspec-support (3.13.6)
|
|
47
64
|
rubocop (0.66.0)
|
|
48
65
|
jaro_winkler (~> 1.5.1)
|
|
49
66
|
parallel (~> 1.10)
|
|
@@ -53,13 +70,23 @@ GEM
|
|
|
53
70
|
ruby-progressbar (~> 1.7)
|
|
54
71
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
55
72
|
ruby-progressbar (1.13.0)
|
|
56
|
-
stringio (3.
|
|
57
|
-
typhoeus (1.
|
|
58
|
-
ethon (>= 0.9.0)
|
|
73
|
+
stringio (3.2.0)
|
|
74
|
+
typhoeus (1.5.0)
|
|
75
|
+
ethon (>= 0.9.0, < 0.16.0)
|
|
59
76
|
unicode-display_width (1.5.0)
|
|
60
77
|
|
|
61
78
|
PLATFORMS
|
|
62
|
-
|
|
79
|
+
aarch64-linux-gnu
|
|
80
|
+
aarch64-linux-musl
|
|
81
|
+
arm-linux-gnu
|
|
82
|
+
arm-linux-musl
|
|
83
|
+
arm64-darwin
|
|
84
|
+
ruby
|
|
85
|
+
x86-linux-gnu
|
|
86
|
+
x86-linux-musl
|
|
87
|
+
x86_64-darwin
|
|
88
|
+
x86_64-linux-gnu
|
|
89
|
+
x86_64-linux-musl
|
|
63
90
|
|
|
64
91
|
DEPENDENCIES
|
|
65
92
|
openapi_okta_ip_ranges!
|
|
@@ -68,5 +95,47 @@ DEPENDENCIES
|
|
|
68
95
|
rspec (~> 3.6, >= 3.6.0)
|
|
69
96
|
rubocop (~> 0.66.0)
|
|
70
97
|
|
|
98
|
+
CHECKSUMS
|
|
99
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
100
|
+
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
101
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
102
|
+
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
|
103
|
+
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
104
|
+
ethon (0.15.0) sha256=0809805a035bc10f54162ca99f15ded49e428e0488bcfe1c08c821e18261a74d
|
|
105
|
+
ffi (1.17.3) sha256=0e9f39f7bb3934f77ad6feab49662be77e87eedcdeb2a3f5c0234c2938563d4c
|
|
106
|
+
ffi (1.17.3-aarch64-linux-gnu) sha256=28ad573df26560f0aedd8a90c3371279a0b2bd0b4e834b16a2baa10bd7a97068
|
|
107
|
+
ffi (1.17.3-aarch64-linux-musl) sha256=020b33b76775b1abacc3b7d86b287cef3251f66d747092deec592c7f5df764b2
|
|
108
|
+
ffi (1.17.3-arm-linux-gnu) sha256=5bd4cea83b68b5ec0037f99c57d5ce2dd5aa438f35decc5ef68a7d085c785668
|
|
109
|
+
ffi (1.17.3-arm-linux-musl) sha256=0d7626bb96265f9af78afa33e267d71cfef9d9a8eb8f5525344f8da6c7d76053
|
|
110
|
+
ffi (1.17.3-arm64-darwin) sha256=0c690555d4cee17a7f07c04d59df39b2fba74ec440b19da1f685c6579bb0717f
|
|
111
|
+
ffi (1.17.3-x86-linux-gnu) sha256=868a88fcaf5186c3a46b7c7c2b2c34550e1e61a405670ab23f5b6c9971529089
|
|
112
|
+
ffi (1.17.3-x86-linux-musl) sha256=f0286aa6ef40605cf586e61406c446de34397b85dbb08cc99fdaddaef8343945
|
|
113
|
+
ffi (1.17.3-x86_64-darwin) sha256=1f211811eb5cfaa25998322cdd92ab104bfbd26d1c4c08471599c511f2c00bb5
|
|
114
|
+
ffi (1.17.3-x86_64-linux-gnu) sha256=3746b01f677aae7b16dc1acb7cb3cc17b3e35bdae7676a3f568153fb0e2c887f
|
|
115
|
+
ffi (1.17.3-x86_64-linux-musl) sha256=086b221c3a68320b7564066f46fed23449a44f7a1935f1fe5a245bd89d9aea56
|
|
116
|
+
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
117
|
+
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
118
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
119
|
+
openapi_okta_ip_ranges (1.1.0)
|
|
120
|
+
parallel (1.27.0) sha256=4ac151e1806b755fb4e2dc2332cbf0e54f2e24ba821ff2d3dcf86bf6dc4ae130
|
|
121
|
+
parser (3.3.10.1) sha256=06f6a725d2cd91e5e7f2b7c32ba143631e1f7c8ae2fb918fc4cebec187e6a688
|
|
122
|
+
pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
|
|
123
|
+
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
124
|
+
psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
|
|
125
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
126
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
127
|
+
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
128
|
+
reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
|
|
129
|
+
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
130
|
+
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
131
|
+
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
132
|
+
rspec-mocks (3.13.7) sha256=0979034e64b1d7a838aaaddf12bf065ea4dc40ef3d4c39f01f93ae2c66c62b1c
|
|
133
|
+
rspec-support (3.13.6) sha256=2e8de3702427eab064c9352fe74488cc12a1bfae887ad8b91cba480ec9f8afb2
|
|
134
|
+
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
135
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
136
|
+
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
137
|
+
typhoeus (1.5.0) sha256=120b67ed1ef515e6c0e938176db880f15b0916f038e78ce2a66290f3f1de3e3b
|
|
138
|
+
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
139
|
+
|
|
71
140
|
BUNDLED WITH
|
|
72
|
-
|
|
141
|
+
4.0.4
|
data/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# openapi_okta_ip_ranges
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
OpenApiOktaIpRangesClient - the Ruby gem for the OpenAPI Okta IP Ranges
|
|
4
4
|
|
|
5
5
|
OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
6
6
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
|
-
- API version: 1.
|
|
10
|
-
- Package version: 1.
|
|
11
|
-
- Generator version: 7.
|
|
9
|
+
- API version: 1.1.0
|
|
10
|
+
- Package version: 1.1.0
|
|
11
|
+
- Generator version: 7.18.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://github.com/oapicf/openapi-okta-ip-ranges](https://github.com/oapicf/openapi-okta-ip-ranges)
|
|
14
14
|
|
|
@@ -25,16 +25,16 @@ gem build openapi_okta_ip_ranges.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./openapi_okta_ip_ranges-1.
|
|
28
|
+
gem install ./openapi_okta_ip_ranges-1.1.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./openapi_okta_ip_ranges-1.
|
|
31
|
+
(for development, run `gem install --dev ./openapi_okta_ip_ranges-1.1.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'openapi_okta_ip_ranges', '~> 1.
|
|
37
|
+
gem 'openapi_okta_ip_ranges', '~> 1.1.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -58,13 +58,13 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
|
58
58
|
# Load the gem
|
|
59
59
|
require 'openapi_okta_ip_ranges'
|
|
60
60
|
|
|
61
|
-
api_instance =
|
|
61
|
+
api_instance = OpenApiOktaIpRangesClient::DefaultApi.new
|
|
62
62
|
|
|
63
63
|
begin
|
|
64
64
|
#Retrieve Okta IP ranges
|
|
65
65
|
result = api_instance.ip_ranges_json_get
|
|
66
66
|
p result
|
|
67
|
-
rescue
|
|
67
|
+
rescue OpenApiOktaIpRangesClient::ApiError => e
|
|
68
68
|
puts "Exception when calling DefaultApi->ip_ranges_json_get: #{e}"
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -76,12 +76,12 @@ All URIs are relative to *https://s3.amazonaws.com/okta-ip-ranges*
|
|
|
76
76
|
|
|
77
77
|
Class | Method | HTTP request | Description
|
|
78
78
|
------------ | ------------- | ------------- | -------------
|
|
79
|
-
*
|
|
79
|
+
*OpenApiOktaIpRangesClient::DefaultApi* | [**ip_ranges_json_get**](docs/DefaultApi.md#ip_ranges_json_get) | **GET** /ip_ranges.json | Retrieve Okta IP ranges
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
## Documentation for Models
|
|
83
83
|
|
|
84
|
-
- [
|
|
84
|
+
- [OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue](docs/IpRangesJsonGet200ResponseValue.md)
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
## Documentation for Authorization
|
data/bin/byebug
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/coderay
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/htmldiff
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/ldiff
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/pry
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/racc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/rake
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/rspec
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/rubocop
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/ruby-parse
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/bin/ruby-rewrite
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.2
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
# this file is here to facilitate running it.
|
|
9
9
|
#
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
25
12
|
|
|
26
13
|
require "rubygems"
|
|
27
14
|
require "bundler/setup"
|
data/docs/DefaultApi.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OpenApiOktaIpRangesClient::DefaultApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://s3.amazonaws.com/okta-ip-ranges*
|
|
4
4
|
|
|
@@ -21,13 +21,13 @@ Returns IP ranges organized by regional cell names.
|
|
|
21
21
|
require 'time'
|
|
22
22
|
require 'openapi_okta_ip_ranges'
|
|
23
23
|
|
|
24
|
-
api_instance =
|
|
24
|
+
api_instance = OpenApiOktaIpRangesClient::DefaultApi.new
|
|
25
25
|
|
|
26
26
|
begin
|
|
27
27
|
# Retrieve Okta IP ranges
|
|
28
28
|
result = api_instance.ip_ranges_json_get
|
|
29
29
|
p result
|
|
30
|
-
rescue
|
|
30
|
+
rescue OpenApiOktaIpRangesClient::ApiError => e
|
|
31
31
|
puts "Error when calling DefaultApi->ip_ranges_json_get: #{e}"
|
|
32
32
|
end
|
|
33
33
|
```
|
|
@@ -45,7 +45,7 @@ begin
|
|
|
45
45
|
p status_code # => 2xx
|
|
46
46
|
p headers # => { ... }
|
|
47
47
|
p data # => <Hash<String, IpRangesJsonGet200ResponseValue>>
|
|
48
|
-
rescue
|
|
48
|
+
rescue OpenApiOktaIpRangesClient::ApiError => e
|
|
49
49
|
puts "Error when calling DefaultApi->ip_ranges_json_get_with_http_info: #{e}"
|
|
50
50
|
end
|
|
51
51
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'openapi_okta_ip_ranges'
|
|
13
13
|
|
|
14
|
-
instance =
|
|
14
|
+
instance = OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue.new(
|
|
15
15
|
ip_ranges: null
|
|
16
16
|
)
|
|
17
17
|
```
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
|
-
module
|
|
15
|
+
module OpenApiOktaIpRangesClient
|
|
16
16
|
class DefaultApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'time'
|
|
|
18
18
|
require 'typhoeus'
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
module
|
|
21
|
+
module OpenApiOktaIpRangesClient
|
|
22
22
|
class ApiClient
|
|
23
23
|
# The Configuration object holding settings to be used in the API client.
|
|
24
24
|
attr_accessor :config
|
|
@@ -49,7 +49,8 @@ module OpenApiIplocationClient
|
|
|
49
49
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
|
50
50
|
def call_api(http_method, path, opts = {})
|
|
51
51
|
request = build_request(http_method, path, opts)
|
|
52
|
-
tempfile =
|
|
52
|
+
tempfile = nil
|
|
53
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
|
53
54
|
response = request.run
|
|
54
55
|
|
|
55
56
|
if @config.debugging
|
|
@@ -187,19 +188,17 @@ module OpenApiIplocationClient
|
|
|
187
188
|
chunk.force_encoding(encoding)
|
|
188
189
|
tempfile.write(chunk)
|
|
189
190
|
end
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
request.on_complete do
|
|
192
|
+
if !tempfile
|
|
193
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
194
|
+
end
|
|
193
195
|
tempfile.close
|
|
194
196
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
|
195
197
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
|
196
198
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
|
197
199
|
"explicitly with `tempfile.delete`"
|
|
198
|
-
|
|
199
|
-
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
200
|
+
yield tempfile if block_given?
|
|
200
201
|
end
|
|
201
|
-
|
|
202
|
-
tempfile
|
|
203
202
|
end
|
|
204
203
|
|
|
205
204
|
# Check if the given MIME is a JSON MIME.
|
|
@@ -278,9 +277,13 @@ module OpenApiIplocationClient
|
|
|
278
277
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
|
279
278
|
end
|
|
280
279
|
else
|
|
281
|
-
# models (e.g. Pet) or oneOf
|
|
282
|
-
klass =
|
|
283
|
-
klass.respond_to?(:openapi_one_of)
|
|
280
|
+
# models (e.g. Pet) or oneOf/anyOf
|
|
281
|
+
klass = OpenApiOktaIpRangesClient.const_get(return_type)
|
|
282
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of)
|
|
283
|
+
klass.build(data)
|
|
284
|
+
else
|
|
285
|
+
klass.build_from_hash(data)
|
|
286
|
+
end
|
|
284
287
|
end
|
|
285
288
|
end
|
|
286
289
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
module
|
|
13
|
+
module OpenApiOktaIpRangesClient
|
|
14
14
|
class ApiError < StandardError
|
|
15
15
|
attr_reader :code, :response_headers, :response_body
|
|
16
16
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OpenAPI Okta IP Ranges
|
|
3
|
+
|
|
4
|
+
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module OpenApiOktaIpRangesClient
|
|
14
|
+
class ApiModelBase
|
|
15
|
+
# Deserializes the data based on type
|
|
16
|
+
# @param string type Data type
|
|
17
|
+
# @param string value Value to be deserialized
|
|
18
|
+
# @return [Object] Deserialized data
|
|
19
|
+
def self._deserialize(type, value)
|
|
20
|
+
case type.to_sym
|
|
21
|
+
when :Time
|
|
22
|
+
Time.parse(value)
|
|
23
|
+
when :Date
|
|
24
|
+
Date.parse(value)
|
|
25
|
+
when :String
|
|
26
|
+
value.to_s
|
|
27
|
+
when :Integer
|
|
28
|
+
value.to_i
|
|
29
|
+
when :Float
|
|
30
|
+
value.to_f
|
|
31
|
+
when :Boolean
|
|
32
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
33
|
+
true
|
|
34
|
+
else
|
|
35
|
+
false
|
|
36
|
+
end
|
|
37
|
+
when :Object
|
|
38
|
+
# generic object (usually a Hash), return directly
|
|
39
|
+
value
|
|
40
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
42
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
44
|
+
k_type = Regexp.last_match[:k_type]
|
|
45
|
+
v_type = Regexp.last_match[:v_type]
|
|
46
|
+
{}.tap do |hash|
|
|
47
|
+
value.each do |k, v|
|
|
48
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
else # model
|
|
52
|
+
# models (e.g. Pet) or oneOf
|
|
53
|
+
klass = OpenApiOktaIpRangesClient.const_get(type)
|
|
54
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns the string representation of the object
|
|
59
|
+
# @return [String] String presentation of the object
|
|
60
|
+
def to_s
|
|
61
|
+
to_hash.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
65
|
+
# @return [Hash] Returns the object in the form of hash
|
|
66
|
+
def to_body
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Outputs non-array value in the form of hash
|
|
71
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
72
|
+
# @param [Object] value Any valid value
|
|
73
|
+
# @return [Hash] Returns the value in the form of hash
|
|
74
|
+
def _to_hash(value)
|
|
75
|
+
if value.is_a?(Array)
|
|
76
|
+
value.compact.map { |v| _to_hash(v) }
|
|
77
|
+
elsif value.is_a?(Hash)
|
|
78
|
+
{}.tap do |hash|
|
|
79
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
80
|
+
end
|
|
81
|
+
elsif value.respond_to? :to_hash
|
|
82
|
+
value.to_hash
|
|
83
|
+
else
|
|
84
|
+
value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
module
|
|
13
|
+
module OpenApiOktaIpRangesClient
|
|
14
14
|
class Configuration
|
|
15
15
|
# Defines url scheme
|
|
16
16
|
attr_accessor :scheme
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module OpenApiOktaIpRangesClient
|
|
17
17
|
# Object containing IP ranges for a specific regional cell
|
|
18
|
-
class IpRangesJsonGet200ResponseValue
|
|
18
|
+
class IpRangesJsonGet200ResponseValue < ApiModelBase
|
|
19
19
|
attr_accessor :ip_ranges
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -25,9 +25,14 @@ module OpenApiIplocationClient
|
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
28
33
|
# Returns all the JSON keys this model knows about
|
|
29
34
|
def self.acceptable_attributes
|
|
30
|
-
|
|
35
|
+
acceptable_attribute_map.values
|
|
31
36
|
end
|
|
32
37
|
|
|
33
38
|
# Attribute type mapping.
|
|
@@ -47,13 +52,14 @@ module OpenApiIplocationClient
|
|
|
47
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
53
|
def initialize(attributes = {})
|
|
49
54
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue` initialize method"
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
54
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
-
if (!
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
57
63
|
end
|
|
58
64
|
h[k.to_sym] = v
|
|
59
65
|
}
|
|
@@ -123,61 +129,6 @@ module OpenApiIplocationClient
|
|
|
123
129
|
new(transformed_hash)
|
|
124
130
|
end
|
|
125
131
|
|
|
126
|
-
# Deserializes the data based on type
|
|
127
|
-
# @param string type Data type
|
|
128
|
-
# @param string value Value to be deserialized
|
|
129
|
-
# @return [Object] Deserialized data
|
|
130
|
-
def self._deserialize(type, value)
|
|
131
|
-
case type.to_sym
|
|
132
|
-
when :Time
|
|
133
|
-
Time.parse(value)
|
|
134
|
-
when :Date
|
|
135
|
-
Date.parse(value)
|
|
136
|
-
when :String
|
|
137
|
-
value.to_s
|
|
138
|
-
when :Integer
|
|
139
|
-
value.to_i
|
|
140
|
-
when :Float
|
|
141
|
-
value.to_f
|
|
142
|
-
when :Boolean
|
|
143
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
144
|
-
true
|
|
145
|
-
else
|
|
146
|
-
false
|
|
147
|
-
end
|
|
148
|
-
when :Object
|
|
149
|
-
# generic object (usually a Hash), return directly
|
|
150
|
-
value
|
|
151
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
152
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
153
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
154
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
155
|
-
k_type = Regexp.last_match[:k_type]
|
|
156
|
-
v_type = Regexp.last_match[:v_type]
|
|
157
|
-
{}.tap do |hash|
|
|
158
|
-
value.each do |k, v|
|
|
159
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
else # model
|
|
163
|
-
# models (e.g. Pet) or oneOf
|
|
164
|
-
klass = OpenApiIplocationClient.const_get(type)
|
|
165
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
# Returns the string representation of the object
|
|
170
|
-
# @return [String] String presentation of the object
|
|
171
|
-
def to_s
|
|
172
|
-
to_hash.to_s
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
176
|
-
# @return [Hash] Returns the object in the form of hash
|
|
177
|
-
def to_body
|
|
178
|
-
to_hash
|
|
179
|
-
end
|
|
180
|
-
|
|
181
132
|
# Returns the object in the form of hash
|
|
182
133
|
# @return [Hash] Returns the object in the form of hash
|
|
183
134
|
def to_hash
|
|
@@ -194,24 +145,6 @@ module OpenApiIplocationClient
|
|
|
194
145
|
hash
|
|
195
146
|
end
|
|
196
147
|
|
|
197
|
-
# Outputs non-array value in the form of hash
|
|
198
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
199
|
-
# @param [Object] value Any valid value
|
|
200
|
-
# @return [Hash] Returns the value in the form of hash
|
|
201
|
-
def _to_hash(value)
|
|
202
|
-
if value.is_a?(Array)
|
|
203
|
-
value.compact.map { |v| _to_hash(v) }
|
|
204
|
-
elsif value.is_a?(Hash)
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
207
|
-
end
|
|
208
|
-
elsif value.respond_to? :to_hash
|
|
209
|
-
value.to_hash
|
|
210
|
-
else
|
|
211
|
-
value
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
148
|
end
|
|
216
149
|
|
|
217
150
|
end
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
module
|
|
14
|
-
VERSION = '1.
|
|
13
|
+
module OpenApiOktaIpRangesClient
|
|
14
|
+
VERSION = '1.1.0'
|
|
15
15
|
end
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'openapi_okta_ip_ranges/api_client'
|
|
15
15
|
require 'openapi_okta_ip_ranges/api_error'
|
|
16
|
+
require 'openapi_okta_ip_ranges/api_model_base'
|
|
16
17
|
require 'openapi_okta_ip_ranges/version'
|
|
17
18
|
require 'openapi_okta_ip_ranges/configuration'
|
|
18
19
|
|
|
@@ -22,10 +23,10 @@ require 'openapi_okta_ip_ranges/models/ip_ranges_json_get200_response_value'
|
|
|
22
23
|
# APIs
|
|
23
24
|
require 'openapi_okta_ip_ranges/api/default_api'
|
|
24
25
|
|
|
25
|
-
module
|
|
26
|
+
module OpenApiOktaIpRangesClient
|
|
26
27
|
class << self
|
|
27
28
|
# Customize default settings for the SDK using block.
|
|
28
|
-
#
|
|
29
|
+
# OpenApiOktaIpRangesClient.configure do |config|
|
|
29
30
|
# config.username = "xxx"
|
|
30
31
|
# config.password = "xxx"
|
|
31
32
|
# end
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.1.0
|
|
9
9
|
Contact: blah+oapicf@cliffano.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
|
-
Generator version: 7.
|
|
11
|
+
Generator version: 7.18.0
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ require "openapi_okta_ip_ranges/version"
|
|
|
17
17
|
|
|
18
18
|
Gem::Specification.new do |s|
|
|
19
19
|
s.name = "openapi_okta_ip_ranges"
|
|
20
|
-
s.version =
|
|
20
|
+
s.version = OpenApiOktaIpRangesClient::VERSION
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["OpenAPI Clients Factory"]
|
|
23
23
|
s.email = ["blah+oapicf@cliffano.com"]
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for
|
|
16
|
+
# Unit tests for OpenApiOktaIpRangesClient::DefaultApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
19
|
describe 'DefaultApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance =
|
|
22
|
+
@api_instance = OpenApiOktaIpRangesClient::DefaultApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
@@ -28,7 +28,7 @@ describe 'DefaultApi' do
|
|
|
28
28
|
|
|
29
29
|
describe 'test an instance of DefaultApi' do
|
|
30
30
|
it 'should create an instance of DefaultApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenApiOktaIpRangesClient::DefaultApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue do
|
|
21
|
+
#let(:instance) { OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of IpRangesJsonGet200ResponseValue' do
|
|
24
24
|
it 'should create an instance of IpRangesJsonGet200ResponseValue' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(
|
|
26
|
+
#expect(instance).to be_instance_of(OpenApiOktaIpRangesClient::IpRangesJsonGet200ResponseValue)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI specification and a set of generated API clients for Okta IP Ranges
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openapi_okta_ip_ranges
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI Clients Factory
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -62,7 +62,6 @@ files:
|
|
|
62
62
|
- Gemfile.lock
|
|
63
63
|
- README.md
|
|
64
64
|
- Rakefile
|
|
65
|
-
- bin/bundle
|
|
66
65
|
- bin/byebug
|
|
67
66
|
- bin/coderay
|
|
68
67
|
- bin/htmldiff
|
|
@@ -81,6 +80,7 @@ files:
|
|
|
81
80
|
- lib/openapi_okta_ip_ranges/api/default_api.rb
|
|
82
81
|
- lib/openapi_okta_ip_ranges/api_client.rb
|
|
83
82
|
- lib/openapi_okta_ip_ranges/api_error.rb
|
|
83
|
+
- lib/openapi_okta_ip_ranges/api_model_base.rb
|
|
84
84
|
- lib/openapi_okta_ip_ranges/configuration.rb
|
|
85
85
|
- lib/openapi_okta_ip_ranges/models/ip_ranges_json_get200_response_value.rb
|
|
86
86
|
- lib/openapi_okta_ip_ranges/version.rb
|
|
@@ -92,7 +92,7 @@ homepage: https://github.com/oapicf/openapi-okta-ip-ranges
|
|
|
92
92
|
licenses:
|
|
93
93
|
- MPL-2.0
|
|
94
94
|
metadata: {}
|
|
95
|
-
post_install_message:
|
|
95
|
+
post_install_message:
|
|
96
96
|
rdoc_options: []
|
|
97
97
|
require_paths:
|
|
98
98
|
- lib
|
|
@@ -107,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
107
107
|
- !ruby/object:Gem::Version
|
|
108
108
|
version: '0'
|
|
109
109
|
requirements: []
|
|
110
|
-
rubygems_version: 3.
|
|
111
|
-
signing_key:
|
|
110
|
+
rubygems_version: 3.4.20
|
|
111
|
+
signing_key:
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: OpenAPI Okta IP Ranges Ruby Gem
|
|
114
114
|
test_files:
|
data/bin/bundle
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.0
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# This file was generated by Bundler.
|
|
6
|
-
#
|
|
7
|
-
# The application 'bundle' is installed as part of a gem, and
|
|
8
|
-
# this file is here to facilitate running it.
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
require "rubygems"
|
|
12
|
-
|
|
13
|
-
m = Module.new do
|
|
14
|
-
module_function
|
|
15
|
-
|
|
16
|
-
def invoked_as_script?
|
|
17
|
-
File.expand_path($0) == File.expand_path(__FILE__)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def env_var_version
|
|
21
|
-
ENV["BUNDLER_VERSION"]
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def cli_arg_version
|
|
25
|
-
return unless invoked_as_script? # don't want to hijack other binstubs
|
|
26
|
-
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
|
|
27
|
-
bundler_version = nil
|
|
28
|
-
update_index = nil
|
|
29
|
-
ARGV.each_with_index do |a, i|
|
|
30
|
-
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
|
|
31
|
-
bundler_version = a
|
|
32
|
-
end
|
|
33
|
-
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
|
|
34
|
-
bundler_version = $1
|
|
35
|
-
update_index = i
|
|
36
|
-
end
|
|
37
|
-
bundler_version
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def gemfile
|
|
41
|
-
gemfile = ENV["BUNDLE_GEMFILE"]
|
|
42
|
-
return gemfile if gemfile && !gemfile.empty?
|
|
43
|
-
|
|
44
|
-
File.expand_path("../../Gemfile", __FILE__)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def lockfile
|
|
48
|
-
lockfile =
|
|
49
|
-
case File.basename(gemfile)
|
|
50
|
-
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
|
|
51
|
-
else "#{gemfile}.lock"
|
|
52
|
-
end
|
|
53
|
-
File.expand_path(lockfile)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def lockfile_version
|
|
57
|
-
return unless File.file?(lockfile)
|
|
58
|
-
lockfile_contents = File.read(lockfile)
|
|
59
|
-
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
|
|
60
|
-
Regexp.last_match(1)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
def bundler_version
|
|
64
|
-
@bundler_version ||=
|
|
65
|
-
env_var_version || cli_arg_version ||
|
|
66
|
-
lockfile_version
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def bundler_requirement
|
|
70
|
-
return "#{Gem::Requirement.default}.a" unless bundler_version
|
|
71
|
-
|
|
72
|
-
bundler_gem_version = Gem::Version.new(bundler_version)
|
|
73
|
-
|
|
74
|
-
requirement = bundler_gem_version.approximate_recommendation
|
|
75
|
-
|
|
76
|
-
return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
|
|
77
|
-
|
|
78
|
-
requirement += ".a" if bundler_gem_version.prerelease?
|
|
79
|
-
|
|
80
|
-
requirement
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def load_bundler!
|
|
84
|
-
ENV["BUNDLE_GEMFILE"] ||= gemfile
|
|
85
|
-
|
|
86
|
-
activate_bundler
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def activate_bundler
|
|
90
|
-
gem_error = activation_error_handling do
|
|
91
|
-
gem "bundler", bundler_requirement
|
|
92
|
-
end
|
|
93
|
-
return if gem_error.nil?
|
|
94
|
-
require_error = activation_error_handling do
|
|
95
|
-
require "bundler/version"
|
|
96
|
-
end
|
|
97
|
-
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
|
|
98
|
-
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
|
|
99
|
-
exit 42
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
def activation_error_handling
|
|
103
|
-
yield
|
|
104
|
-
nil
|
|
105
|
-
rescue StandardError, LoadError => e
|
|
106
|
-
e
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
m.load_bundler!
|
|
111
|
-
|
|
112
|
-
if m.invoked_as_script?
|
|
113
|
-
load Gem.bin_path("bundler", "bundle")
|
|
114
|
-
end
|