prop_initializer 0.2.0 → 0.3.0
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/README.md +5 -1
- data/lib/prop_initializer/railtie.rb +2 -0
- data/lib/prop_initializer/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 682108ddd70bd9c7712bd7b98f8513298df74fe581a7a0eaf4a91f759f9de454
|
|
4
|
+
data.tar.gz: ac9e3004d3839dc9d3ec288a6de3e351b5b91e25cda394c024da8f1be4ba446a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d6ee37c5de04e5a6d6f8b7f24f081ed4da85d0aa0dca4879060c3bf9eb17d5b595a59cddb1dbf0497a1ecb99bce51c0bc59861259490bd0c43c2c45a49352c4
|
|
7
|
+
data.tar.gz: 54bd0d336769d14a2876914e0feb9d362ed4fa14e1202264b769aebaaf10ccb98f86176ff7c59127f81dd8015dcf7d21e1ec9198afcb741bddb13f51f7de01d6
|
data/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
<a href="https://badge.fury.io/rb/prop_initializer"><img src="https://badge.fury.io/rb/prop_initializer.svg" alt="Gem Version" height="18"></a>
|
|
2
|
+
|
|
1
3
|
# Prop Initializer
|
|
2
4
|
|
|
3
5
|
## Overview
|
|
4
6
|
|
|
5
7
|
The `prop_initializer` gem is a flexible tool for defining properties on Ruby classes.
|
|
6
8
|
|
|
9
|
+

|
|
10
|
+
|
|
7
11
|
It's a fork of the [Literal Gem](https://github.com/joeldrapper/literal), with a few tweaks. We sincerely thank [Joel Drapper](https://github.com/joeldrapper) for the inspiration and base code that made this possible.
|
|
8
12
|
|
|
9
13
|
With `prop_initializer`, you can easily declare properties for any class, giving you flexible options for default values and more. However, the scope is narrowed down by removing strict typing requirements, providing a more lightweight and adaptable interface.
|
|
@@ -107,7 +111,7 @@ component.size # => :lg
|
|
|
107
111
|
While `prop_initializer` is based on the [Literal Gem](https://github.com/joeldrapper/literal), there are some important differences:
|
|
108
112
|
|
|
109
113
|
- **No Type Requirement:** [Literal](https://github.com/joeldrapper/literal)'s properties system enforces types, while `prop_initializer` omits them for flexibility. You can define properties without needing to specify a type.
|
|
110
|
-
|
|
114
|
+
|
|
111
115
|
- **Simplified Initializer:** The initialization process has been modified to avoid requiring types at the time of property definition.
|
|
112
116
|
|
|
113
117
|
## Acknowledgements
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prop_initializer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paul Bob
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: zeitwerk
|
|
@@ -49,7 +48,6 @@ licenses:
|
|
|
49
48
|
- MIT
|
|
50
49
|
metadata:
|
|
51
50
|
homepage_uri: https://github.com/avo-hq/prop_initializer
|
|
52
|
-
post_install_message:
|
|
53
51
|
rdoc_options: []
|
|
54
52
|
require_paths:
|
|
55
53
|
- lib
|
|
@@ -64,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
62
|
- !ruby/object:Gem::Version
|
|
65
63
|
version: '0'
|
|
66
64
|
requirements: []
|
|
67
|
-
rubygems_version: 3.
|
|
68
|
-
signing_key:
|
|
65
|
+
rubygems_version: 3.6.9
|
|
69
66
|
specification_version: 4
|
|
70
67
|
summary: A flexible property initializer for Ruby classes inspired by the Literal
|
|
71
68
|
gem.
|