Releases: prismicio-community/ruby-kit
Releases · prismicio-community/ruby-kit
1.1.0
New features
- Support for
uid
andDocumentLink
fragments (experimental features) - Linked documents are now calculated from the content, to prevent a future change where the API will no longer expose them at document level
Breaking changes
- Removed the
LinkedDocument
class, now theDocumentLink
class is used instead
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0.rc10
Features
- Support for linked images
- Support for GeoPoint fragment
- Support for Timestamp fragments
Bugfix
- Fix bugs that could occur in StructuredText’s text rendering
1.0.0.rc9
Bugfix
- In 1.0.0.rc8, a cache on the /api endpoint was introduced, to make sure it wasn't requested more than once every few seconds; there was a bug in this cache, which mistakenly held it cached forever. The bug is fixed now.
slug
is now exposed in linkedDocuments.
1.0.0.rc8
_This version has a bug on the caching of the /api endpoint (the caching is forever instead of for 5 seconds); please use 1.0.0.rc9 instead._
Potentially breaking changes (if advanced usage)
- The
Documents
class was renamedResponse
, for consistency with other kits; since Ruby is not strongly typed, most likely this won't change anything for you.
New features
- All calls but the /api endpoint were already cached out-of-the-box (with a LRU cache). The /api endpoint should not be cached "eternally", since it is where you application goes to check if what is being served is up-to-date. However, now, for high traffic peaks, a new cache was added to the /api endpoint's call, to make sure it does not get called more than once every few seconds.
- Expose the ID field on the Ref (for the release's ID)
Response.page
andResponse.results_per_page
were aliased asResponse.current_page
andResults.limit_value
, so that you can use the Kaminari gem out-of-the-box. Basically, if you're using Rails 3 or 4, you can:- add
gem 'kaminari'
to your Gemfile, and runbundle install
- then, when you get a
@response
object from prismic.io, you can build a whole pagination for it with a single line in any of your views:<%= paginate @documents %>
- add