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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bf4bdfb536e79a380584782326010724f517c98d69c5b3ee93d231765feba17
4
- data.tar.gz: 7b72dc9c9c4ec5b7a408dfcb0d5eac761e62818b370f9e24687cafb38ba9dd4d
3
+ metadata.gz: 875a596526632b322c4bec51e6c1cc44601fb35d6e3212eee2279156491fd3d3
4
+ data.tar.gz: b2587bd9aa314519a1bf5661acfacdead4d36ec837d342a5a5f615f08e7d7899
5
5
  SHA512:
6
- metadata.gz: 8841cc5c7a736b817494382098594a5ff363c902eb387e55e4d4319343ee0bf4bb7dda7313f76ca8d8f39b0aa57bb0f556231981f95ca974d000ec61c6482561
7
- data.tar.gz: 6d3b893ccb7e67858af07a18cba5470d57674c2668330e22634421bbf7959731aaa24ce7dbc93771e0cdf2992710fb6646c1fbc270fe0b1dc95548653fc1ddf5
6
+ metadata.gz: f35274645d41f0ed31f8a302c74dd4abfc927f602e5f4e4e22229371245a3e54a1e14df8cc16f4b4b640496f17c1ae22620d416955c06d2efb228372c0e8fed3
7
+ data.tar.gz: a62de5273b819ad9f3637e32cb73aa9edc8592c2a31b6dcebc8975beaa107c4a1721ed7bfd4d00e97aa6c2a9226eb1a383f1b8adebc265bf89156f3ea103c8e9
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require_relative 'colorize'
3
- require_relative '../../open_struct'
3
+ require_relative 'open_struct'
4
+ # require_relative 'match_data'
4
5
  Colorize = ExAequo::Base::Colorize
5
6
  # SPDX-License-Identifier: AGPL-3.0-or-later
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # class MatchData
4
+
5
+
6
+ # end
7
+ # SPDX-License-Identifier: AGPL-3.0-or-later
@@ -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
- class OStruct
6
- def
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module ExAequo
4
4
  module Base
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
8
8
  # 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.0
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: 2025-02-02 00:00:00.000000000 Z
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.3
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: []
data/lib/open_struct.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'ostruct'
4
- require 'forwarder'
5
- class OpenStruct
6
- extend Forwarder
7
- forward_all :deconstruct_keys, :fetch, to: :to_h
8
- end
9
- # SPDX-License-Identifier: AGPL-3.0-or-later