core-copy 0.1.0 → 0.2.0

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: 0c163aa685b4ac66e810edfa966fceef0794935e07416a9d6fafdc357d2799f0
4
- data.tar.gz: beb8564f4d910015541e06a3db64109ef4c1a1430ab924d83361d8f1d33c164d
3
+ metadata.gz: 4fd0522f5ca5dd7b638d95a94f3c15aec87c2e2e7d71462618ec916215922095
4
+ data.tar.gz: 2d5705d2df7e9788838d0ceaff3eed94af7d9d429712f43d5c192cd97a1ad077
5
5
  SHA512:
6
- metadata.gz: b8c85fc685bad579f472f1c6a20271e22d8d2fa3902b3efeda0fe7ba59156ef3f5db7b8750e93586e189f21a80a9089fbcd4708844af5b2d9c388c097dd84ee0
7
- data.tar.gz: 1665ed23eeefb00343d15abef138a5bd2e981076fb5a33e022d24fbf6485b45104d1fb582804ccfdf1b34059b642086374d9b7e743085e1d6a14b9b18e5281a2
6
+ metadata.gz: 7437b885d3c45f48a4163af697bbb12731ffeb594b965a93d997efeb5fa0a058352ec14eccaa0ab076ba73805037c65cd94f184aee0b1f3c1185fe0c05ae0ed3
7
+ data.tar.gz: 7f0a9a1b3e58b34e07e6c589c4c16f6402932f9d6dfc87f9f2550fcdefa94ff31984c890f782d671a79354aee8cff39114010fbf4710668b85217ae6f89e7ab7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [v0.2.0](https://github.com/metabahn/corerb/releases/tag/2021-10-24)
2
+
3
+ *released on 2021-10-24*
4
+
5
+ * `add` [#74](https://github.com/metabahn/corerb/pull/74) Introduce a core.copy event ([bryanp](https://github.com/bryanp))
6
+
1
7
  ## [v0.1.0](https://github.com/metabahn/corerb/releases/tag/2021-07-07)
2
8
 
3
9
  *released on 2021-07-07*
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module Copy
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
 
7
7
  def self.version
8
8
  VERSION
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "is/eventable"
4
+ require "is/extension"
5
+
6
+ module Is
7
+ module Copyable
8
+ extend Is::Extension
9
+
10
+ applies do
11
+ event "core.copy"
12
+ end
13
+
14
+ extends dependencies: [Is::Eventable]
15
+
16
+ extends :implementation, prepend: true do
17
+ def initialize_copy(...)
18
+ performing "core.copy" do
19
+ super
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: core-copy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-07 00:00:00.000000000 Z
11
+ date: 2021-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: core-event
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: core-extension
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.3'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: core-local
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -34,6 +62,7 @@ files:
34
62
  - LICENSE
35
63
  - lib/core/copy.rb
36
64
  - lib/core/copy/version.rb
65
+ - lib/is/copyable.rb
37
66
  - lib/refine/object/copy.rb
38
67
  homepage: https://github.com/metabahn/corerb/
39
68
  licenses:
@@ -54,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
83
  - !ruby/object:Gem::Version
55
84
  version: '0'
56
85
  requirements: []
57
- rubygems_version: 3.2.15
86
+ rubygems_version: 3.2.22
58
87
  signing_key:
59
88
  specification_version: 4
60
89
  summary: Manage how internal object state is copied.