nice_hash 1.12.3 → 1.12.4

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 +3 -2
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c8fc89de75ddcea68d453b5a4670592a3d57b7787a51be093ba6bd9719c8ce7
4
- data.tar.gz: f89bda34d0ec0adcb5c89e678567f2ae54746d29d1f53c95838797488c95fcaf
3
+ metadata.gz: 167a8424743b40b5de4d966a6a552051390cd5d44f775b52622046e5af949ecf
4
+ data.tar.gz: f85151c49c2fd93f745d3738b9845afe9e0bc9f4f5fa9340b0ba07858983ee66
5
5
  SHA512:
6
- metadata.gz: 7ee567360a718e195676c30b89e280acbb718e65c6c53a9bbefeba806d77e5fd99d1272a5c1e75c5e1d5f5e854e9ffc0fe71f1fde39c44a7956e3586351d5cb7
7
- data.tar.gz: 4d1fd17c81f29f349b27fce1d43918e1fe45fa501b610987cf7ff60a8172e7712b4291b048257319024171e92279602bac9e66cd60203ca380264fd92e6e7a28
6
+ metadata.gz: 1b7264f0c6f777a2d613660abd284d1e5086f4fb1ed8c8717f74a2a8fa5e8e02c6a1da6581c15feb65b3972fdca617a33a80fe7718b750ba42df70a276f37c73
7
+ data.tar.gz: ebb300beff36bd7774532d185d28603045e9bf426d38612b00448e608c464c52232825cb22c115af846332edb577de028c09b9899ad960bf102c744f7e1bd1e2
data/README.md CHANGED
@@ -10,7 +10,7 @@ Many other features coming to Hash class like the methods 'bury' or select_key,
10
10
 
11
11
  You can also parse and filter a json string very easily.
12
12
 
13
- To generate the strings following a pattern take a look at the documentation for string_pattern gem: https://github.com/MarioRuiz/string_pattern. We added support for generating strings from regular expressions but it is only working for the ´generate´ method, use it with caution since it is still on an early stage of development.
13
+ To generate the strings following a pattern take a look at the documentation for string_pattern gem: https://github.com/MarioRuiz/string_pattern. Using string_pattern you can also generate Spanish or English words. We added support for generating strings from regular expressions but it is only working for the ´generate´ method, use it with caution since it is still on an early stage of development.
14
14
 
15
15
  To use nice_hash on Http connections take a look at nice_http gem: https://github.com/MarioRuiz/nice_http
16
16
 
@@ -32,7 +32,7 @@ Or install it yourself as:
32
32
 
33
33
  ## Usage
34
34
 
35
- Remember!! To generate the strings following a pattern take a look at the documentation for string_pattern gem: https://github.com/MarioRuiz/string_pattern. We added support for generating strings from regular expressions but it is only working for the ´generate´ method, use it with caution since it is still on an early stage of development. All you have to do is to add to a key the value as a Regular expression, for example the key uuid in here will generate a random value like this: "E0BDE5B5-A738-49E6-83C1-9D1FFB313788"
35
+ Remember!! To generate the strings following a pattern take a look at the documentation for string_pattern gem: https://github.com/MarioRuiz/string_pattern. You can also generate Spanish or English words. We added support for generating strings from regular expressions but it is only working for the ´generate´ method, use it with caution since it is still on an early stage of development. All you have to do is to add to a key the value as a Regular expression, for example the key uuid in here will generate a random value like this: "E0BDE5B5-A738-49E6-83C1-9D1FFB313788"
36
36
 
37
37
  ```ruby
38
38
  my_hash = {
@@ -47,6 +47,7 @@ This is the Hash we will be using on our examples:
47
47
  ```ruby
48
48
 
49
49
  require 'nice_hash'
50
+ StringPattern.word_separator = ' '
50
51
 
51
52
  my_hash={
52
53
  loginame: :"5-10:/xn/",
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.12.3
4
+ version: 1.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-26 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: string_pattern
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.0
22
+ version: 2.1.3
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: '2.0'
29
+ version: '2.1'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.0
32
+ version: 2.1.3
33
33
  description: 'NiceHash creates hashes following certain patterns so your testing will
34
34
  be much easier. Parse and filter JSON. You can easily generate all the hashes you
35
35
  want following the criteria you specify. Many other features coming to Hash class
36
36
  like the methods ''bury'' or select_key, access the keys like methods: my_hash.my_key.other_key.
37
37
  You will be able to generate thousands of different hashes just declaring one and
38
- test easily APIs based on JSON for example.'
38
+ test easily APIs based on JSON for example. Perfect to be used in test data factories'
39
39
  email: marioruizs@gmail.com
40
40
  executables: []
41
41
  extensions: []
@@ -72,5 +72,5 @@ rubygems_version: 2.7.6
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: NiceHash creates hashes following certain patterns so your testing will be
75
- much easier. Parse and filter JSON.
75
+ much easier. Parse and filter JSON. Perfect to be used in test data factories
76
76
  test_files: []