README.md in recurly-2.10.1 vs README.md in recurly-2.10.2
- old
+ new
@@ -12,11 +12,11 @@
Recurly is packaged as a Ruby gem. We recommend you install it with
[Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
``` ruby
-gem 'recurly', '~> 2.10.1'
+gem 'recurly', '~> 2.10.2'
```
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
speed boost) if it's available and loaded in your app's environment.
@@ -61,19 +61,24 @@
``` js
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),
-make sure you assign them before you make any requests:
+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:
``` ruby
Recurly::API.net_http = {
- :ca_path => "/etc/ssl/certs"
+ ca_path: "/etc/ssl/certs",
+ open_timeout: 5, # 5 seconds (defaults to 60)
+ read_timeout: 45 # 45 seconds (defaults to 60)
}
```
+To see which keys are supported for this Hash, see the `Attributes` section
+of the [Net::HTTP documentation](http://ruby-doc.org/stdlib-2.4.1/libdoc/net/http/rdoc/Net/HTTP.html) for your ruby version.
+
## Multi-Threaded Configuration
If you are using the client in a multi-threaded environment and require a different configuration per
thread you can use the following within the thread's context:
``` ruby
@@ -114,15 +119,10 @@
## Support
- [https://support.recurly.com](https://support.recurly.com)
- [stackoverflow](http://stackoverflow.com/questions/tagged/recurly)
-## Announcements
-
-- [@recurly](https://twitter.com/recurly)
-- [Google Group Announcements](https://groups.google.com/group/recurly-api)
-
## Contributing
Developing for the Recurly gem is easy with [Bundler](http://gembundler.com/).
Fork and clone the repository, `cd` into the directory, and, with a Ruby of your choice
@@ -159,10 +159,10 @@
## License
(The MIT License.)
-© 2009–2016 Recurly Inc.
+© 2009–2017 Recurly Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell