glimmer-dsl-web 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +658 -39
- data/VERSION +1 -1
- data/glimmer-dsl-web.gemspec +7 -4
- data/lib/glimmer/dsl/web/component_expression.rb +2 -1
- data/lib/glimmer/dsl/web/dsl.rb +22 -0
- data/lib/glimmer/dsl/web/observe_expression.rb +42 -0
- data/lib/glimmer/helpers/glimmer_helper.rb +5 -7
- data/lib/glimmer/web/component.rb +22 -0
- data/lib/glimmer/web/element_proxy.rb +9 -14
- data/lib/glimmer/web/event_proxy.rb +7 -4
- data/lib/glimmer/web/listener_proxy.rb +12 -11
- data/lib/glimmer-dsl-web/samples/hello/hello_observer.rb +88 -0
- data/lib/glimmer-dsl-web/samples/regular/button_counter.rb +36 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16186f1613018ccbaaf2b6bc4214b2e0ad5ce8a96354639febd256616f18a1f
|
4
|
+
data.tar.gz: 26b8cb6ac6b64c912e39294b32cc21f29f053aa62000991970846dd95f127d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc717529f81c4aa66e6ed6c31c32bef68e71a152ec04f3b619515339d29d5f71de076d2e4fd2622b2f7ca173e15a426588a8e46127e1f78139f403722341f6d
|
7
|
+
data.tar.gz: 5901cf78e56fac1cb786955bc1d84777968d3f881d00c06d1e2b9b46a0e52c83c79674560a71103b6685b4bbe1a04d45ebd858e8039404a6f713817c1e72817c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.11
|
4
|
+
|
5
|
+
- Support element custom event listener: `on_remove`
|
6
|
+
- Support `observe` keyword to observe Model attributes in Views with a convenient DSL keyword.
|
7
|
+
- Clean observers declared with `observe` keyword inside a component when `component.markup_root.remove` is called (or equivalent `component.remove` is called).
|
8
|
+
- Update `glimmer_component` to render its content immediately without waiting for `Document.ready?` as that is not necessary given its container is added to the DOM immediately
|
9
|
+
- Upgrade jquery-opal to 0.5.0 (latest version)
|
10
|
+
- Hello, Observer! Sample: `require 'glimmer-dsl-web/samples/hello/hello_observer'`
|
11
|
+
- Button Counter Sample: `require 'glimmer-dsl-web/samples/regular/button_counter'`
|
12
|
+
|
3
13
|
## 0.0.10
|
4
14
|
|
5
15
|
- Glimmer Component Rails Helper (add `include GlimmerHelper` to `ApplicationHelper` or another Rails helper) and use `<%= glimmer_component("path/to/component", *args) %>` in Views
|