ende 0.2.20 → 0.2.21
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c379f566930c0f08bcc2c991cc9a28770385494
|
4
|
+
data.tar.gz: 22bb23a1b538097fb91307570c0deec2d3a74ea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30315e0755d29ac23869a0ef9cbacc2e681ed9640db8761258c0498789c41c09ea80d46cd4e665a91ab83c7b8ec93dfb6c0537e8d9499e21ce2477b2717112ec
|
7
|
+
data.tar.gz: c2df0eecef58b694c6347d071bb965c1702eca7604c28af2bfbf8597fa7f852ee1b1791668c5b4a3ca28477203277f63795f9b7d3f44e01276dd6c5eb13950f5
|
@@ -211,6 +211,9 @@ define 'aura/extensions/rivets', ->
|
|
211
211
|
else if value?.toString() isnt el.value?.toString()
|
212
212
|
el.value = if value? then value else ''
|
213
213
|
|
214
|
+
# TODO isntall formatters from the external custom formatters repo
|
215
|
+
rivets.formatters.is ||= (v, o) -> v == o
|
216
|
+
|
214
217
|
rivets.formatters.float ||= (value) ->
|
215
218
|
throw new TypeError "Invalid value passed to float formatter: #{value}" unless value?
|
216
219
|
|
@@ -230,10 +233,18 @@ define 'aura/extensions/rivets', ->
|
|
230
233
|
'R$ ' + rivets.formatters.float value
|
231
234
|
|
232
235
|
|
233
|
-
|
234
236
|
(application) ->
|
235
237
|
|
236
238
|
initialize: (application) ->
|
239
|
+
observable = require('observable').mixin
|
240
|
+
|
241
|
+
# TODO implement small view interface
|
242
|
+
original_bind = rivets.bind
|
243
|
+
rivets.bind = (selector, presentation) ->
|
244
|
+
for name, model of presentation when not model.observed?
|
245
|
+
presentation[name] = observable model
|
246
|
+
|
247
|
+
original_bind.apply rivets, arguments
|
237
248
|
|
238
249
|
extend application.sandbox,
|
239
250
|
view: rivets
|
@@ -54,12 +54,17 @@ define 'aura/extensions/states', ['application/states'], (states) ->
|
|
54
54
|
delete options.name
|
55
55
|
|
56
56
|
# TODO update aura and use native start method
|
57
|
+
# {domain} = application
|
58
|
+
# injection = core.inject(widgets).fail flow.failed
|
57
59
|
core.inject(widgets).fail flow.failed
|
58
60
|
|
61
|
+
#domain?[transition.to]?.ready = injection.done
|
62
|
+
|
59
63
|
# To prevent reinstation upon changing to this state for the
|
60
64
|
# second time, delete stored configuration for this state
|
61
65
|
delete states[transition.to]
|
62
66
|
|
67
|
+
|
63
68
|
failed: (exception) ->
|
64
69
|
logger.error "states.flow.failed: Failed autostarting widget! \n Message: #{exception.message}", exception
|
65
70
|
|
@@ -13,9 +13,9 @@ define 'aura/extensions/widget/napable', ->
|
|
13
13
|
@$el.addClass 'awake'
|
14
14
|
@$el.removeClass 'asleep'
|
15
15
|
|
16
|
-
|
16
|
+
napable_extensions =
|
17
17
|
constructor: ->
|
18
|
-
|
18
|
+
napable_extensions["super"].constructor.apply @, arguments
|
19
19
|
napable.bind.call @
|
20
20
|
|
21
21
|
# The purpose of this extension is allow parent widget to save
|
@@ -29,5 +29,5 @@ define 'aura/extensions/widget/napable', ->
|
|
29
29
|
|
30
30
|
# Add support for element removal after stoping widget
|
31
31
|
# TODO replace Base.extend inheritance to stampit composition
|
32
|
-
core.Widgets.Base = core.Widgets.Base.extend
|
33
|
-
|
32
|
+
core.Widgets.Base = core.Widgets.Base.extend napable_extensions
|
33
|
+
napable_extensions.super = core.Widgets.Base.__super__
|
data/lib/ende/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ende
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heitor Salazar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|