- Rumble: Fix passing
true
as an attribute value, which was broken by the escaping changes in v1.0.0. (@igas)
- Rumble: Fix bug in v1.0.0 that caused an exception if the user passed a
nil
value for an attribute. - Rumble: Add support for
aria
attr hashes, behaving the same way asdata
.
- Add support for Rails 5.1.
- Fix all Ruby warnings generated by Keynote itself.
- Rumble: Always escape quotation marks in HTML attributes, even if the string is already marked as HTML-safe.
- Rumble: Allow user to pass in a
data
hash to generate data attributes. - Rumble: Allow user to pass in an array value for an attribute, which will be joined by spaces.
- Add support for Rails 5.0. (@dra)
- Drop support for Rails 3.0 and Ruby 1.9.2; add support for Rails 4.2.
- Drop support for MiniTest::Rails versions older than 2.0; add support for 2.0 and higher. (@kirs)
- Allow user to pass the string version of the presenter name into
Keynote.present
as an alternative to passing a symbol. This makes it less awkward to use namespaced presenters, but it does remove the possibility of defining aStringPresenter
and using it with code likek('some string').format_as_markdown
. It seems unlikely that anyone is actually doing that though. (@outpunk) - Update RSpec integration to not print deprecation warnings with RSpec 3. (@DarthSim)
- Fix another RSpec integration bug, which happened in cases where the app's Gemfile included rspec-rails but not the rspec gem itself.
- Fix a bug in the generation of specs for zero-arg presenters.
- Update configuration to test across MRI 1.9.2/1.9.3/2.0.0/2.1.0, Rubinius, JRuby, Rails 3.0/3.1/3.2/4.0/4.1.
- Fix issue #6, in which the order of dependencies in the Gemfile could keep Keynote's RSpec integration from loading correctly.
- Add
Keynote::Inline
, a module that presenters can extend to enable inline templating in any language supported by Rails. - Presenters now have a
use_html_5_tags
class method that adds a more complete set of Rumble tag methods to the class. - Add
object_names
class method to presenters, returning an array of the symbols that have been passed into thepresents
method. - Add an implementation of the
present
/k
method that's available in test cases. Update test generators accordingly. - Update minitest-rails integration to be compatible with the newest version of minitest-rails (on Rails 3.0, 3.1, 3.2, and 4.0).
- Add block form of
present
. If you pass a block into apresent
call, it yields the presenter.