ostruct 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ostruct.rb +2 -1
  3. data/ostruct.gemspec +1 -1
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2b9fc88b5467418401b1e0a44f555fd467cf3b90dbcd36db7329830afee1b83
4
- data.tar.gz: decc3b34075bc2746bd61fe0498c666dab2154401515fe69a4c1baa0ab2da2a1
3
+ metadata.gz: cafac521ea9784567e49bc7548d3774d65f3d32c88972566466c541bccb37724
4
+ data.tar.gz: 7bf0c3b479c72cb4023f8eb15ad67c0aa6166aeaeb0e8af1a03aee30fbc7e586
5
5
  SHA512:
6
- metadata.gz: c8166a4d8ec376ec8b8a8fbd7f85e6cc83cb142c06ea9cbb6728011221b2beaa598152f9e9f724d3bf24fb37b89a8261f6728dbeb093b84c8e68887e860824f2
7
- data.tar.gz: 49275721136d6546dba4290e3d14df92b82a84de1e2386d13551d481232da7c82987ddde25ea9baa33761689634d18951a15edce19fb57bb2a9c32ddb1cfbd09
6
+ metadata.gz: fdd4ca44aba273c8ee9b8bffdb027de16aaa0370d3937a1405c1f2ab60e3756a1e3a12d2b0c103850dc383ec33e563ea96de051930bf90464f1a6f14ac2d87c2
7
+ data.tar.gz: dfed525f403cd0c262fd1b24d31aa0f0062fa65e93a6485a99a43e45ea671df15d7e5f3334a11217dadcb3f8a8b94cebb98975459a46cc77f800405fb6459538
@@ -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.3.1"
110
+ VERSION = "0.3.2"
111
111
 
112
112
  #
113
113
  # Creates a new OpenStruct object. By default, the resulting OpenStruct
@@ -250,6 +250,7 @@ class OpenStruct
250
250
  end
251
251
  set_ostruct_member_value!(mname, args[0])
252
252
  elsif len == 0
253
+ @table[mid]
253
254
  else
254
255
  begin
255
256
  super
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.summary = %q{Class to build custom data structures, similar to a Hash.}
17
17
  spec.description = %q{Class to build custom data structures, similar to a Hash.}
18
18
  spec.homepage = "https://github.com/ruby/ostruct"
19
- spec.license = "BSD-2-Clause"
19
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
20
20
  spec.required_ruby_version = ">= 2.5.0"
21
21
 
22
22
  spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
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.3.1
4
+ version: 0.3.2
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: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,7 @@ files:
56
56
  - ostruct.gemspec
57
57
  homepage: https://github.com/ruby/ostruct
58
58
  licenses:
59
+ - Ruby
59
60
  - BSD-2-Clause
60
61
  metadata: {}
61
62
  post_install_message:
@@ -73,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0'
75
76
  requirements: []
76
- rubygems_version: 3.1.2
77
+ rubygems_version: 3.2.3
77
78
  signing_key:
78
79
  specification_version: 4
79
80
  summary: Class to build custom data structures, similar to a Hash.