ex_aequo_base 0.1.0 → 0.1.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 +4 -4
- data/lib/ex_aequo/base/all.rb +2 -1
- data/lib/ex_aequo/base/match_data.rb +7 -0
- data/lib/ex_aequo/base/open_struct.rb +10 -2
- data/lib/ex_aequo/base/version.rb +1 -1
- metadata +4 -4
- data/lib/open_struct.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875a596526632b322c4bec51e6c1cc44601fb35d6e3212eee2279156491fd3d3
|
4
|
+
data.tar.gz: b2587bd9aa314519a1bf5661acfacdead4d36ec837d342a5a5f615f08e7d7899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f35274645d41f0ed31f8a302c74dd4abfc927f602e5f4e4e22229371245a3e54a1e14df8cc16f4b4b640496f17c1ae22620d416955c06d2efb228372c0e8fed3
|
7
|
+
data.tar.gz: a62de5273b819ad9f3637e32cb73aa9edc8592c2a31b6dcebc8975beaa107c4a1721ed7bfd4d00e97aa6c2a9226eb1a383f1b8adebc265bf89156f3ea103c8e9
|
data/lib/ex_aequo/base/all.rb
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'ostruct'
|
4
|
+
require 'forwarder'
|
5
|
+
class OpenStruct
|
6
|
+
extend Forwarder
|
7
|
+
forward_all :deconstruct_keys, :empty?, :fetch, to: :to_h
|
4
8
|
|
5
|
-
|
6
|
-
|
9
|
+
def update(hashy)
|
10
|
+
hashy.to_h.each do |k, v|
|
11
|
+
self[k] = v
|
12
|
+
end
|
13
|
+
self
|
14
|
+
end
|
7
15
|
end
|
8
16
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ex_aequo_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Dober
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: forwarder
|
@@ -64,9 +64,9 @@ files:
|
|
64
64
|
- lib/ex_aequo/base/colorize.rb
|
65
65
|
- lib/ex_aequo/base/colorize/color_definitions.rb
|
66
66
|
- lib/ex_aequo/base/colorizer.rb
|
67
|
+
- lib/ex_aequo/base/match_data.rb
|
67
68
|
- lib/ex_aequo/base/open_struct.rb
|
68
69
|
- lib/ex_aequo/base/version.rb
|
69
|
-
- lib/open_struct.rb
|
70
70
|
homepage: https://codeberg.org/lab419/rb_ex_aequo_base
|
71
71
|
licenses:
|
72
72
|
- AGPL-3.0-or-later
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.6.
|
88
|
+
rubygems_version: 3.6.8
|
89
89
|
specification_version: 4
|
90
90
|
summary: The code I use all the time
|
91
91
|
test_files: []
|