philiprehberger-enum 0.1.2 → 0.1.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +5 -4
- data/lib/philiprehberger/enum/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: 586314a47506dc97137ae26aaf56d8902ab333f64c073a8ec0d5e74ed721eb0d
|
|
4
|
+
data.tar.gz: cabf1a0a0e30e4188f976aaf3079dc7f8513f5b294c14b6428f98fedebf33a9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46a4b7ca7f78905924df64f682a45873e001a22886378ff150aa75d376b28792615dccd9d89ea5d663ee346eebf08d6ef1d6166e6d9a5e12f5df928bca52aa95
|
|
7
|
+
data.tar.gz: aa33d5acd8cfe41cdb3669cbf58b4bd9c87876f293f55eab4a81f7e71bebdd15e34226cf27a8ce229e6f7000b45932696a99d63fa29b5e394fb113788f33538f
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.4] - 2026-03-26
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Add Sponsor badge to README
|
|
14
|
+
- Fix license section link format
|
|
15
|
+
|
|
16
|
+
## [0.1.3] - 2026-03-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Standardize README code examples to use double-quote require statements
|
|
20
|
+
- Remove inline comments from Development section to match template
|
|
21
|
+
|
|
10
22
|
## [0.1.2] - 2026-03-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://github.com/philiprehberger/rb-enum/actions/workflows/ci.yml)
|
|
4
4
|
[](https://rubygems.org/gems/philiprehberger-enum)
|
|
5
5
|
[](LICENSE)
|
|
6
|
+
[](https://github.com/sponsors/philiprehberger)
|
|
6
7
|
|
|
7
8
|
Type-safe enumerations with ordinals, custom values, and pattern matching
|
|
8
9
|
|
|
@@ -27,7 +28,7 @@ gem install philiprehberger-enum
|
|
|
27
28
|
## Usage
|
|
28
29
|
|
|
29
30
|
```ruby
|
|
30
|
-
require
|
|
31
|
+
require "philiprehberger/enum"
|
|
31
32
|
|
|
32
33
|
class Status < Philiprehberger::Enum
|
|
33
34
|
member :draft
|
|
@@ -113,10 +114,10 @@ Status::DRAFT.to_json # => '{"name":"draft","ordinal":0,"value":null}'
|
|
|
113
114
|
|
|
114
115
|
```bash
|
|
115
116
|
bundle install
|
|
116
|
-
bundle exec rspec
|
|
117
|
-
bundle exec rubocop
|
|
117
|
+
bundle exec rspec
|
|
118
|
+
bundle exec rubocop
|
|
118
119
|
```
|
|
119
120
|
|
|
120
121
|
## License
|
|
121
122
|
|
|
122
|
-
MIT
|
|
123
|
+
[MIT](LICENSE)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: philiprehberger-enum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Rehberger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Define type-safe enums in Ruby with automatic ordinals, custom values,
|
|
14
14
|
lookup methods, and Ruby 3.x pattern matching support. A cleaner alternative to
|