1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/CHANGELOG.md
2013-04-01 11:20:11 -07:00

10 KiB

Draper Changelog

1.2.0

78 commits by 14 authors

1.1.0

44 commits by 6 authors

  • README improvements.
  • Rails 4 compatibility. b2401c7
  • Added support for testing decorators without loading ApplicationController. See the README for details. 4d0181f
  • Improved the == method to check for decorated? before attempting to compare with source. 6c31617
  • Changed the way helpers are accessed, so that helper methods may be stubbed in tests. 7a04619
  • Made the Devise test helper sign_in method independent of mocking framework. b0902ab
  • Stopped attempting to call to_a on decorated objects (a now-redundant lazy query workaround). 34c6390
  • Fixed a minor bug where view contexts could be accidentally shared between tests. 3d07cb3
  • Improved helper method performance. e6f88a5
  • Our specs now use the new RSpec expect( ).to syntax. 9a3b319

1.0.0

249 commits by 19 authors

Major changes are described in the upgrade guide.

  • Infer collection decorators. e8253df
  • Prevent calls to scoped on decorated associations. 5dcc6c3
  • Add helper method to tests. 551961e
  • Inherit method security. 1865ed3
  • Test against all versions of Rails 3. 1865ed3
  • Pretend to be instance_of?(source.class). 30d209f
  • Remove security from Decorator. Do manual delegation with :delegate. c6f8aaa
  • Add generators for MiniTest. 1fac02b
  • Test against edge rails. e9b71e3

1.0.0.beta6

  • Fix up README to include changes made. 5e6e4d1
  • CollectionDecorator no longer freezes its collection: direct access is discouraged by making access private. c6d60e6
  • A fix for Decoratable#==. e4fa239
  • Ensure we coerce to an array in the right place. 9eb9fc9

1.0.0.beta5

  • Change CollectionDecorator to freeze its collection. 04d7796
  • Bugfix on CollectionDecorator#to_s. eefd7d0
  • Upgrade request_store dependency to take advantage of a bugfix. 9f17212

1.0.0.beta4

  • Fixed a race condition with capybara integration. e794649
  • [] can be decorated again. 597fbdf
  • model == decorator as well as decorator == model. 46f8a68
  • Preliminary Mongoid integration. 892d195
  • Add a helper method sign_in for devise in decorator specs. 66a3009
  • Brought back context. 9609156
  • Fixed issue where classes were incorrectly being looked up. ee2a015
  • Integrate RequestStore for per-request storage. fde1cde

1.0.0.beta3

  • Relaxed Rails version requirement to 3.0. Support for < 3.2 should be considered experimental. Please file bug reports.

1.0.0.beta2

  • has_finders is now decorates_finders. 33f18aa
  • If a finder method is used, and the source class is not set and cannot be inferred, an UninferrableSourceError is raised. 8ef5bf2
  • Class methods are now properly delegated again. 731995a
  • We no longer respond_to? private methods on the source. 18ebac8
  • Rails versioning relaxed to support Rails 4. 8bfd393

1.0.0.beta1

  • Renaming Draper::Base to Draper::Decorator. This is the most significant change you'll need to upgrade your application. 025742c
  • Added an internal Rails application for integration tests. This won't affect your application, but we're now running a set of Cucumber tests inside of a Rails app in both development and production mode to help ensure that we don't make changes that break Draper. 90a4859
  • Add #decorated? method. This gives us a free RSpec matcher, be_decorated. 834a6fd
  • #decorates is no longer needed inside your models, and should be removed. Decorators automatically infer the class they decorate. e1214d9
  • Decorators do not automatically come with 'finders' by default. If you'd like to use SomeDecorator.find(1), for example, simply add #has_finders to the decorator to include them. 42b6f78
  • To refer to the object being decorated, #source is now the preferred method. 1e84fcb
  • ActiveModel::Serialization is included in Decorators if you've requred ActiveModel::Serializers, so that decorators can be serialized. c4b3527
  • Properly support Test::Unit. 087e134

And many small bug fixes and refactorings.

0.x

See changes prior to version 1.0 here.