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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 689740f5af00dc47ec9bfc6c7c6ca71193ce946578332438b2a5b83eb15fc992
4
- data.tar.gz: '0791a5679cad9f5e1868cb9dcbe64e4b410213720c50a3af995dc9bfdd3d433c'
3
+ metadata.gz: 2e639630fbd749f814f4bb316676b307e74e2a1877c732e6bb861b8474ba86dc
4
+ data.tar.gz: 7049bab0d6b47ccce8449409e3e2a2967243c9c6183973541b637571a9cbf8db
5
5
  SHA512:
6
- metadata.gz: 86c6891047d3847c65d394add6f48579bf964113072c6bb12fa72e55d5d4a370ea207f36eddf3eb30165100d2add7d472831c2c3a82576a49f034ea999f7ce81
7
- data.tar.gz: 0f9b2744025f83e80d75566da8db651d884fa1a0d2f29fcdb6ccf8c8debeb39d7a9a333cdf6da7c6775fe074b36dbb7b79b8a8469be40443404643e6670640e9
6
+ metadata.gz: bca5a06ffc24a2aede49ea6f5792db68eb1e543394bb826d38462ba01598859c937cfae98872ff9535091287f3b435fe84f511a82de9265e974e43fcc9f928b2
7
+ data.tar.gz: 83e1d1519badebe66310c444cb485e6661ac83dbcf9422ed17f645b1146f4cfc5a1e4809236c03ea0b2591ef4d008383a1f3e1f03dfce82c58a4ae7d84c9aec3
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # 1.0.2 / 2024-09-18
2
+
3
+ ## Documentation
4
+
5
+ - Added String & Array extensions to the README.md
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
+ ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ObjectPaths
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
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.1
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-17 00:00:00.000000000 Z
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