twine-rails 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac147ee68dc1abecdb2874330d8cce8c35761ac7
4
- data.tar.gz: 84b943fb64856ef6f82ae11c3d151d49cb34ce00
3
+ metadata.gz: 8a7e1cf1a6f2b853e87e2bf3a572b89c97b15890
4
+ data.tar.gz: a9f48d46ee24602f9adb4c0abc5bdc665908de8c
5
5
  SHA512:
6
- metadata.gz: 7f9c63a9512193d78fbea283b85825afc91bb6c6838153c7dd2a347bd3ddb49ee5bcef9dad9cd508a58de24abce5912b42d8c9a3825482f315a86262a0b44634
7
- data.tar.gz: 3608a4e519f51676bd8435686b495b0a81262bed1d3fd83419c7382e388f5c0afe59ab5c378a3729e0e577eb15719195f6dad5705becce56b0cd5565fb08036b
6
+ metadata.gz: 0e5553407353d10c1d6121482df9b8fff44240c3e373555a28c4eaebccffa5606cfa562869ec09a9e21ba310f453bdbaf6212e0987180fc7b3aa9b97cbd6fde0
7
+ data.tar.gz: 42eb4b0eea640b53413ff71b0dd4a2e4389084ab31a84c7cba73b80a9660572e92683eefef42222b795e9950b9715ce64db9212dc2bf35fde4cef42e42983220
data/README.md CHANGED
@@ -130,4 +130,5 @@ Example:
130
130
 
131
131
  1. Update version number in `package.json`, `bower.json`, and `lib/twine-rails/version.rb`
132
132
  2. Run `bundle install` to update `Gemfile.lock`
133
- 3. Push the new tag to GitHub and the new version to rubygems with `bundle exec rake release`
133
+ 3. Run make .all && make .uglify to update JS
134
+ 4. Push the new tag to GitHub and the new version to rubygems with `bundle exec rake release`
@@ -268,6 +268,15 @@ Twine.bindingTypes =
268
268
  $(node).toggleClass(key, !!value)
269
269
  lastValue = newValue
270
270
 
271
+ 'bind-attribute': (node, context, definition) ->
272
+ fn = wrapFunctionString(definition, '$context,$root', node)
273
+ lastValue = {}
274
+ return refresh: ->
275
+ newValue = fn.call(node, context, rootContext)
276
+ for key, value of newValue when lastValue[key] != value
277
+ $(node).attr(key, value)
278
+ lastValue = newValue
279
+
271
280
  define: (node, context, definition) ->
272
281
  fn = wrapFunctionString(definition, '$context,$root', node)
273
282
  object = fn.call(node, context, rootContext)
@@ -1,3 +1,3 @@
1
1
  module TwineRails
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Li
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-03 00:00:00.000000000 Z
13
+ date: 2015-03-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coffee-rails