225 Commits

Author SHA1 Message Date
wing328
47bb5689d9 better hanlding of model name starting with number 2016-03-17 11:49:06 +08:00
wing328
e10c28596c update user-agent for Ruby 2016-03-15 11:41:47 +08:00
xhh
7505b167b7 Ruby docs: add require and print statements 2016-03-14 15:42:59 +08:00
wing328
a529d9dfe0 push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
wing328
637bdd2f50 add git_push and gitignore to most client generators 2016-03-12 17:35:25 +08:00
xhh
1df0923525 Ruby: improve handling of default values and examples for parameters in docs 2016-03-11 15:23:55 +08:00
xhh
96707e1fea Remove obsolete test files 2016-03-09 19:53:19 +08:00
xhh
2c64b885bb Ruby: add auto-generated documentation in Markdown 2016-03-09 17:18:15 +08:00
xhh
53d8a31bd3 Ruby client: update Petstore sample, fix model import 2016-03-04 15:41:27 +08:00
xhh
8e4f9fdc7c Add test cases for empty "object" type to Ruby Petstore
And fix the deserialization of empty "object" property
2016-03-03 20:36:15 +08:00
wing328
f68e93c662 better local variable naming for ruby, python and php 2016-02-28 11:48:14 +08:00
xhh
52c9d67025 Update petstore spec and fix tests 2016-02-25 12:20:17 +08:00
xhh
84c6b869f8 Ruby client: handle empty/reserved operation id
by using a normalized one instead of throwing errors
2016-02-25 11:48:30 +08:00
Tatsuki Sugiura
0ea7ae1c16 ruby: Add test for boolean convertion. 2016-02-10 19:18:03 +09:00
wing328
5a53814346 add api info as file header to ruby templates 2016-01-31 17:08:47 +08:00
xhh
172da5b2d8 Merge branch 'master' into ruby-binary
Conflicts:
	samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
2016-01-29 12:02:30 +08:00
wing328
e4a991da0c add auto-generated test case for ruby 2016-01-26 23:15:02 +08:00
xhh
8c19626095 Handle "binary" as String in Ruby client
as it seems weird to handle byte array (array of integer) in Ruby
2016-01-25 12:47:59 +08:00
xhh
aad0547b40 Ruby: support binary (byte array) for body parameter and response 2016-01-21 18:01:03 +08:00
xhh
8ff488cc01 Fix Ruby tests of the Petstore sample 2016-01-20 14:47:03 +08:00
wing328
078f68a211 Merge pull request #1876 from xhh/file-downloading-fixes
File downloading improvements for Ruby and Java
2016-01-15 11:25:25 +08:00
xhh
521ba9924b Add a method to sanitize filename, add test cases 2016-01-14 23:06:30 +08:00
xhh
637cae153c Ruby: fix testing issue of deleting nonexistent pet 2016-01-12 18:12:54 +08:00
xhh
0a3b72cdf9 Add test cases of nested array/map deserialization to Ruby
petstore sample
2016-01-08 10:47:08 +08:00
xhh
670e56f692 Remove base_object from Ruby model
and move methods from base_object to each model so that model files will
have no dependency when generating "models only"
2015-12-28 17:42:33 +08:00
xhh
43c0d20743 Ruby client: add "timeout" to configuration 2015-12-24 14:54:39 +08:00
xhh
e9ef143d8f Ruby client: allow setting Configuration in ApiClient
Removed the singleton design from the Configuration class.
Added a `config` field to ApiClient to hold the settings the ApiClient
uses.
2015-12-10 15:25:07 +08:00
xhh
ba48f8712d Add test case for the "json_mime?" method 2015-12-09 16:34:53 +08:00
xhh
4fdaeb7371 Improve checking of JSON MIME 2015-12-09 12:38:38 +08:00
xhh
07de03c09b Return data before response status code and headers 2015-12-07 16:10:24 +08:00
xhh
66112d9eb5 Added with-http-info API methods to Ruby client
to allow accessing response status code and headers, and removed the methods of
recording last response info from ApiClient.
2015-12-07 15:48:59 +08:00
xhh
0dac326230 Add "==", "eql?" and "hash" methods to Ruby client 2015-11-25 11:46:43 +08:00
xhh
76eeb51af6 Support collectionFormat in Ruby client
for header, query and form parameters
2015-11-05 20:02:09 +08:00
xhh
7813976d9b Minor changes 2015-11-04 10:26:14 +08:00
xhh
18abc56688 Add tests for array and map property deserialization 2015-11-04 10:23:21 +08:00
xhh
940e76f45f Ruby client: include empty arrays in model serialization 2015-10-23 17:08:12 +08:00
xhh
e0dfc1b43d Ruby client: remove trailing slashes from base_url
Closes #1399
2015-10-16 12:02:30 +08:00
geekerzp
c70ca9d572 Add test case in ruby client 2015-09-25 17:33:39 +08:00
xhh
7c60e2097f Update API client initialization in Ruby test 2015-09-02 12:00:27 +08:00
geekerzp
6d58d44542 Merge branch 'ruby-api-client' into ruby-apiclient 2015-08-20 11:34:07 +08:00
xhh
0e2e7838ae Merge branch 'bug-fix-ruby-file-upload' into ruby-api-client
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
	samples/client/petstore/ruby/lib/petstore/swagger/request.rb
2015-08-20 11:24:33 +08:00
xhh
0d399d3f6a Add spec for file uploading 2015-08-20 11:07:20 +08:00
geekerzp
a481db7486 Add configuration object in ruby client 2015-08-18 14:27:09 +08:00
xhh
7af5db3565 Rebuild Ruby petstore sample 2015-07-27 16:37:26 +08:00
xhh
a75b05b952 Update tests with latest code 2015-07-22 16:02:18 +08:00
xhh
822e640e0a Merge branch 'develop_2.0' into ruby-debug
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/configuration.mustache
	modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
	samples/client/petstore/ruby/lib/petstore/swagger/request.rb
	samples/client/petstore/ruby/lib/swagger_client.rb
	samples/client/petstore/ruby/lib/swagger_client/swagger/configuration.rb
2015-07-14 12:33:17 +08:00
xhh
1de6952279 Support customizing default headers via config option
for example:

    config.default_headers['X-MY-HEADER'] = 'my-header-value'
2015-06-26 19:09:20 +08:00
xhh
fafddbf040 Fix naming in specs 2015-06-26 17:16:38 +08:00
xhh
2d3d35cfd7 Rebuild Ruby petstore client 2015-06-26 16:37:58 +08:00
xhh
a59d4ba346 Add test case for finding nonexistent pet 2015-06-15 16:51:38 +08:00