pinkman 0.9.9.4 → 0.9.9.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8a03755d9464fc251af318325309e9d845a8638
|
4
|
+
data.tar.gz: e10cbea4f1e57e4c92935d90f8a20970645cae78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb76f651af1353c0324ffc743615864f8299fcfc3d3897fadd484114eeb733b80a12c57929c54925b10be0fb57e91e503ca6c83b3af69bb5dde7c43cbfaecbc7
|
7
|
+
data.tar.gz: ae25c2dbe8943d7c05487446faaa9719cdf30f3fbebc56bcc1c488a9dc48b3b793784eea527e970db8cb6bc12aa6377cfd0a1b3dacd2d38a4e5488c2f57c80a7
|
@@ -61,7 +61,13 @@ class window.PinkmanController extends window.PinkmanObject
|
|
61
61
|
a = new PinkmanAction(id: id, name: name, eventName: eventName, call: callback, controller: this)
|
62
62
|
a.set('selector',"##{a.controller.id} [data-action='#{a.name}']")
|
63
63
|
Pinkman.actions.push(a)
|
64
|
-
|
64
|
+
if @actions.push(a) and a.call? and typeof a.call == 'function'
|
65
|
+
a.listen()
|
66
|
+
# console.log "#{id}: listen"
|
67
|
+
else
|
68
|
+
console.log @pinkey
|
69
|
+
console.log a.pinkey
|
70
|
+
console.log "#{id}: nao listen"
|
65
71
|
return(a)
|
66
72
|
|
67
73
|
|
@@ -186,9 +192,10 @@ class window.PinkmanAction extends window.PinkmanObject
|
|
186
192
|
actions = new PinkmanActions
|
187
193
|
Pinkman.controllers.select(id: controllerID).each (c) ->
|
188
194
|
c.actions.select(name: actionName).each (a) ->
|
189
|
-
actions.
|
190
|
-
@
|
195
|
+
actions.forcePush(a)
|
196
|
+
@call = (args...) ->
|
191
197
|
actions.call(args...)
|
198
|
+
@listen()
|
192
199
|
|
193
200
|
# Desc: mirrors alias
|
194
201
|
redirect: (args...) ->
|
@@ -40,6 +40,10 @@ Pinkman.template_engines =
|
|
40
40
|
# templateModifier
|
41
41
|
# apply all pinkman modifiers to templates
|
42
42
|
templateModifier: (templateBody) ->
|
43
|
+
console.log templateBody
|
44
|
+
# console.log @partialAdapter(templateBody)
|
45
|
+
# console.log @templateAdapter(templateBody)
|
46
|
+
|
43
47
|
# content = templateBody
|
44
48
|
# content = @partialAdapter(templateBody)
|
45
49
|
# content = @templateAdapter(templateBody)
|
@@ -51,7 +55,6 @@ Pinkman.template_engines =
|
|
51
55
|
# The pink tag is a custom html tag. Pinkman uses it for binding an object and for updating the rendered html automatically everytime that attribute is changed.
|
52
56
|
# Used in the replace function below. Take a look.
|
53
57
|
attrAdapterHelper: (match,$1,$2,$3) ->
|
54
|
-
# console.log 'lol'
|
55
58
|
array = $2.split('.')
|
56
59
|
attr = array.pop()
|
57
60
|
array.push('pinkey')
|
@@ -9,7 +9,7 @@ module PinkmanHelper
|
|
9
9
|
def textarea hash, *args
|
10
10
|
name = hash[:name]
|
11
11
|
content_tag('textarea',hash.merge(data: {pinkey: pinkey, action: name}, value: write(name)), *args) do
|
12
|
-
write_and_escape_sync(
|
12
|
+
write_and_escape_sync(name)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -67,10 +67,8 @@ module PinkmanHelper
|
|
67
67
|
end
|
68
68
|
alias w write
|
69
69
|
|
70
|
-
|
71
|
-
|
72
70
|
def write_and_escape_sync string
|
73
|
-
raw("{{
|
71
|
+
raw("{{. #{string} }}")
|
74
72
|
end
|
75
73
|
alias _w write_and_escape_sync
|
76
74
|
|
data/lib/pinkman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinkman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.9.
|
4
|
+
version: 0.9.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agilso Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|