raes 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 387b432fd7875eae881d42d0bfaa9998d866fba5be16b2bd281dff60c18928d8
4
- data.tar.gz: 503af59e23d4afb207c170a47b7a848d49e75469996602de95cf50e4a702bfea
3
+ metadata.gz: e9a39e2b8f32e2d974242f22ceb8a1a2b290b8e627d397e734cfe880be1dfacf
4
+ data.tar.gz: f1025148b187c81a1a7481bc4a808af4a763a52652293d7898b3275a7cb8764e
5
5
  SHA512:
6
- metadata.gz: 0ab406ab1998743deb58c344fdbf0ab83f8feddd9a60b287972f7a1f5aa6bcadc9d39680e0cdbdbe86801d55b293a31a7033f24dbe3a88311e51d8c9b8c8f419
7
- data.tar.gz: 116d6325ce61982521ba7dcc7ce271ef582a6a3381bdee78423fd902712a8fdfeb2d25423dd56ab590e41b841b1e11b7b9602d24dec9c8b8584651cbfc447825
6
+ metadata.gz: 352dfd2b50b583160512007bdd95093e62be21f128ae032bb869bdd83cb0b52fca74cf7bf17cc864eb458bdeb7fbf1d8ccd5e4f4b7a66890f0040197914ecb76
7
+ data.tar.gz: c7960ca2ff1df42c2a5ed6be974a0474de647062410597ad41d14afeaf65dd0da8c909c2f98540997b458224d6f56650391efa06bfec856bda0788c5cfceb348
@@ -12,6 +12,6 @@ module Raes
12
12
  end
13
13
 
14
14
  def self.search(name)
15
- Action.search(name).includes(:storages)
15
+ Action.search(name)
16
16
  end
17
17
  end
@@ -23,7 +23,7 @@ module Raes
23
23
  end
24
24
 
25
25
  def create_state
26
- if @action.name.constantize.method(:call).arity.zero?
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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Raes
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
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.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-07-01 00:00:00.000000000 Z
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: '0'
120
+ version: '2.6'
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="