Changelog / RUBY

This changelog is filtered to show only changes for RUBY. Go back to full changelog.

Oct 31, 2017

Multiple bug fixes for Ruby

There was a bug in Ruby SDKs which were using OAuth2.

  • When updating the OAuth token, the compiler was trying to set the expiry time by adding an int and a string.

Besides this, there were a couple of edge cases that allowed Ruby SDKs to be generated, and even the gem to be built and installed, but the code would not execute because of the following reasons:

  • require statements in the base file were not being split into multiple lines correctly. This splitting is done to ensure compliance with The Ruby Style Guide
  • New line characters in the descriptions for models/enums/exceptions were not being dealt with, causing a comment to spill over into the next line.

These bugs have now been fixed. Please regenerate your Ruby SDKs to get the fixes.


Oct 9, 2017

Ruby SDKs Are Now Ruby Style Guide Compliant

APIMATIC’s Ruby SDKs are now compliant with The Ruby Style Guide

  • Ruby style guide compliance means that the Ruby code generated is guaranteed to be of high-quality.
  • Ruby SDKs are written in an industry-standard code style to allow for maximum interoperability.
  • Ruby SDKs can be tested for code style violation using Rubocop.

Re-generate your Ruby SDKs now for the new changes.


Jul 12, 2017

OAuth 2.0 Authorization Support Added

Our API editor and Code Generation engine now supports OAuth 2.0 for authentication in the generated SDKs.

OAuth 2 enabled SDKs will help developers in:

  • Obtaining consent from user
  • Acquiring access token
  • Refreshing tokens when they expire
  • Making authorized API calls

You can read more about OAuth 2.0 in APIMatic editor and Code Generation engine here.


Feb 6, 2017

Multiple Datetime Formats in SDKs

We have now added support for multiple datetime formats in our SDKs. The following formats are supported:

  • RFC1123 Datetime (Mon, 15 Jun 2009 20:45:30 GMT)
  • RFC3339 Datetime (2016-03-13T12:52:32.123Z)
  • Unix Timestamp (1480809600)

Jan 11, 2017

Logging in SDKs

SDKs generated by APIMATIC now support logging events!

  • Logging-enabled SDKs will log important events in the API lifecycle to the console, log file or another logging backend.
  • Logging backends are configurable. You can even plug-in a logging service like Loggly or Sentry into your SDKs.
  • Easily monitor your SDK usage and find bugs when they occur.


Jan 3, 2017

Ruby Syntax Error Fixed

An unexpected additional ‘)’ existed in the generated Ruby code if the SDK had a Datetime property in a model. The syntax error was eliminated by removing this bracket.

Please regenerate your Ruby SDK to get the bug fix.


Jan 3, 2017

Multiple Base URLs Now Supported

You can now use multiple base URLs in your API description using the new Server Configuration. This feature allows you to

  • Vary the Base URL between endpoints.
  • Create multiple Environments and define different Base URLs for them.
  • Templatize Base URL to allow for configuration using parameters in the client.