nice_hash 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79c328a7e4b1555ec566a2a551440bab304a53a64f69e0bd4413f8a8d9645e5b
4
- data.tar.gz: 1091f1704b10cba8103d91fd0fdb710c9edbf1dd74fe07b7ca298f324b936986
3
+ metadata.gz: 9a55c7666de081ceed78de43ec3817b7dadee88a43778db3c95276717697be39
4
+ data.tar.gz: b44dcdf7403cc64651333533e67ca21ec580d13eca9328a6da4529023290e730
5
5
  SHA512:
6
- metadata.gz: b1397ecb7a9b47a3c4bb28cfe7fd50b28ea4b33254eaa02c8db55555cae4d5a48e65fb42dd251f2269b5b6514910bff89fd1bfdd6d56467e846b8688bd0f1a24
7
- data.tar.gz: fd3cd525b602085a769c57ae84406be49fd0d03a162742cfaf193ede2134d394ec98c260bd6849da35daf295f2905cecf24c7e9abdfe0b2752ea2ea9e0868009
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.1.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-03 00:00:00.000000000 Z
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.1'
19
+ version: '1.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.0
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.1'
29
+ version: '1.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.1.0
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