everythingrb 1.0.1 → 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 +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/everythingrb/module.rb +0 -5
- data/lib/everythingrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d4d1ff4ff501fb2c458bf0d23207db00f048f87337651a9acbb32fac3130892
|
|
4
|
+
data.tar.gz: fef2dcb4bca0bbb191173456278766deb3718105fd74fbda82c14e95ca05381a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b010d9ad8a8816cee802e130d8559bfd52bd2928973fb5af78d85700837ccc5fbdc0652f546450c5b8f466d92ee694edef3f66b8337176c2e05070f5ddd9e22
|
|
7
|
+
data.tar.gz: 74038bc5467bb76fc296015f631fce28c4a5a533f8630794d1fc68f0215b8a29bcc9f7d1d4329d2140b9811dfe4db2f8bc6312bbbf272432051dd4a52cd9330c
|
data/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,12 @@ 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
|
+
|
|
18
24
|
## [1.0.1] - 12026-04-28
|
|
19
25
|
|
|
20
26
|
### Fixed
|
|
@@ -69,7 +75,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
69
75
|
### Changed
|
|
70
76
|
|
|
71
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:
|
|
72
|
-
|
|
73
78
|
- `hash.reject_values(&:blank?)` → use `hash.compact_blank` instead
|
|
74
79
|
- `hash.select_values { |v| condition }` → use `hash.select { |k, v| condition }`
|
|
75
80
|
- `hash.reject_values { |v| condition }` → use `hash.reject { |k, v| condition }`
|
|
@@ -363,7 +368,8 @@ This change aligns our method signatures with Ruby's conventions and matches our
|
|
|
363
368
|
|
|
364
369
|
- Added alias `each` to `each_pair` in OpenStruct for better enumerable compatibility
|
|
365
370
|
|
|
366
|
-
[unreleased]: https://github.com/itsthedevman/everythingrb/compare/v1.0.
|
|
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
|
|
367
373
|
[1.0.1]: https://github.com/itsthedevman/everythingrb/compare/v1.0.0...v1.0.1
|
|
368
374
|
[1.0.0]: https://github.com/itsthedevman/everythingrb/compare/v0.9.0...v1.0.0
|
|
369
375
|
[0.9.0]: https://github.com/itsthedevman/everythingrb/compare/v0.8.3...v0.9.0
|
data/lib/everythingrb/module.rb
CHANGED
|
@@ -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
|
|
data/lib/everythingrb/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ostruct
|