26 Commits

Author SHA1 Message Date
Akira Tanimura
7dcffff20b [Ruby] Fix Ruby client to prevent Rubocop's rule violations (#2100) (#2102)
* [Ruby] Delete empty lines and trailing newline in template to prevent Rubocop's rule violation (#2100)

* [Ruby] update samples of Ruby client (#2100)
2019-02-10 09:29:34 +09:00
meganemura
b9949e1a8e Generate a ruby-client sample for OpenAPI 2.0 (#1482)
* Move output directory for bin/openapi3/ruby-client-petstore.sh

$ git mv sample/client/petstore/ruby sample/openapi3/client/petstore/ruby-client

* $ bin/ruby-client-petstore.sh

* Run bin/ruby-client-petstore.sh in bin/utils/ensure-up-to-date
2018-11-19 17:02:19 +08:00
William Cheng
06d31cfedb
Better format for Ruby tests (#1166)
* better format for ruby test

* update ruby petstore
2018-10-04 23:53:46 +08:00
wing328
31daa2b092 update ruby test files 2016-05-10 14:56:14 +08:00
wing328
d54877b5d3 add ruby spec for configuration, api client, replace should with expect 2016-05-10 14:18:06 +08:00
wing328
354449ebfe add validation to method parameters 2016-04-26 00:06:44 +08:00
wing328
8f70230906 update ruby test case 2016-04-14 16:19:39 +08:00
xhh
8ff488cc01 Fix Ruby tests of the Petstore sample 2016-01-20 14:47:03 +08:00
xhh
637cae153c Ruby: fix testing issue of deleting nonexistent pet 2016-01-12 18:12:54 +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
7c60e2097f Update API client initialization in Ruby test 2015-09-02 12:00:27 +08:00
xhh
a75b05b952 Update tests with latest code 2015-07-22 16:02:18 +08:00
xhh
fafddbf040 Fix naming in specs 2015-06-26 17:16:38 +08:00
xhh
623a1278cf Add test case for API key auth 2015-05-29 11:57:46 +08:00
xhh
70c74d282f Fix tests 2015-05-20 09:23:45 +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
194e9e6f05 Make petstore tests pass 2015-05-20 09:23:43 +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
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
wing328
4a0314849e fix ruby spec 2015-04-13 22:23:52 +08:00
xhh
7cd8d0a1ac Restructure gemspec related files to ease importing the files 2015-04-09 11:34:09 +08:00
William Cheng
0ee39c67fe fix rspec, update ruby client default configuration 2015-03-31 01:28:33 +08:00
Tony Tam
58cfacc4cf added ruby sample 2012-09-26 13:02:27 -07:00