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 +4 -4
- data/README.md +2 -1
- data/lib/assets/javascripts/twine.js.coffee +9 -0
- data/lib/twine-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a7e1cf1a6f2b853e87e2bf3a572b89c97b15890
|
4
|
+
data.tar.gz: a9f48d46ee24602f9adb4c0abc5bdc665908de8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
data/lib/twine-rails/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2015-03-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coffee-rails
|