Then, in your Rails project you can create recurly_service.js.erb file and
configure recurly.js with public key this way:

recurly.configure({ publicKey: '<%= Recurly.js.public_key %>'});

The client library currently uses a Net::HTTP adapter. If you need to
configure the settings passed to Net::HTTP (e.g., an SSL certificates path or timeout lengths),
make sure you assign them when initializing the library:

Any configuration items you do not include in the above config call will be defaulted to the standard
configuration items. For example if you do not define default_currency then Recurly.default_currency
will be used.

Supported Ruby Versions

We are currently supporting ruby language versions 2.2 and above. 1.9, 2.0, and 2.1 may still work but are not officially supported.

If you are still using one of these rubies, you should know that support for them ended in
2015 (1.9), 2016 (2.0), and 2017 (2.1) and continuing to use them is a security risk.

Nokogiri Support

For now, we are still running the tests on 2.0 and below but without nokogiri and only rexml. Nokogiri is
no longer supported on 1.9 or 2.0 and has patched known vulnerabilities since dropping support.
If you must run one of these rubies (this includes jruby1.7), you must use rexml and not nokogiri.