ostruct 0.5.2 → 0.5.3
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 +4 -4
- data/lib/ostruct.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dd6c110dc356e3b206754a307aebdcd546da5b22aa0dbfc95fe1e804213f3ef
|
|
4
|
+
data.tar.gz: c84e85b32c2b550068cb082ef1053b47238cad2af2647a6407637982cf6ae90c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b4f764595555d9f2be9ee8e339b9391d7d6fe3b3e8739e7bb69a0bcf8f0cca3852ec8d7b542cf8484f4f830bba95092f5801a7c7345c31352c0bb0ecc98ac5c
|
|
7
|
+
data.tar.gz: dce5c89e21deaf0f78a022e4e5e873f834f8b7090a6d74c7caf4c9c5fbf004f424018f28422addbd8324f5a5a444d5992bd057fddb3b736d7892c28b8cd06180
|
data/lib/ostruct.rb
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
# For all these reasons, consider not using OpenStruct at all.
|
|
108
108
|
#
|
|
109
109
|
class OpenStruct
|
|
110
|
-
VERSION = "0.5.
|
|
110
|
+
VERSION = "0.5.3"
|
|
111
111
|
|
|
112
112
|
#
|
|
113
113
|
# Creates a new OpenStruct object. By default, the resulting OpenStruct
|
|
@@ -246,7 +246,7 @@ class OpenStruct
|
|
|
246
246
|
if owner.class == ::Class
|
|
247
247
|
owner < ::OpenStruct
|
|
248
248
|
else
|
|
249
|
-
self.class
|
|
249
|
+
self.class!.ancestors.any? do |mod|
|
|
250
250
|
return false if mod == ::OpenStruct
|
|
251
251
|
mod == owner
|
|
252
252
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ostruct
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marc-Andre Lafortune
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
requirements: []
|
|
77
|
-
rubygems_version: 3.
|
|
77
|
+
rubygems_version: 3.3.3
|
|
78
78
|
signing_key:
|
|
79
79
|
specification_version: 4
|
|
80
80
|
summary: Class to build custom data structures, similar to a Hash.
|