omg-attrs 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/omg-attrs.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f5242d20de8f2253239d5f6ee6b119b5f4b6aafac735c25ae23d7356544837b
4
- data.tar.gz: e874a1007387dc281f83606ef3258180ac6f9711549de94f4034cab321cb1ad8
3
+ metadata.gz: eca39c6ab38d3b1f850b048df3a51319ad9333eae902ad3a75296fc5c3a9bba9
4
+ data.tar.gz: 6003e8dcf400beee5ef7a394522278f261bc7ecfdcd63f775afc48d091f02430
5
5
  SHA512:
6
- metadata.gz: b64c0922ed85ca40f71631a51515172f894565440f42a4a26a203a750601d790ba888fb6ed1bdf40fca37383ff15272c6338ebf4b7d1b7a5e990910a2767f0da
7
- data.tar.gz: 483e9b78988c4ba7b3b527ed13f800401f1fb21207ec4b46b360bb16b2a2bae9485ec5a3fd2dd3236070c8acc0fe13257e6e4fac8011446864722ae7327f1f8d
6
+ metadata.gz: ac9781c0f4ecaac9cf599970d86a42c5103315789029e8fd293531c84635e7c2e32006d35339745cb3f88c26e24806e6fa476aafdf3ace5c2675e53ca0c0cb91
7
+ data.tar.gz: 4ec18fe4f2a54e3de8b327a3b9a6c29ad1b9dd5a5f5bc44b79223d0d886df35419b1b5e6e5fa35add790d608fa1888311557a8e6c7a80eab55f31bd6524af18f
data/lib/omg-attrs.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'ext/object'
4
+ require_relative 'ext/array'
5
+ require_relative 'ext/hash'
6
+
3
7
  module Attrs
4
8
  def self.included(base)
5
9
  base.include(InstanceMethods)
@@ -27,6 +31,7 @@ module Attrs
27
31
  end
28
32
  nested_attrs.reduce(base_attrs, :merge)
29
33
  end
34
+ alias_method :oattrs, :attrs
30
35
 
31
36
  private
32
37
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omg-attrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Greenfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  - Adds `Object#attrs` method for querying nested attributes