raes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raes.rb +1 -1
- data/lib/raes/reducer.rb +1 -1
- data/lib/raes/use_caller.rb +0 -6
- data/lib/raes/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a39e2b8f32e2d974242f22ceb8a1a2b290b8e627d397e734cfe880be1dfacf
|
4
|
+
data.tar.gz: f1025148b187c81a1a7481bc4a808af4a763a52652293d7898b3275a7cb8764e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352dfd2b50b583160512007bdd95093e62be21f128ae032bb869bdd83cb0b52fca74cf7bf17cc864eb458bdeb7fbf1d8ccd5e4f4b7a66890f0040197914ecb76
|
7
|
+
data.tar.gz: c7960ca2ff1df42c2a5ed6be974a0474de647062410597ad41d14afeaf65dd0da8c909c2f98540997b458224d6f56650391efa06bfec856bda0788c5cfceb348
|
data/lib/raes.rb
CHANGED
data/lib/raes/reducer.rb
CHANGED
@@ -23,7 +23,7 @@ module Raes
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def create_state
|
26
|
-
if @action.name.constantize.
|
26
|
+
if @action.name.constantize.instance_method(:initialize).arity.zero?
|
27
27
|
@action.name.constantize.call
|
28
28
|
else
|
29
29
|
@action.name.constantize.call(JSON.parse(@action.payload).symbolize_keys)
|
data/lib/raes/use_caller.rb
CHANGED
@@ -16,12 +16,6 @@ module Raes
|
|
16
16
|
|
17
17
|
private
|
18
18
|
|
19
|
-
def initialize(*params)
|
20
|
-
return if params.empty?
|
21
|
-
|
22
|
-
raise NotImplementedError, "You must implement #{self.class}##{__method__}"
|
23
|
-
end
|
24
|
-
|
25
19
|
def call
|
26
20
|
raise NotImplementedError, "You must implement #{self.class}##{__method__}"
|
27
21
|
end
|
data/lib/raes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
requirements:
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
120
|
+
version: '2.6'
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - ">="
|