openapi_iplocation 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/README.md +6 -6
- data/bin/bundle +17 -12
- data/bin/byebug +6 -4
- data/bin/coderay +6 -4
- data/bin/htmldiff +6 -4
- data/bin/ldiff +6 -4
- data/bin/pry +6 -4
- data/bin/racc +6 -4
- data/bin/rake +6 -4
- data/bin/rspec +6 -4
- data/bin/rubocop +6 -4
- data/bin/ruby-parse +6 -4
- data/bin/ruby-rewrite +6 -4
- data/lib/openapi_iplocation/api/default_api.rb +3 -3
- data/lib/openapi_iplocation/api_client.rb +2 -2
- data/lib/openapi_iplocation/api_error.rb +2 -2
- data/lib/openapi_iplocation/configuration.rb +12 -2
- data/lib/openapi_iplocation/models/get200_response.rb +2 -2
- data/lib/openapi_iplocation/models/get400_response.rb +2 -2
- 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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cc5f1bfa033305679d873cf574a0e62c3955749fa6a1ae86d9b96cf86cb5a52
|
4
|
+
data.tar.gz: 5063613d571904296cb9f71d6ddee1f49374667bc543b734dda3223d90ec3282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d06cad3bd23bf6bc89e76843d71db7bfa8dc6a13b884afe3deabdc09a4f81038c221e41a2ed43e49edfc8b40dadcbcb22bb448734197fbe4ae454c82e9f507
|
7
|
+
data.tar.gz: f125567fe793b687057d6d239a01198407fe67f13a4e9691580abd04e06db5b9bbdbe17009e1724448b73fd8a49cbc6002cf4402936b0e05f5a8c72568624a21
|
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.1.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -16,8 +16,8 @@ GEM
|
|
16
16
|
ffi (1.17.0)
|
17
17
|
jaro_winkler (1.5.6)
|
18
18
|
method_source (1.1.0)
|
19
|
-
parallel (1.
|
20
|
-
parser (3.3.
|
19
|
+
parallel (1.26.3)
|
20
|
+
parser (3.3.5.1)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
racc
|
23
23
|
pry (0.14.2)
|
@@ -28,19 +28,19 @@ GEM
|
|
28
28
|
pry (>= 0.13, < 0.15)
|
29
29
|
psych (5.1.2)
|
30
30
|
stringio
|
31
|
-
racc (1.8.
|
31
|
+
racc (1.8.1)
|
32
32
|
rainbow (3.1.1)
|
33
33
|
rake (13.0.6)
|
34
34
|
rspec (3.13.0)
|
35
35
|
rspec-core (~> 3.13.0)
|
36
36
|
rspec-expectations (~> 3.13.0)
|
37
37
|
rspec-mocks (~> 3.13.0)
|
38
|
-
rspec-core (3.13.
|
38
|
+
rspec-core (3.13.2)
|
39
39
|
rspec-support (~> 3.13.0)
|
40
|
-
rspec-expectations (3.13.
|
40
|
+
rspec-expectations (3.13.3)
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
42
|
rspec-support (~> 3.13.0)
|
43
|
-
rspec-mocks (3.13.
|
43
|
+
rspec-mocks (3.13.2)
|
44
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
45
|
rspec-support (~> 3.13.0)
|
46
46
|
rspec-support (3.13.1)
|
@@ -69,4 +69,4 @@ DEPENDENCIES
|
|
69
69
|
rubocop (~> 0.66.0)
|
70
70
|
|
71
71
|
BUNDLED WITH
|
72
|
-
2.
|
72
|
+
2.2.22
|
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.1.0
|
10
|
+
- Package version: 1.1.0
|
11
|
+
- Generator version: 7.9.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.1.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.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_iplocation', '~> 1.
|
37
|
+
gem 'openapi_iplocation', '~> 1.1.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
data/bin/bundle
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -41,13 +41,13 @@ m = Module.new do
|
|
41
41
|
gemfile = ENV["BUNDLE_GEMFILE"]
|
42
42
|
return gemfile if gemfile && !gemfile.empty?
|
43
43
|
|
44
|
-
File.expand_path("
|
44
|
+
File.expand_path("../../Gemfile", __FILE__)
|
45
45
|
end
|
46
46
|
|
47
47
|
def lockfile
|
48
48
|
lockfile =
|
49
49
|
case File.basename(gemfile)
|
50
|
-
when "gems.rb" then gemfile.sub(/\.rb$/,
|
50
|
+
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
|
51
51
|
else "#{gemfile}.lock"
|
52
52
|
end
|
53
53
|
File.expand_path(lockfile)
|
@@ -60,19 +60,24 @@ m = Module.new do
|
|
60
60
|
Regexp.last_match(1)
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
64
|
-
@
|
65
|
-
env_var_version ||
|
66
|
-
|
67
|
-
bundler_requirement_for(lockfile_version)
|
63
|
+
def bundler_version
|
64
|
+
@bundler_version ||=
|
65
|
+
env_var_version || cli_arg_version ||
|
66
|
+
lockfile_version
|
68
67
|
end
|
69
68
|
|
70
|
-
def
|
71
|
-
return "#{Gem::Requirement.default}.a" unless
|
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")
|
72
77
|
|
73
|
-
|
78
|
+
requirement += ".a" if bundler_gem_version.prerelease?
|
74
79
|
|
75
|
-
|
80
|
+
requirement
|
76
81
|
end
|
77
82
|
|
78
83
|
def load_bundler!
|
data/bin/byebug
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/coderay
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/htmldiff
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/ldiff
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/pry
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/racc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rubocop
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/ruby-parse
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/ruby-rewrite
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby3.0
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
#
|
@@ -8,12 +8,14 @@
|
|
8
8
|
# this file is here to facilitate running it.
|
9
9
|
#
|
10
10
|
|
11
|
-
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
12
14
|
|
13
|
-
bundle_binstub = File.expand_path("bundle",
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
14
16
|
|
15
17
|
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
19
|
load(bundle_binstub)
|
18
20
|
else
|
19
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
@@ -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.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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -58,7 +58,7 @@ module OpenApiIplocationClient
|
|
58
58
|
# header parameters
|
59
59
|
header_params = opts[:header_params] || {}
|
60
60
|
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
62
62
|
|
63
63
|
# form parameters
|
64
64
|
form_params = opts[:form_params] || {}
|
@@ -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.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.9.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.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.9.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.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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -79,6 +79,14 @@ module OpenApiIplocationClient
|
|
79
79
|
# @return [true, false]
|
80
80
|
attr_accessor :debugging
|
81
81
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
86
|
+
# Default to false.
|
87
|
+
# @return [true, false]
|
88
|
+
attr_accessor :ignore_operation_servers
|
89
|
+
|
82
90
|
# Defines the logger used for debugging.
|
83
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
84
92
|
#
|
@@ -166,6 +174,7 @@ module OpenApiIplocationClient
|
|
166
174
|
@timeout = 0
|
167
175
|
@params_encoding = nil
|
168
176
|
@debugging = false
|
177
|
+
@ignore_operation_servers = false
|
169
178
|
@inject_format = false
|
170
179
|
@force_ending_format = false
|
171
180
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -200,6 +209,7 @@ module OpenApiIplocationClient
|
|
200
209
|
|
201
210
|
# Returns base URL for specified operation based on server settings
|
202
211
|
def base_url(operation = nil)
|
212
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
203
213
|
if operation_server_settings.key?(operation) then
|
204
214
|
index = server_operation_index.fetch(operation, server_index)
|
205
215
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -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.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.9.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.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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -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.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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module OpenApiIplocationClient
|
14
|
-
VERSION = '1.
|
14
|
+
VERSION = '1.1.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.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.9.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.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.9.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.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.9.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.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.9.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.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.9.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.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.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openapi_iplocation
|
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
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
112
|
+
rubygems_version: 3.3.5
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: iplocation.net API Ruby Gem
|