core-global 0.0.1 → 0.0.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: f227f1ec22cfa182eddcae586000e2c402a9186ff16bed50706047f698053b2d
4
- data.tar.gz: 2388109d4402a3dd6a85e3624a1f43b6e0afa9be305287a2698c5ed93958c50c
3
+ metadata.gz: d3fc6a75e40bbd54b0557b8453e2f7a66c25fb4cf248015ef78d3ea374e3105c
4
+ data.tar.gz: 403e7ef91b7c1ea63d305e63d3242efd0d9fd721df8eb63aed97309848d5ac02
5
5
  SHA512:
6
- metadata.gz: 8ebe6500d6d167b0034afb4861609cd576e9c3ac3b769e0b7fcc3a627cc15d4e6c1f89a5444eee595d6ecf586293a315604293b60c0a446ae2c32467f752c5db
7
- data.tar.gz: 62719b2f0ac50d2a5cb7030b34f17aafd87b4893d6f87ff2c90de5deea9ab035266594c13d56e64346ec78d2591d9a5d8a4a69552fffb33dd00b5bcc267781ec
6
+ metadata.gz: 56e3ea2c7234526d8678b0e7c4df0b268dab622722e1ae0d546f71895c7b739ed72e77ad4a47ec4a8acb0eb0ba6cc8627951ba425819b2a7103b05f8784e36e1
7
+ data.tar.gz: b82cbd0dc1c49c4bf9893953bc1b25bc20298a251230fe1193201bc7046e6684487f11e39bf6d3887ac174937cb4912f6bfc3a0a2eb107654960634dbcfeebbd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [v0.0.2](https://github.com/metabahn/corerb/releases/tag/2021-06-01.1)
2
+
3
+ *released on 2021-06-01*
4
+
5
+ * `fix` [#36](https://github.com/metabahn/corerb/pull/36) Allow globalization of basic objects ([bryanp](https://github.com/bryanp))
6
+
1
7
  ## [v0.0.1](https://github.com/metabahn/corerb/releases/tag/2021-06-01)
2
8
 
3
9
  *released on 2021-06-01*
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module Global
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
 
7
7
  def self.version
8
8
  VERSION
data/lib/is/global.rb CHANGED
@@ -42,15 +42,19 @@ module Is
42
42
  finalize
43
43
  end
44
44
 
45
- global.public_send(name, *args, &block)
45
+ if public_method_defined?(name)
46
+ global.__send__(name, *args, &block)
47
+ else
48
+ super
49
+ end
46
50
  end
47
51
 
48
52
  if Module.private_method_defined?(:ruby2_keywords)
49
53
  ruby2_keywords(:method_missing)
50
54
  end
51
55
 
52
- def respond_to_missing?(*args)
53
- global.respond_to_missing?(*args)
56
+ def respond_to_missing?(name, *)
57
+ public_method_defined?(name) || super
54
58
  end
55
59
  end
56
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: core-global
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell