Skip to content

Commit 5236247

Browse files
committed
Regenerate ruby client with new changes
1 parent adfc64e commit 5236247

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+94
-57
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.3-SNAPSHOT
1+
2.4.16-SNAPSHOT

samples/client/petstore/ruby/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ Class | Method | HTTP request | Description
119119
- [Petstore::ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
120120
- [Petstore::ArrayTest](docs/ArrayTest.md)
121121
- [Petstore::Capitalization](docs/Capitalization.md)
122+
- [Petstore::Cat](docs/Cat.md)
122123
- [Petstore::Category](docs/Category.md)
123124
- [Petstore::ClassModel](docs/ClassModel.md)
124125
- [Petstore::Client](docs/Client.md)
126+
- [Petstore::Dog](docs/Dog.md)
125127
- [Petstore::EnumArrays](docs/EnumArrays.md)
126128
- [Petstore::EnumClass](docs/EnumClass.md)
127129
- [Petstore::EnumTest](docs/EnumTest.md)
@@ -145,8 +147,6 @@ Class | Method | HTTP request | Description
145147
- [Petstore::SpecialModelName](docs/SpecialModelName.md)
146148
- [Petstore::Tag](docs/Tag.md)
147149
- [Petstore::User](docs/User.md)
148-
- [Petstore::Cat](docs/Cat.md)
149-
- [Petstore::Dog](docs/Dog.md)
150150

151151

152152
## Documentation for Authorization

samples/client/petstore/ruby/lib/petstore.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

@@ -25,9 +25,11 @@
2525
require 'petstore/models/array_of_number_only'
2626
require 'petstore/models/array_test'
2727
require 'petstore/models/capitalization'
28+
require 'petstore/models/cat'
2829
require 'petstore/models/category'
2930
require 'petstore/models/class_model'
3031
require 'petstore/models/client'
32+
require 'petstore/models/dog'
3133
require 'petstore/models/enum_arrays'
3234
require 'petstore/models/enum_class'
3335
require 'petstore/models/enum_test'
@@ -51,8 +53,6 @@
5153
require 'petstore/models/special_model_name'
5254
require 'petstore/models/tag'
5355
require 'petstore/models/user'
54-
require 'petstore/models/cat'
55-
require 'petstore/models/dog'
5656

5757
# APIs
5858
require 'petstore/api/another_fake_api'

samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api/fake_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api/pet_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api/store_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api/user_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

samples/client/petstore/ruby/lib/petstore/api_client.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
OpenAPI spec version: 1.0.0
77
88
Generated by: https://github.com/swagger-api/swagger-codegen.git
9-
Swagger Codegen version: 2.4.3-SNAPSHOT
9+
Swagger Codegen version: 2.4.16-SNAPSHOT
1010
1111
=end
1212

@@ -15,7 +15,7 @@
1515
require 'logger'
1616
require 'tempfile'
1717
require 'typhoeus'
18-
require 'uri'
18+
require 'addressable/uri'
1919

2020
module Petstore
2121
class ApiClient
@@ -112,6 +112,8 @@ def build_request(http_method, path, opts = {})
112112
:verbose => @config.debugging
113113
}
114114

115+
req_opts.merge!(multipart: true) if header_params['Content-Type'].start_with? "multipart/"
116+
115117
# set custom cert, if provided
116118
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
117119

@@ -264,7 +266,7 @@ def sanitize_filename(filename)
264266
def build_request_url(path)
265267
# Add leading and trailing slashes to path
266268
path = "/#{path}".gsub(/\/+/, '/')
267-
URI.encode(@config.base_url + path)
269+
Addressable::URI.encode(@config.base_url + path)
268270
end
269271

270272
# Builds the HTTP request body

0 commit comments

Comments
 (0)