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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 885810ba3da4ca1d9ea2ce70d5b62af70aaad68b0ac452891cb8c0e2abee6815
4
- data.tar.gz: b98232dd21976a3cad5b2da178b0d9cfb40160fe3690885fbebc82341abaf32d
2
+ SHA1:
3
+ metadata.gz: 369771b4ea8353cd3e56be5fd7280eaaae41dee9
4
+ data.tar.gz: 1c344ce7f004222b4d46ea142cca96ef63cdb290
5
5
  SHA512:
6
- metadata.gz: 871183fe9eabbcf581f355b0bc83da6509d44d135df06a97265bb1bcd08f3449735ed6511a366e179b42c529b21bb63ca2054e167ca33358c386ba8659421d16
7
- data.tar.gz: c80e5341b1dc5045f15ac2a4345e9cf1a5205270243bc98e4d355611478ee15ec5610ab27472941c8b2d6d5fe9bd80cf22d1355a3d37f1b362d60418f64e102c
6
+ metadata.gz: 3e5587117798ed8d4aae89d7a6ee3f1f1852bca338b66f486240e634c91183aadecdab52d8bce24307643f90f49d14db49687ff1aac7157f6cc78f926bbbf47b
7
+ data.tar.gz: 59f82866c1b0f6cc1ed81c0ec26bac382fc7c8a18f3a4643a0b216e66babe1d69608f5701e186bd3d9516a7b84ffb2d188c9c44de54d6b774d6cc641e877b99e
@@ -1,5 +1,5 @@
1
1
  module Clearwater
2
2
  module Roda
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -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 top application-level action
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
- Action = GrandCentral::Action.create
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.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: 2017-12-30 00:00:00.000000000 Z
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.7.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