object_path 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 +5 -0
- data/README.md +10 -0
- data/lib/object_paths/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e639630fbd749f814f4bb316676b307e74e2a1877c732e6bb861b8474ba86dc
|
4
|
+
data.tar.gz: 7049bab0d6b47ccce8449409e3e2a2967243c9c6183973541b637571a9cbf8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca5a06ffc24a2aede49ea6f5792db68eb1e543394bb826d38462ba01598859c937cfae98872ff9535091287f3b435fe84f511a82de9265e974e43fcc9f928b2
|
7
|
+
data.tar.gz: 83e1d1519badebe66310c444cb485e6661ac83dbcf9422ed17f645b1146f4cfc5a1e4809236c03ea0b2591ef4d008383a1f3e1f03dfce82c58a4ae7d84c9aec3
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -92,4 +92,14 @@ path = ObjectPaths::ObjectPath.new('addresses/street')
|
|
92
92
|
path.resolve(person) # => ['123 Main Street', '456 High Street']
|
93
93
|
```
|
94
94
|
|
95
|
+
### String & Array Extensions
|
95
96
|
|
97
|
+
To ease the creating of new Object Paths the +String+ and +Array+ classes have been extended to allow them to be converted to Object Paths. In both cases the instance method +to_object_path+ can be called to perform the conversions.
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
require 'object_paths/object_path'
|
101
|
+
|
102
|
+
'address/street'.to_object_path
|
103
|
+
['address', 'street'].to_object_path
|
104
|
+
%i[address street].to_object_path
|
105
|
+
```
|
data/lib/object_paths/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_path
|
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
|
- Drew Thorp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -33,6 +33,7 @@ extensions: []
|
|
33
33
|
extra_rdoc_files:
|
34
34
|
- README.md
|
35
35
|
files:
|
36
|
+
- CHANGELOG.md
|
36
37
|
- Gemfile
|
37
38
|
- LICENSE
|
38
39
|
- README.md
|