l43_open_object 0.1.0 → 0.1.1

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/l43/open_object.rb +3 -2
  3. data/lib/l43.rb +4 -0
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8266d0945c81a03a6902408c89ebcd5041d7cf4638966953e19472fe34000666
4
- data.tar.gz: 2e840ffdacf43598be767a6d7480decfba0689ca993a674a764219ab3e4ec996
3
+ metadata.gz: 22850fd9e80553bee925ca5a0c43c6deb8468bad02a9d54a04defece69881565
4
+ data.tar.gz: ac0a953bcfa8226a563fd4bab9fc23191bd22aa649e8f4216eec5a71473faf1d
5
5
  SHA512:
6
- metadata.gz: ebb1e47640c197641912776ad07751bfaa3e070a6955b79cd9ab1a31f4200ce9799b0c605cfb9ca02faa91f33863b73aed5703c5fa5fbefb3a4ef2e41bf3c181
7
- data.tar.gz: 8e5dd764d310b6f31f44d77e316769aa20a8910f709b09d9ce56f2178fa146b402476a386d858a09aaa48a8f4ec425121248f292dadbd18321287f7890718cd6
6
+ metadata.gz: 3d605403bd858a5b718b478bac3878ec30eeb7d74c08e0167bff02038bb93aa56af40f9ffa7f5d35e3c229772f6a644060d7001a72604a6d0dcd8c4a0005aec5
7
+ data.tar.gz: 9205bd62f6aa011fc1f3846f0f29f08135602ead4e7d8f12a116940401acfb87cad44b8c00ae9d3291b32bea662b2c154f7e5df77dd955fb66645a8f8ae3668c
@@ -2,14 +2,15 @@
2
2
 
3
3
  module L43
4
4
  module OpenObject
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
 
7
7
  def attributes(*atts, **defaults)
8
8
  attr_reader(*atts)
9
9
  attr_reader(*defaults.keys)
10
10
 
11
11
  define_method :== do |other|
12
- other&.to_h == to_h
12
+ return false unless self.class === other
13
+ other.to_h == to_h
13
14
  end
14
15
 
15
16
  define_method :initialize do |**kwds|
data/lib/l43.rb ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'l43/open_object'
4
+ # SPDX-License-Identifier: AGPL-3.0-or-later
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l43_open_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-24 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  When using the class method `attributes` in a class you get:
@@ -21,6 +21,7 @@ extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - LICENSE
24
+ - lib/l43.rb
24
25
  - lib/l43/open_object.rb
25
26
  homepage: https://codeberg.org/lab419/l43_open_object
26
27
  licenses: