core-global 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/core/global/version.rb +1 -1
- data/lib/is/global.rb +13 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f227f1ec22cfa182eddcae586000e2c402a9186ff16bed50706047f698053b2d
|
4
|
+
data.tar.gz: 2388109d4402a3dd6a85e3624a1f43b6e0afa9be305287a2698c5ed93958c50c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebe6500d6d167b0034afb4861609cd576e9c3ac3b769e0b7fcc3a627cc15d4e6c1f89a5444eee595d6ecf586293a315604293b60c0a446ae2c32467f752c5db
|
7
|
+
data.tar.gz: 62719b2f0ac50d2a5cb7030b34f17aafd87b4893d6f87ff2c90de5deea9ab035266594c13d56e64346ec78d2591d9a5d8a4a69552fffb33dd00b5bcc267781ec
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.0.1](https://github.com/metabahn/corerb/releases/tag/2021-06-01)
|
2
|
+
|
3
|
+
*released on 2021-06-01*
|
4
|
+
|
5
|
+
* `fix` [#35](https://github.com/metabahn/corerb/pull/35) Correctly delegate method_missing in global instances ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.0.0](https://github.com/metabahn/corerb/releases/tag/2021-02-10)
|
2
8
|
|
3
9
|
*released on 2021-02-10*
|
data/lib/core/global/version.rb
CHANGED
data/lib/is/global.rb
CHANGED
@@ -29,22 +29,28 @@ module Is
|
|
29
29
|
end
|
30
30
|
|
31
31
|
extends :class, prepend: true do
|
32
|
+
def method_added(name)
|
33
|
+
if instance_variable_defined?(:@__finalized)
|
34
|
+
remove_instance_variable(:@__finalized)
|
35
|
+
end
|
36
|
+
|
37
|
+
super
|
38
|
+
end
|
39
|
+
|
32
40
|
def method_missing(name, *args, &block)
|
33
|
-
|
41
|
+
unless defined?(@__finalized)
|
34
42
|
finalize
|
35
|
-
|
36
|
-
global.public_send(name, *args, &block)
|
37
|
-
else
|
38
|
-
super
|
39
43
|
end
|
44
|
+
|
45
|
+
global.public_send(name, *args, &block)
|
40
46
|
end
|
41
47
|
|
42
48
|
if Module.private_method_defined?(:ruby2_keywords)
|
43
49
|
ruby2_keywords(:method_missing)
|
44
50
|
end
|
45
51
|
|
46
|
-
def respond_to_missing?(
|
47
|
-
|
52
|
+
def respond_to_missing?(*args)
|
53
|
+
global.respond_to_missing?(*args)
|
48
54
|
end
|
49
55
|
end
|
50
56
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: core-global
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
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-
|
11
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|
@@ -47,14 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 2.
|
50
|
+
version: 2.6.7
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
rubygems_version: 3.2.
|
57
|
+
rubygems_version: 3.2.15
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Patterns for responsible global state.
|