composable-core 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f0a7631a2a50f7c71eacf731a721b4995a248a6e0219cd8f607882ebc759c1a
4
- data.tar.gz: 35551925a652a6f39fa25f28151bdd9389ceb6fd60245fbfcf69fabc2ca09bbb
3
+ metadata.gz: e5dca6cf74c19034f46fd0adf754611f78076779f1bbb16ad59d8b9d2d00a4fe
4
+ data.tar.gz: 4708306c9276493d26ffd4bf6d78e8a2808e03e9cefced9ede7663591a9bda94
5
5
  SHA512:
6
- metadata.gz: 457445922fc10a80cd37eddfacebfe0058aecf9e2e676c59a845b5137a2f7e21efae4a124bf98f3bf49afbd7b13cc0edeec2f26b3aa5b7dcd8a4dbaf2296a54f
7
- data.tar.gz: 20a4a8d45908d3bc87aefced546fcb5c6053a8cdd200275d3d2fcf6adacace42ea09bb795c1d00018a45f4d6a7c471c9d5d64907c114fc6eb672eed83c53f7ff
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
 
@@ -10,7 +10,7 @@ module Composable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 10
13
+ TINY = 11
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.10
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-12-16 00:00:00.000000000 Z
11
+ date: 2022-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport