composable-core 0.0.9 → 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/lib/composable/core/command.rb +7 -7
- data/lib/composable/core/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5dca6cf74c19034f46fd0adf754611f78076779f1bbb16ad59d8b9d2d00a4fe
|
4
|
+
data.tar.gz: 4708306c9276493d26ffd4bf6d78e8a2808e03e9cefced9ede7663591a9bda94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b798e0a6c067ea1ba70dacc6ccb93396736e88460536fafb5ee8f2a49b269504f3ba7e27b2b00ba113095a5a765445ff50dde50bd84d4879c94818b087d30d
|
7
|
+
data.tar.gz: c1fe8f09eb03681b52fd03baff26f173b1cd5d58070d57a6147a5ae69e20e9d5f3f56a4c4afa66a75d2b998fac0f725c70976ebb056ad233cfc861318681eb29
|
@@ -3,10 +3,17 @@
|
|
3
3
|
module Composable
|
4
4
|
module Core
|
5
5
|
module Command
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
6
8
|
class NotImplementedError < ::StandardError; end
|
7
9
|
|
8
10
|
attr_reader :result
|
9
11
|
|
12
|
+
prepended do
|
13
|
+
include ActiveModel::Validations
|
14
|
+
include ActiveSupport::Rescuable
|
15
|
+
end
|
16
|
+
|
10
17
|
module ClassMethods
|
11
18
|
def call(*args, **kwargs)
|
12
19
|
new(*args, **kwargs).call
|
@@ -17,13 +24,6 @@ module Composable
|
|
17
24
|
end
|
18
25
|
end
|
19
26
|
|
20
|
-
def self.prepended(base)
|
21
|
-
base.extend ClassMethods
|
22
|
-
|
23
|
-
base.include ActiveModel::Validations
|
24
|
-
base.include ActiveSupport::Rescuable
|
25
|
-
end
|
26
|
-
|
27
27
|
def call(raise_exception: false)
|
28
28
|
fail NotImplementedError unless defined?(super)
|
29
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composable-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jairo Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|