lib/yaks/breaking_changes.rb in yaks-0.7.5 vs lib/yaks/breaking_changes.rb in yaks-0.7.6
- old
+ new
@@ -3,9 +3,31 @@
# These are displayed in a post-install message when installing the
# gem to aid upgraiding
BreakingChanges = {
+ '0.7.6' => %q~
+Breaking Changes in Yaks 0.7.6
+==============================
+Breaking change: using a symbol instead of link template no longer
+works, use a lambda.
+
+ link :foo, :bar
+
+Becomes
+
+ link :foo, ->{ bar }
+
+Strictly speaking the equivalent version would be `link :foo, ->{
+load_attribute(:bar) }`. Depending on if `bar` is implemented on the
+mapper or is an attribute of the object, this would simplify to `link
+:foo, ->{ bar }` or `link :foo, ->{ object.bar }` respectively.
+
+The `href` attribute of a control has been renamed `action`, in line
+with the attribute name in HTML. An alias is available but will output
+a deprecation warning.
+~,
+
'0.7.0' => %q~
Breaking Changes in Yaks 0.7.0
==============================
Yaks::Resource#subresources is now an array, not a hash. The rel is
stored on the resource itself as Yaks::Resource#rels (an array). This