ravioli 0.2.2 → 0.2.4

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: 18e8f375f4680381f076c2cf30da628ad3eff949809c91bb5bdd8cbd497c5360
4
- data.tar.gz: 7efd3e86edff327df47caad0be5e107ea0d9bdf1a79ff61ff55e5868389286c5
3
+ metadata.gz: 2aefb9753a481282a8f9f715721f642db0767ce193356b4447088eccc15a4a6d
4
+ data.tar.gz: 46985d21d775497fff718b5f9c15f15529f89127a950e2ad772f605c284b2cc4
5
5
  SHA512:
6
- metadata.gz: 10c5a53c1b2cb4bf44f5d0a633f2baab987a63d03154b3e154366652fd633575686c652e4b07fc82fa46dbc8e636a917a34f2e0f6717e669b922885ff11d07ea
7
- data.tar.gz: bccc5db611656b946d46fd42439b360b2a4ddb1f6b3eef710c08ebf9689d7474bd62d4725bf40ddc5ae175c776160557ae4170e9fac0be69c5ffc14506b3c241
6
+ metadata.gz: f9f300878dd25c69cc41612c0aa34e144533e98aae70ee800e17f42b49b06d4d5a581f0a76ac30659dec81e4a00bbdeb7f3b98358d818a597576b93c2926c6ef
7
+ data.tar.gz: f5be20c80174caa8606a2470ded64ce82de3dc71122a07cf58166edaaa4c77207eb26d13dc33de8aa211b79d4b935fff5057ccf24dfb84f0ae9df83d7a2e718d
@@ -91,6 +91,14 @@ module Ravioli
91
91
  Array(key_path) + Array(keys)
92
92
  end
93
93
 
94
+ # Ruby 3's OStruct doesn't protect the `class` method ... which is dumb. Let's protect all
95
+ # public instance methods; this will just prevent reader attrs from being written. Things are
96
+ # still accessible via hash notation, e.g. `Rails.config[:class]`
97
+ def is_method_protected!(name)
98
+ return true if singleton_class.method_defined?(name)
99
+ super
100
+ end
101
+
94
102
  # rubocop:disable Style/MissingRespondToMissing
95
103
  def method_missing(method, *args, &block)
96
104
  return super unless args.empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ravioli
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravioli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flip Sasser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  - !ruby/object:Gem::Version
301
301
  version: '0'
302
302
  requirements: []
303
- rubygems_version: 3.1.6
303
+ rubygems_version: 3.4.2
304
304
  signing_key:
305
305
  specification_version: 4
306
306
  summary: Grab a fork and twist all your configuration spaghetti into a single, delicious