nice_hash 1.1.1 → 1.2.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 +9 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a55c7666de081ceed78de43ec3817b7dadee88a43778db3c95276717697be39
|
4
|
+
data.tar.gz: b44dcdf7403cc64651333533e67ca21ec580d13eca9328a6da4529023290e730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcbd50ee4edaf0ebf8031f3cc507abf67994968b2cb06475f32d6d5ac08d744872f2a7ecd1134eb8212de770a59b122728382cd24b1ceb81ec9b90ee7a57ebb8
|
7
|
+
data.tar.gz: 559c22fde98d99ae59287e1b3be892481772950e92ad3bdb3fc4116e8b89c407862c4e14b25deb2d86060279e895a21c0694e5d39a55edd61777ec3ca4b5b55f
|
data/README.md
CHANGED
@@ -95,6 +95,15 @@ You can also supply an array of strings and string patterns, like on mobilePhone
|
|
95
95
|
|
96
96
|
Also you can specify to select one of the values you want by separating them with |, like for example on sex field: "male|female|other"
|
97
97
|
|
98
|
+
In case you want one pattern to be generated with unique values, so never repeat the same value for that particular pattern, use a symbol object pattern and add to the end of the pattern the symbol: &
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
|
102
|
+
loginame: :"5-10:/xn/&",
|
103
|
+
|
104
|
+
```
|
105
|
+
|
106
|
+
|
98
107
|
### How to access the different keys
|
99
108
|
|
100
109
|
You can access the keys of the hash like always, but now we added to the Hash class the posibility of accessing it using:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nice_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: string_pattern
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.4'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: 1.4.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '1.
|
29
|
+
version: '1.4'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.4.0
|
33
33
|
description: 'You can easily generates all the hashes you want following the criteria
|
34
34
|
you specify. Many other features coming to Hash class like the methods ''bury''
|
35
35
|
or select_key, access the keys like methods: my_hash.my_key.other_key. You will
|