Commit Graph

138 Commits

Author SHA1 Message Date
xhh
e6e1db2064 Support looser format when detecting filename 2015-06-25 16:26:04 +08:00
xhh
ceafbcc97f Add config option for file downloading folder. Log about file downloading 2015-06-25 16:07:02 +08:00
xhh
f3a0f464f7 Support file downloading in Ruby generator 2015-06-25 15:35:48 +08:00
xhh
621e3e7b1a Add comments for some configuration options 2015-06-24 15:57:01 +08:00
xhh
19ee56592e Allow customizing SSL CA certificate
by adding a `ssl_ca_cert` configuration option
2015-06-23 17:23:22 +08:00
xhh
46869df631 Make HTTP response accessible by storing the last response
so that users are able to retrieve, for example, rate-limit headers
from the response
2015-06-23 15:02:40 +08:00
xhh
3b6a3b4a38 Add logging for API call entry and result 2015-06-23 10:12:20 +08:00
xhh
229ea93627 Add debugging switch to Ruby generator 2015-06-23 10:06:01 +08:00
xhh
7c355030f4 Add to_s method for models 2015-06-16 18:41:51 +08:00
xhh
a59d4ba346 Add test case for finding nonexistent pet 2015-06-15 16:51:38 +08:00
xhh
ec8e5179cb Remove unused comments 2015-06-15 16:46:30 +08:00
xhh
9d5928551b Unify ClientError and ServerError into ApiError
in Ruby generator
2015-06-15 16:38:08 +08:00
xhh
e9c1dd7842 Regard bare "object" type as Object, add comments
The handling of base "object" type (without definions of
"additionalProperties") is similar to Java generator now.
2015-06-15 12:49:17 +08:00
xhh
80616b4c2b Add test cases for StoreApi#get_inventory 2015-06-12 23:03:17 +08:00
xhh
36f0ed6d0c Add test cases for Response#deserialize 2015-06-12 22:44:52 +08:00
xhh
4c8c6c3880 Rebuild Ruby Petstore sample 2015-06-12 20:18:50 +08:00
fehguy
3d2f09a693 updated versions 2015-06-09 00:25:09 -07:00
wing328
680078dc58 fix csharp refer to apiinvoker 2015-06-09 13:52:01 +08:00
Tony Tam
64ea3f8177 rebuilt 2015-06-07 20:50:35 -07:00
Ron
1c2d0656b0 Code reformatting 2015-06-07 11:56:08 -04:00
Tony Tam
6c57810128 rebuilt 2015-06-07 00:08:01 -07:00
xhh
0ffe53933d Bug fix: "null" was used as post body for empty form parameters
The form parameters could be empty when all of them are optional and no
values are assigned to them.
2015-06-03 21:17:42 +08:00
xhh
2e285ed562 Support skipping SSL certification verification
in Ruby clients by e.g.:

    SwaggerClient::Swagger.configure do |config|
      config.verify_ssl = false
    end
2015-06-03 12:49:09 +08:00
xhh
a29c3abeb8 Use File.separatorChar in Ruby generator, add comments 2015-05-29 12:05:47 +08:00
xhh
623a1278cf Add test case for API key auth 2015-05-29 11:57:46 +08:00
xhh
e52694cde0 Regenerate Ruby Petstore sample 2015-05-29 11:57:46 +08:00
xhh
95813714a5 Add support of HTTP basic and API key auth to Ruby codegen 2015-05-29 11:57:46 +08:00
Tony Tam
3cb9d094d3 Merge branch 'ruby-void-response' of ssh://github.com/xhh/swagger-codegen into xhh-ruby-void-response 2015-05-23 08:49:28 -07:00
Tony Tam
11dd7784f8 rebuilt 2015-05-20 22:20:51 -07:00
xhh
9cf4c66331 Update method returning value comment 2015-05-21 11:30:30 +08:00
xhh
8bf84aabe5 Add test case for nil return value 2015-05-20 21:13:20 +08:00
xhh
50a767ef03 Regenerate Ruby Petstore sample 2015-05-20 21:13:02 +08:00
xhh
792059f195 Avoid warnings for ruby gem building 2015-05-20 09:23:45 +08:00
xhh
70c74d282f Fix tests 2015-05-20 09:23:45 +08:00
xhh
ab4975b7f1 Regenerate petstore ruby sample 2015-05-20 09:23:44 +08:00
xhh
f766614b4d Clean old files generated 2015-05-20 09:23:44 +08:00
xhh
fcf1327c1f Rename swagger-client to swagger_client
according to guides from rubygems: http://guides.rubygems.org/name-your-gem/
2015-05-20 09:23:44 +08:00
xhh
b140f1f152 Fix example code in README.md of Ruby petstore sample 2015-05-20 09:23:44 +08:00
xhh
87904e8b69 Set version dynamically in ruby codegen
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
	samples/client/petstore/ruby/lib/swagger/version.rb
2015-05-20 09:23:44 +08:00
xhh
194e9e6f05 Make petstore tests pass 2015-05-20 09:23:43 +08:00
xhh
8dd7d3aacd Regenerate ruby petstore sample code 2015-05-20 09:23:43 +08:00
William Cheng
05ac516ffa clean up ruby sample, remove commented code, bug fix 2015-05-18 04:30:26 +08:00
William Cheng
3de9b4bfc8 remove (duplicated) object_to_http_body and object_to_hash from swagger.rb 2015-05-17 23:47:55 +08:00
William Cheng
92a2011207 fix post model, update rspec 2015-05-17 23:38:51 +08:00
William Cheng
8710fbfde7 add base object 2015-05-17 23:36:13 +08:00
wing328
1f6a19b684 minor improvement to ruby api client accept and content-type header 2015-05-15 20:58:59 +08:00
wing328
47a8ef3031 fix required parameters in ruby 2015-04-30 17:01:36 +08:00
wing328
c87579e1f7 fix rspec due to change of optional parameter in ruby method 2015-04-17 01:03:15 +08:00
wing328
8512259d02 update method name based on style guide, update petstore sample 2015-04-17 00:26:06 +08:00
xhh
de21088619 Support optional body parameter 2015-04-16 18:20:36 +08:00
xhh
61bf7f49cc Remove redundant blank lines 2015-04-16 15:56:08 +08:00
xhh
a819e4d523 Support optional parameters in Ruby client
* Pass optional parameters via the `opts` Hash
* Handle query parameters in a way similar to header/form parameters to
  support parameter name normalization, e.g. the "additional_metadata"
  key is passed for "additionalMetadata"
* Rename variables to be consistent: `query_params`, `header_params` and
  `form_params`
* Remove unnecessary blank lines
2015-04-16 15:56:08 +08:00
wing328
4a0314849e fix ruby spec 2015-04-13 22:23:52 +08:00
xhh
e9c5c1434b Fix spec 2015-04-09 11:37:48 +08:00
xhh
817a74d4df Add README.md file containing instructions on Ruby petstore sample 2015-04-09 11:34:10 +08:00
xhh
7cd8d0a1ac Restructure gemspec related files to ease importing the files 2015-04-09 11:34:09 +08:00
William Cheng
2967cc3801 moved store spec into a separate file, update order id to 5 (as the
order with ID 2 is no longer found)
2015-04-06 19:05:19 +08:00
William Cheng
9c5153e8c8 fix test cases 2015-04-06 18:52:30 +08:00
William Cheng
0a4fc6a40f update ruby petstore sample 2015-04-06 18:52:30 +08:00
Tony Tam
15236ef376 updated ruby template 2015-04-04 17:45:22 -07:00
William Cheng
1c0cb7f884 fix syntax 2015-04-02 06:12:07 +08:00
William Cheng
bc24e5e290 update ruby accept header 2015-04-02 05:23:53 +08:00
Tony Tam
13ee40a4b8 added test script 2015-03-31 21:48:12 -07:00
Tony Tam
f72e5907bb formatting 2015-03-31 16:08:09 -07:00
Tony Tam
744952aee4 formatting 2015-03-31 15:57:50 -07:00
William Cheng
cb2f1e1bb1 update test case for StoreApi.getOrderById (id: 1 => 2) 2015-03-31 14:37:59 +08:00
William Cheng
59140bd3f3 remove commented unused code from response spec 2015-03-31 14:17:58 +08:00
William Cheng
0ee39c67fe fix rspec, update ruby client default configuration 2015-03-31 01:28:33 +08:00
Tony Tam
3739d2876e removed file 2015-03-29 20:50:23 -07:00
William Cheng
bdd1d1621f remove {{newLine}} and replace tab wtih 2 spaces 2015-03-27 23:55:26 +08:00
William Cheng
3d53cfc298 better ruby method argument format 2015-03-27 02:11:49 +08:00
William Cheng
fb2ab79455 update ruby doc 2015-03-27 02:11:49 +08:00
Tony Tam
8b98a92805 adds tests, fixes for java templates 2015-03-26 20:32:59 -07:00
William Cheng
8107162540 update ruby codgen for better naming convention 2015-03-24 16:24:31 +08:00
William Cheng
a149bb9120 update ruby petstore example 2015-03-19 17:17:39 +08:00
William Cheng
d0dcb2fb43 fix bug with ruby header parameter, remove extra linebreak in generated
code
2015-03-18 16:33:00 +08:00
William Cheng
fc9d632522 update ruby client to support form parameters, add PATCH support, update
ruby petstore client
2015-03-17 05:24:43 +08:00
William Cheng
e9227ad7e5 add ruby codegen, update sample (petstore) for ruby 2015-03-16 18:47:22 +08:00
Tony Tam
2f8355c953 regenerated client 2014-06-10 16:55:34 -07:00
Tony Tam
731fddbc30 regenerated client 2013-10-18 14:44:02 -07:00
Tony Tam
6d76738427 updated from new codegen 2012-12-04 17:23:38 -08:00
Tony Tam
af3b3eb323 removed path 2012-12-04 11:21:44 -08:00
Tony Tam
51437245e4 removed old refs 2012-10-05 21:12:31 -07:00
Tony Tam
67ce62c622 added license info 2012-09-26 22:15:28 -07:00
Tony Tam
0b7db0ce2d clean up of formatting 2012-09-26 14:01:57 -07:00
Tony Tam
68436f6cbe removed println 2012-09-26 13:52:50 -07:00
Tony Tam
ce1b4ec347 added contianer check to simplify models 2012-09-26 13:43:38 -07:00
Tony Tam
58cfacc4cf added ruby sample 2012-09-26 13:02:27 -07:00