clearwater-roda 0.2.2 → 0.2.3
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 +5 -5
- data/lib/clearwater/roda/version.rb +1 -1
- data/templates/assets/js/actions.rb +6 -4
- data/templates/assets/js/store.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 369771b4ea8353cd3e56be5fd7280eaaae41dee9
|
|
4
|
+
data.tar.gz: 1c344ce7f004222b4d46ea142cca96ef63cdb290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e5587117798ed8d4aae89d7a6ee3f1f1852bca338b66f486240e634c91183aadecdab52d8bce24307643f90f49d14db49687ff1aac7157f6cc78f926bbbf47b
|
|
7
|
+
data.tar.gz: 59f82866c1b0f6cc1ed81c0ec26bac382fc7c8a18f3a4643a0b216e66babe1d69608f5701e186bd3d9516a7b84ffb2d188c9c44de54d6b774d6cc641e877b99e
|
|
@@ -2,9 +2,9 @@ require 'grand_central/action'
|
|
|
2
2
|
|
|
3
3
|
# Here we define an action taxonomy
|
|
4
4
|
#
|
|
5
|
-
# GrandCentral::Action
|
|
5
|
+
# GrandCentral::Action -- Library-level action
|
|
6
6
|
# |
|
|
7
|
-
# + Action -- Your
|
|
7
|
+
# + Action -- Your root application-level action
|
|
8
8
|
# |
|
|
9
9
|
# + CounterAction
|
|
10
10
|
# | |
|
|
@@ -25,8 +25,10 @@ require 'grand_central/action'
|
|
|
25
25
|
# else state
|
|
26
26
|
# end
|
|
27
27
|
|
|
28
|
-
# Create a top-level action
|
|
29
|
-
|
|
28
|
+
# Create a top-level action, allowing for hot-loading not to overwrite it.
|
|
29
|
+
unless defined? Action
|
|
30
|
+
Action = GrandCentral::Action.create
|
|
31
|
+
end
|
|
30
32
|
|
|
31
33
|
CounterAction = Action.create do
|
|
32
34
|
Increment = create
|
|
@@ -38,6 +38,12 @@ else
|
|
|
38
38
|
Store = GrandCentral::Store.new(initial_state, &handler)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
# on_dispatch takes an optional tag that lets hot loading replace the previous
|
|
42
|
+
# incarnation. Here we tag this block as containing our side effects.
|
|
43
|
+
Store.on_dispatch :side_effects do |before, after, action|
|
|
44
|
+
# Add side effects based on action
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
# When you want to use application state in a component, you can use this module
|
|
42
48
|
# to add the attribute methods to that component using the following pattern:
|
|
43
49
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clearwater-roda
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamie Gaskins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
version: '0'
|
|
109
109
|
requirements: []
|
|
110
110
|
rubyforge_project:
|
|
111
|
-
rubygems_version: 2.
|
|
111
|
+
rubygems_version: 2.6.14
|
|
112
112
|
signing_key:
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: Generate a Roda/Clearwater app from scratch
|