openapi_iplocation 1.2.0 → 1.4.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 +52 -48
- data/README.md +6 -6
- data/bin/byebug +1 -1
- data/bin/coderay +1 -1
- data/bin/htmldiff +1 -1
- data/bin/ldiff +1 -1
- data/bin/pry +1 -1
- data/bin/racc +1 -1
- data/bin/rake +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/bin/ruby-parse +1 -1
- data/bin/ruby-rewrite +1 -1
- data/git_push.sh +14 -17
- data/lib/openapi_iplocation/api/default_api.rb +2 -2
- data/lib/openapi_iplocation/api_client.rb +2 -2
- data/lib/openapi_iplocation/api_error.rb +2 -2
- data/lib/openapi_iplocation/api_model_base.rb +2 -2
- data/lib/openapi_iplocation/configuration.rb +2 -2
- data/lib/openapi_iplocation/models/get200_response.rb +23 -10
- data/lib/openapi_iplocation/models/get400_response.rb +23 -10
- data/lib/openapi_iplocation/version.rb +3 -3
- data/lib/openapi_iplocation.rb +2 -2
- data/openapi_iplocation.gemspec +2 -2
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/models/get200_response_spec.rb +2 -2
- data/spec/models/get400_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d85ae915f8624dce921896abec4f25dd10b8f9c09c2c2711c052335d76966f4
|
|
4
|
+
data.tar.gz: 78f21c8a8353ca0e1500f37e93af3aab58feb58a5ba289011af887e485c50f1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14993cb2f90f5ac23caccbe9a709815eefc16b4b6174dc4e4942290a175ed33f8b78af8e658c04cde4c3645d5cf1ed93b74bbf5885f9fab360fa6cd5a10bbf8e
|
|
7
|
+
data.tar.gz: 9053717f922db13c356ba80fe3cadfe76368e67bd841cb882f82b6211571900fa116eee8bbf1d188d4dcad895c3f60c3086a2a3e08eb348a5c84cc9de745ca7e
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
openapi_iplocation (1.
|
|
4
|
+
openapi_iplocation (1.4.0)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -11,42 +11,44 @@ GEM
|
|
|
11
11
|
byebug (13.0.0)
|
|
12
12
|
reline (>= 0.6.0)
|
|
13
13
|
coderay (1.1.3)
|
|
14
|
-
date (3.
|
|
14
|
+
date (3.6.0)
|
|
15
15
|
diff-lcs (1.6.2)
|
|
16
|
-
ethon (0.
|
|
16
|
+
ethon (0.19.1)
|
|
17
17
|
ffi (>= 1.15.0)
|
|
18
|
-
|
|
19
|
-
ffi (1.17.
|
|
20
|
-
ffi (1.17.
|
|
21
|
-
ffi (1.17.
|
|
22
|
-
ffi (1.17.
|
|
23
|
-
ffi (1.17.
|
|
24
|
-
ffi (1.17.
|
|
25
|
-
ffi (1.17.
|
|
26
|
-
ffi (1.17.
|
|
27
|
-
ffi (1.17.
|
|
28
|
-
ffi (1.17.
|
|
29
|
-
|
|
18
|
+
logger
|
|
19
|
+
ffi (1.17.4)
|
|
20
|
+
ffi (1.17.4-aarch64-linux-gnu)
|
|
21
|
+
ffi (1.17.4-aarch64-linux-musl)
|
|
22
|
+
ffi (1.17.4-arm-linux-gnu)
|
|
23
|
+
ffi (1.17.4-arm-linux-musl)
|
|
24
|
+
ffi (1.17.4-arm64-darwin)
|
|
25
|
+
ffi (1.17.4-x86-linux-gnu)
|
|
26
|
+
ffi (1.17.4-x86-linux-musl)
|
|
27
|
+
ffi (1.17.4-x86_64-darwin)
|
|
28
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
29
|
+
ffi (1.17.4-x86_64-linux-musl)
|
|
30
|
+
io-console (0.9.5)
|
|
30
31
|
jaro_winkler (1.5.6)
|
|
32
|
+
logger (1.7.0)
|
|
31
33
|
method_source (1.1.0)
|
|
32
|
-
parallel (1.
|
|
33
|
-
parser (3.3.
|
|
34
|
+
parallel (1.28.0)
|
|
35
|
+
parser (3.3.13.0)
|
|
34
36
|
ast (~> 2.4.1)
|
|
35
37
|
racc
|
|
36
|
-
pry (0.16.
|
|
38
|
+
pry (0.16.1)
|
|
37
39
|
coderay (~> 1.1)
|
|
38
40
|
method_source (~> 1.0)
|
|
39
41
|
reline (>= 0.6.0)
|
|
40
42
|
pry-byebug (3.12.0)
|
|
41
43
|
byebug (~> 13.0)
|
|
42
44
|
pry (>= 0.13, < 0.17)
|
|
43
|
-
psych (5.
|
|
45
|
+
psych (5.5.0)
|
|
44
46
|
date
|
|
45
47
|
stringio
|
|
46
48
|
racc (1.8.1)
|
|
47
49
|
rainbow (3.1.1)
|
|
48
50
|
rake (13.0.6)
|
|
49
|
-
reline (0.
|
|
51
|
+
reline (0.7.0)
|
|
50
52
|
io-console (~> 0.5)
|
|
51
53
|
rspec (3.13.2)
|
|
52
54
|
rspec-core (~> 3.13.0)
|
|
@@ -57,10 +59,10 @@ GEM
|
|
|
57
59
|
rspec-expectations (3.13.5)
|
|
58
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
59
61
|
rspec-support (~> 3.13.0)
|
|
60
|
-
rspec-mocks (3.13.
|
|
62
|
+
rspec-mocks (3.13.8)
|
|
61
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
62
64
|
rspec-support (~> 3.13.0)
|
|
63
|
-
rspec-support (3.13.
|
|
65
|
+
rspec-support (3.13.7)
|
|
64
66
|
rubocop (0.66.0)
|
|
65
67
|
jaro_winkler (~> 1.5.1)
|
|
66
68
|
parallel (~> 1.10)
|
|
@@ -71,8 +73,8 @@ GEM
|
|
|
71
73
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
72
74
|
ruby-progressbar (1.13.0)
|
|
73
75
|
stringio (3.2.0)
|
|
74
|
-
typhoeus (1.
|
|
75
|
-
ethon (>= 0.
|
|
76
|
+
typhoeus (1.7.1)
|
|
77
|
+
ethon (>= 0.19.1, < 0.20.0)
|
|
76
78
|
unicode-display_width (1.5.0)
|
|
77
79
|
|
|
78
80
|
PLATFORMS
|
|
@@ -97,45 +99,47 @@ DEPENDENCIES
|
|
|
97
99
|
|
|
98
100
|
CHECKSUMS
|
|
99
101
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
102
|
+
bundler (4.0.23) sha256=407ba8a1d928f412847f819aa5f8b6aef7c59fb51feb517112af8a165487287b
|
|
100
103
|
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
101
104
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
102
|
-
date (3.
|
|
105
|
+
date (3.6.0) sha256=18ac945c4e24ebd93534f8eab8c2fd8c5604b3e977105b3798d62a1e8d27b580
|
|
103
106
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
104
|
-
ethon (0.
|
|
105
|
-
ffi (1.17.
|
|
106
|
-
ffi (1.17.
|
|
107
|
-
ffi (1.17.
|
|
108
|
-
ffi (1.17.
|
|
109
|
-
ffi (1.17.
|
|
110
|
-
ffi (1.17.
|
|
111
|
-
ffi (1.17.
|
|
112
|
-
ffi (1.17.
|
|
113
|
-
ffi (1.17.
|
|
114
|
-
ffi (1.17.
|
|
115
|
-
ffi (1.17.
|
|
116
|
-
io-console (0.
|
|
107
|
+
ethon (0.19.1) sha256=f309dec67cfdefaf96b3d1ee0ed4f186eac518f131340f607bb3df3b4e13ddc4
|
|
108
|
+
ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf
|
|
109
|
+
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
110
|
+
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
|
111
|
+
ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
|
|
112
|
+
ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
|
|
113
|
+
ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b
|
|
114
|
+
ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf
|
|
115
|
+
ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809
|
|
116
|
+
ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
|
|
117
|
+
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
|
118
|
+
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
|
119
|
+
io-console (0.9.5) sha256=83dd9bbf4c4680416629245b39cd4212eb5f4d9a4ea91804870c1f6b846414d5
|
|
117
120
|
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
121
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
118
122
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
119
|
-
openapi_iplocation (1.
|
|
120
|
-
parallel (1.
|
|
121
|
-
parser (3.3.
|
|
122
|
-
pry (0.16.
|
|
123
|
+
openapi_iplocation (1.4.0)
|
|
124
|
+
parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
|
|
125
|
+
parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
|
|
126
|
+
pry (0.16.1) sha256=d92d82c86e7f2dc34beec6d2892d5cf5ea517eea22eed3ceabb38ee62a98accc
|
|
123
127
|
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
124
|
-
psych (5.
|
|
128
|
+
psych (5.5.0) sha256=4b245bbbd0f3238df8ccee766ebc1a6b062b10e4ee1d3284eb588739ba156a0a
|
|
125
129
|
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
126
130
|
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
127
131
|
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
128
|
-
reline (0.
|
|
132
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
129
133
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
130
134
|
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
131
135
|
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
132
|
-
rspec-mocks (3.13.
|
|
133
|
-
rspec-support (3.13.
|
|
136
|
+
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
|
|
137
|
+
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
134
138
|
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
135
139
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
136
140
|
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
137
|
-
typhoeus (1.
|
|
141
|
+
typhoeus (1.7.1) sha256=86dcb6d787ee08e34947c9436b24af3c4b02880dc83c466b6ca4dbfc53c2ee7f
|
|
138
142
|
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
139
143
|
|
|
140
144
|
BUNDLED WITH
|
|
141
|
-
4.0.
|
|
145
|
+
4.0.23
|
data/README.md
CHANGED
|
@@ -6,9 +6,9 @@ OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
|
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.4.0
|
|
10
|
+
- Package version: 1.4.0
|
|
11
|
+
- Generator version: 7.26.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://github.com/oapicf/openapi-iplocation](https://github.com/oapicf/openapi-iplocation)
|
|
14
14
|
|
|
@@ -25,16 +25,16 @@ gem build openapi_iplocation.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./openapi_iplocation-1.
|
|
28
|
+
gem install ./openapi_iplocation-1.4.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./openapi_iplocation-1.
|
|
31
|
+
(for development, run `gem install --dev ./openapi_iplocation-1.4.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_iplocation', '~> 1.
|
|
37
|
+
gem 'openapi_iplocation', '~> 1.4.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/bin/byebug
CHANGED
data/bin/coderay
CHANGED
data/bin/htmldiff
CHANGED
data/bin/ldiff
CHANGED
data/bin/pry
CHANGED
data/bin/racc
CHANGED
data/bin/rake
CHANGED
data/bin/rspec
CHANGED
data/bin/rubocop
CHANGED
data/bin/ruby-parse
CHANGED
data/bin/ruby-rewrite
CHANGED
data/git_push.sh
CHANGED
|
@@ -8,24 +8,24 @@ git_repo_id=$2
|
|
|
8
8
|
release_note=$3
|
|
9
9
|
git_host=$4
|
|
10
10
|
|
|
11
|
-
if [ "$git_host"
|
|
11
|
+
if [ -z "${git_host}" ]; then
|
|
12
12
|
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
|
-
if [ "$git_user_id"
|
|
16
|
+
if [ -z "${git_user_id}" ]; then
|
|
17
17
|
git_user_id="GIT_USER_ID"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
if [ "$git_repo_id"
|
|
21
|
+
if [ -z "${git_repo_id}" ]; then
|
|
22
22
|
git_repo_id="GIT_REPO_ID"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
|
-
if [ "$release_note"
|
|
26
|
+
if [ -z "${release_note}" ]; then
|
|
27
27
|
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
# Initialize the local directory as a Git repository
|
|
@@ -35,19 +35,16 @@ git init
|
|
|
35
35
|
git add .
|
|
36
36
|
|
|
37
37
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
38
|
+
git commit -m "${release_note}"
|
|
39
39
|
|
|
40
40
|
# Sets the new remote
|
|
41
|
-
|
|
42
|
-
if [ "$
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
41
|
+
if [ -z "$(git remote)" ]; then # git remote not defined
|
|
42
|
+
if [ -z "${GIT_TOKEN:-}" ]; then
|
|
43
|
+
echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
|
|
44
|
+
git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
47
45
|
else
|
|
48
|
-
git remote add origin https://${git_user_id}
|
|
46
|
+
git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
49
47
|
fi
|
|
50
|
-
|
|
51
48
|
fi
|
|
52
49
|
|
|
53
50
|
git pull origin master
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -83,6 +83,16 @@ module OpenApiIplocationClient
|
|
|
83
83
|
])
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# Returns attribute type mapping
|
|
87
|
+
def self.acceptable_openapi_types
|
|
88
|
+
openapi_types
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Returns the nullable attributes
|
|
92
|
+
def self.acceptable_openapi_nullable
|
|
93
|
+
openapi_nullable
|
|
94
|
+
end
|
|
95
|
+
|
|
86
96
|
# Initializes the object
|
|
87
97
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
98
|
def initialize(attributes = {})
|
|
@@ -180,18 +190,20 @@ module OpenApiIplocationClient
|
|
|
180
190
|
def self.build_from_hash(attributes)
|
|
181
191
|
return nil unless attributes.is_a?(Hash)
|
|
182
192
|
attributes = attributes.transform_keys(&:to_sym)
|
|
193
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
194
|
+
map = acceptable_attribute_map
|
|
183
195
|
transformed_hash = {}
|
|
184
|
-
|
|
185
|
-
if attributes.key?(
|
|
196
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
197
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
186
198
|
transformed_hash["#{key}"] = nil
|
|
187
199
|
elsif type =~ /\AArray<(.*)>/i
|
|
188
200
|
# check to ensure the input is an array given that the attribute
|
|
189
201
|
# is documented as an array but the input is not
|
|
190
|
-
if attributes[
|
|
191
|
-
transformed_hash["#{key}"] = attributes[
|
|
202
|
+
if attributes[map[key]].is_a?(Array)
|
|
203
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
192
204
|
end
|
|
193
|
-
elsif !attributes[
|
|
194
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
205
|
+
elsif !attributes[map[key]].nil?
|
|
206
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
195
207
|
end
|
|
196
208
|
end
|
|
197
209
|
new(transformed_hash)
|
|
@@ -201,10 +213,11 @@ module OpenApiIplocationClient
|
|
|
201
213
|
# @return [Hash] Returns the object in the form of hash
|
|
202
214
|
def to_hash
|
|
203
215
|
hash = {}
|
|
204
|
-
|
|
216
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
217
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
205
218
|
value = self.send(attr)
|
|
206
219
|
if value.nil?
|
|
207
|
-
is_nullable = self.class.
|
|
220
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
208
221
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
209
222
|
end
|
|
210
223
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -53,6 +53,16 @@ module OpenApiIplocationClient
|
|
|
53
53
|
])
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
# Returns attribute type mapping
|
|
57
|
+
def self.acceptable_openapi_types
|
|
58
|
+
openapi_types
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns the nullable attributes
|
|
62
|
+
def self.acceptable_openapi_nullable
|
|
63
|
+
openapi_nullable
|
|
64
|
+
end
|
|
65
|
+
|
|
56
66
|
# Initializes the object
|
|
57
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
68
|
def initialize(attributes = {})
|
|
@@ -120,18 +130,20 @@ module OpenApiIplocationClient
|
|
|
120
130
|
def self.build_from_hash(attributes)
|
|
121
131
|
return nil unless attributes.is_a?(Hash)
|
|
122
132
|
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
134
|
+
map = acceptable_attribute_map
|
|
123
135
|
transformed_hash = {}
|
|
124
|
-
|
|
125
|
-
if attributes.key?(
|
|
136
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
137
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
126
138
|
transformed_hash["#{key}"] = nil
|
|
127
139
|
elsif type =~ /\AArray<(.*)>/i
|
|
128
140
|
# check to ensure the input is an array given that the attribute
|
|
129
141
|
# is documented as an array but the input is not
|
|
130
|
-
if attributes[
|
|
131
|
-
transformed_hash["#{key}"] = attributes[
|
|
142
|
+
if attributes[map[key]].is_a?(Array)
|
|
143
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
132
144
|
end
|
|
133
|
-
elsif !attributes[
|
|
134
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
145
|
+
elsif !attributes[map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
135
147
|
end
|
|
136
148
|
end
|
|
137
149
|
new(transformed_hash)
|
|
@@ -141,10 +153,11 @@ module OpenApiIplocationClient
|
|
|
141
153
|
# @return [Hash] Returns the object in the form of hash
|
|
142
154
|
def to_hash
|
|
143
155
|
hash = {}
|
|
144
|
-
|
|
156
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
157
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
145
158
|
value = self.send(attr)
|
|
146
159
|
if value.nil?
|
|
147
|
-
is_nullable = self.class.
|
|
160
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
148
161
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
162
|
end
|
|
150
163
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module OpenApiIplocationClient
|
|
14
|
-
VERSION = '1.
|
|
14
|
+
VERSION = '1.4.0'
|
|
15
15
|
end
|
data/lib/openapi_iplocation.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/openapi_iplocation.gemspec
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Contact: blah+oapicf@cliffano.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
|
-
Generator version: 7.
|
|
11
|
+
Generator version: 7.26.0
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI v3 specification and a set of generated API clients for iplocation.net
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openapi_iplocation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI Clients Factory
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: typhoeus
|
|
@@ -94,7 +93,6 @@ homepage: https://github.com/oapicf/openapi-iplocation
|
|
|
94
93
|
licenses:
|
|
95
94
|
- MIT
|
|
96
95
|
metadata: {}
|
|
97
|
-
post_install_message:
|
|
98
96
|
rdoc_options: []
|
|
99
97
|
require_paths:
|
|
100
98
|
- lib
|
|
@@ -109,12 +107,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
107
|
- !ruby/object:Gem::Version
|
|
110
108
|
version: '0'
|
|
111
109
|
requirements: []
|
|
112
|
-
rubygems_version:
|
|
113
|
-
signing_key:
|
|
110
|
+
rubygems_version: 4.0.20
|
|
114
111
|
specification_version: 4
|
|
115
112
|
summary: iplocation.net API Ruby Gem
|
|
116
113
|
test_files:
|
|
117
114
|
- spec/api/default_api_spec.rb
|
|
118
|
-
- spec/models/get400_response_spec.rb
|
|
119
115
|
- spec/models/get200_response_spec.rb
|
|
116
|
+
- spec/models/get400_response_spec.rb
|
|
120
117
|
- spec/spec_helper.rb
|