Skip to content

Releases: prismicio-community/ruby-kit

1.1.0

23 Dec 13:34
Compare
Choose a tag to compare

New features

  • Support for uid and DocumentLink 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 the DocumentLink class is used instead

1.0.6

12 Nov 12:24
Compare
Choose a tag to compare

Bug fixes

  • StructuredText.as_html: replace line breaks by <br> tags

1.0.5

12 Nov 12:23
Compare
Choose a tag to compare

New features

  • Provide get_* helpers on group documents
  • Ignore nil values passed to SearchForm.set

1.0.4

12 Nov 12:22
Compare
Choose a tag to compare

New features

  • Add support for experiments

1.0.3

20 Oct 12:25
Compare
Choose a tag to compare

Features

  • get_* accessors for specific types in Document

Bug fixes

  • [#48] Fix label for heading and lists

1.0.2

20 Oct 12:20
Compare
Choose a tag to compare

Features

  • Predicate helpers for queries

Bugfixes

  • Fix html escape to have the same behavior with all Ruby versions

1.0.1

25 Sep 08:19
Compare
Choose a tag to compare

Features

  • Support for links in images
  • Support for Timestamp fragments
  • Support for Geopoint fragments

1.0.0.rc10

10 Sep 10:01
Compare
Choose a tag to compare
1.0.0.rc10 Pre-release
Pre-release

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

21 Jun 17:01
Compare
Choose a tag to compare
1.0.0.rc9 Pre-release
Pre-release

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

19 Jun 23:03
Compare
Choose a tag to compare
1.0.0.rc8 Pre-release
Pre-release

_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 renamed Response, 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 and Response.results_per_page were aliased as Response.current_page and Results.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 run bundle 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 %>