everythingrb 1.0.0 → 1.0.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: c1aaf48c681b67675cfd4a3e053086163c755a47fc3941507ac0b08bb33ddf09
4
- data.tar.gz: 2e9389e279e225463b03d0ccaac1db55444aa3d5c99f4ec06c5d86e89a235efa
3
+ metadata.gz: 7d4d1ff4ff501fb2c458bf0d23207db00f048f87337651a9acbb32fac3130892
4
+ data.tar.gz: fef2dcb4bca0bbb191173456278766deb3718105fd74fbda82c14e95ca05381a
5
5
  SHA512:
6
- metadata.gz: 16cdf21b81457e94d393b246dd762c33400de2e39b01435be9334946cdb2b0639583db9064fdac7c2053e6bc533f3b699fcdd5fe7c119e3052f1b51e8cb911ae
7
- data.tar.gz: fc9e95bbd7b0dd0fdbc5a8474f00ffccc0968e703b45c63a7aef1ddc8b6f0418123dfb7474813ce03e889f35244c6e7bf42cab368d31e5db4174551a93ee9f20
6
+ metadata.gz: 3b010d9ad8a8816cee802e130d8559bfd52bd2928973fb5af78d85700837ccc5fbdc0652f546450c5b8f466d92ee694edef3f66b8337176c2e05070f5ddd9e22
7
+ data.tar.gz: 74038bc5467bb76fc296015f631fce28c4a5a533f8630794d1fc68f0215b8a29bcc9f7d1d4329d2140b9811dfe4db2f8bc6312bbbf272432051dd4a52cd9330c
data/CHANGELOG.md CHANGED
@@ -15,6 +15,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
  ### Removed
16
16
  -->
17
17
 
18
+ ## [1.0.2] - 12026-05-30
19
+
20
+ ### Changed
21
+
22
+ - **`attr_predicate` no longer raises when a predicate is already defined** - it now overwrites the existing method like `attr_accessor` does, so reloading a class that uses `attr_predicate` no longer crashes with an `ArgumentError`
23
+
24
+ ## [1.0.1] - 12026-04-28
25
+
26
+ ### Fixed
27
+
28
+ - Adjusted Rails initializer to fix an eager_load timing issue
29
+
18
30
  ## [1.0.0] - 12026-03-21
19
31
 
20
32
  ### Added
@@ -63,7 +75,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
63
75
  ### Changed
64
76
 
65
77
  - **Deprecated Hash value filtering methods** - `Hash#select_values`, `Hash#reject_values`, `Hash#select_values!` and `Hash#reject_values!` are now deprecated and will be removed in v0.9.0. These methods largely duplicate existing Ruby/ActiveSupport functionality:
66
-
67
78
  - `hash.reject_values(&:blank?)` → use `hash.compact_blank` instead
68
79
  - `hash.select_values { |v| condition }` → use `hash.select { |k, v| condition }`
69
80
  - `hash.reject_values { |v| condition }` → use `hash.reject { |k, v| condition }`
@@ -357,7 +368,9 @@ This change aligns our method signatures with Ruby's conventions and matches our
357
368
 
358
369
  - Added alias `each` to `each_pair` in OpenStruct for better enumerable compatibility
359
370
 
360
- [unreleased]: https://github.com/itsthedevman/everythingrb/compare/v1.0.0...HEAD
371
+ [unreleased]: https://github.com/itsthedevman/everythingrb/compare/v1.0.2...HEAD
372
+ [1.0.2]: https://github.com/itsthedevman/everythingrb/compare/v1.0.1...v1.0.2
373
+ [1.0.1]: https://github.com/itsthedevman/everythingrb/compare/v1.0.0...v1.0.1
361
374
  [1.0.0]: https://github.com/itsthedevman/everythingrb/compare/v0.9.0...v1.0.0
362
375
  [0.9.0]: https://github.com/itsthedevman/everythingrb/compare/v0.8.3...v0.9.0
363
376
  [0.8.3]: https://github.com/itsthedevman/everythingrb/compare/v0.8.2...v0.8.3
@@ -38,7 +38,6 @@ class Module
38
38
  #
39
39
  # @return [nil]
40
40
  #
41
- # @raise [ArgumentError] If a predicate method of the same name already exists
42
41
  # @raise [ArgumentError] If from: is specified with multiple attributes
43
42
  #
44
43
  # @example With a regular class
@@ -100,10 +99,6 @@ class Module
100
99
  end
101
100
 
102
101
  attributes.each do |attribute|
103
- if method_defined?(:"#{attribute}?")
104
- raise ArgumentError, "Cannot create predicate method on #{self.class} - #{attribute}? is already defined. Please choose a different name or remove the existing method."
105
- end
106
-
107
102
  signature = "def #{attribute}?"
108
103
  signature.prepend("private ") if private_method
109
104
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
  module Everythingrb
9
9
  # Current version of the everythingrb gem
10
- VERSION = "1.0.0"
10
+ VERSION = "1.0.2"
11
11
  end
data/lib/railtie.rb CHANGED
@@ -20,18 +20,16 @@ module Everythingrb
20
20
  config.everythingrb = ActiveSupport::OrderedOptions.new
21
21
  config.everythingrb.extensions = nil # Default to loading all
22
22
 
23
- initializer "everythingrb.initialize" do
24
- ActiveSupport.on_load(:after_initialize) do
25
- require_relative "everythingrb/prelude"
23
+ initializer "everythingrb.initialize", after: :load_config_initializers, before: :eager_load! do
24
+ require_relative "everythingrb/prelude"
26
25
 
27
- extensions = Rails.configuration.everythingrb.extensions
26
+ extensions = Rails.configuration.everythingrb.extensions
28
27
 
29
- if extensions.is_a?(Array)
30
- # Allow selective loading
31
- extensions.each { |ext| require_relative "everythingrb/#{ext}" }
32
- else
33
- require_relative "everythingrb/all"
34
- end
28
+ if extensions.is_a?(Array)
29
+ # Allow selective loading
30
+ extensions.each { |ext| require_relative "everythingrb/#{ext}" }
31
+ else
32
+ require_relative "everythingrb/all"
35
33
  end
36
34
  end
37
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everythingrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-22 00:00:00.000000000 Z
11
+ date: 2026-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ostruct