ostruct 0.6.0 → 0.6.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: fe09d17a88e6e83d913e0c395ba08bbcc7c8ba375162507186c4c91dac54fcd8
4
- data.tar.gz: e297f7776377bbee4097d9f3f48cbc56c5d5ef90f5d89899a53d81855d637965
3
+ metadata.gz: d3b6d615ac58bdfa746a452dffe9d1f6552fda15ba8fc0569f046aa5e8357573
4
+ data.tar.gz: 81f264f366022c233f509bdda02d29028ede0d36e498b31ef7955a85631e4356
5
5
  SHA512:
6
- metadata.gz: ec4852aeff7dc71ac3d15698207e3fbe9ad83085cdcc1e90adbe1e990aa874f83c35b82170131fea825ff72c4d510af52442bbffab4adb2509a91d20689b972a
7
- data.tar.gz: aeb7ef000d1d2d0b22351d4bc0e318ae7accc3a88168c4ce1fe50151e6819050da5234ebcd17d520501eb3bc54ef73bfcbd71d2db09d89853de7ee30b06211fb
6
+ metadata.gz: 469e010c2b6d53cd299428eefbf3a4e3b8f19dd3b8e36774ab2530f3f289e42db55d7652b8207ec769b1dfe1a99e9ee8653d94912fc48d6783d2f17f435620b0
7
+ data.tar.gz: b6b8d119b9159047cec1c99ba24039778db0ee192ff49646a044785afab33fc6c87059485333edb994f36acfb7b3ca347ff89f35c266f140de5e043f768f9978
@@ -4,10 +4,10 @@ Redistribution and use in source and binary forms, with or without
4
4
  modification, are permitted provided that the following conditions
5
5
  are met:
6
6
  1. Redistributions of source code must retain the above copyright
7
- notice, this list of conditions and the following disclaimer.
7
+ notice, this list of conditions and the following disclaimer.
8
8
  2. Redistributions in binary form must reproduce the above copyright
9
- notice, this list of conditions and the following disclaimer in the
10
- documentation and/or other materials provided with the distribution.
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
11
 
12
12
  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
13
  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
data/COPYING ADDED
@@ -0,0 +1,56 @@
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file BSDL), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a. place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b. use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c. give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d. make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a. distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b. accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c. give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d. make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
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.6.0"
110
+ VERSION = "0.6.2"
111
111
 
112
112
  HAS_PERFORMANCE_WARNINGS = begin
113
113
  Warning[:performance]
@@ -376,7 +376,7 @@ class OpenStruct
376
376
  end
377
377
  @table.delete(sym) do
378
378
  return yield if block
379
- raise! NameError.new("no field `#{sym}' in #{self}", sym)
379
+ raise! NameError.new("no field '#{sym}' in #{self}", sym)
380
380
  end
381
381
  end
382
382
 
data/ostruct.gemspec CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.licenses = ["Ruby", "BSD-2-Clause"]
20
20
  spec.required_ruby_version = ">= 2.5.0"
21
21
 
22
- spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
22
+ spec.files = [".gitignore", "Gemfile", "COPYING", "BSDL", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
23
23
  spec.require_paths = ["lib"]
24
+
25
+ spec.metadata["changelog_uri"] = spec.homepage + "/releases"
24
26
  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.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Lafortune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-07 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Class to build custom data structures, similar to a Hash.
14
14
  email:
@@ -18,8 +18,9 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
+ - BSDL
22
+ - COPYING
21
23
  - Gemfile
22
- - LICENSE.txt
23
24
  - README.md
24
25
  - Rakefile
25
26
  - bin/console
@@ -30,7 +31,8 @@ homepage: https://github.com/ruby/ostruct
30
31
  licenses:
31
32
  - Ruby
32
33
  - BSD-2-Clause
33
- metadata: {}
34
+ metadata:
35
+ changelog_uri: https://github.com/ruby/ostruct/releases
34
36
  post_install_message:
35
37
  rdoc_options: []
36
38
  require_paths:
@@ -46,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
48
  - !ruby/object:Gem::Version
47
49
  version: '0'
48
50
  requirements: []
49
- rubygems_version: 3.5.0.dev
51
+ rubygems_version: 3.5.11
50
52
  signing_key:
51
53
  specification_version: 4
52
54
  summary: Class to build custom data structures, similar to a Hash.