string_pattern 1.3.1 → 1.3.2

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 +6 -6
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 677ed345d05cc9272631fd56a7746f0f77e8fbc723799e64ada1241535044292
4
- data.tar.gz: 204d0a70c4ae7024c9155b1b431c25f4eff45620118bc441abc3b3b2f74c61a6
3
+ metadata.gz: 7b0a0136c88cca57e223f884f1ed5ad0d9484ce41a04922be2205bd252994cee
4
+ data.tar.gz: dd34d0032ab5897585fcd69b48fc8a88c6becf47fb205a64586176991584e7e3
5
5
  SHA512:
6
- metadata.gz: 36b9f9923e8fa18643a8961deda11973f97a5c116a3f4928ce1b576ca08c18f93a73566a0a53266bbb6ddf625db8b219d7e5d78231e6209a71bacc471ffa648d
7
- data.tar.gz: 4cd69f50b13b59c80b82b5843b00588d02d24ebdaf730b1241c2ea9aeed6be34c4d61f27c52dac260412e5f3cff9b5021834e6b44ced58daa91bee2b9654d3ac
6
+ metadata.gz: 06f9a57bbdf7da87b5f9ca8d1fbeafcc911779e7436205ce00adde1d78829c83a313eb9509c4009df93963eae54e4966b51702d5ff58ba35969837c960dbf530
7
+ data.tar.gz: 076aa53e67c1ae21e372ac56ce69931d8da7b957893cb88471bef121744189e915f8eca0a35db3e06d15cb5b9eed37fbb70a722783ce438ef2ae9fb3c18a709b
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/string_pattern.svg)](https://rubygems.org/gems/string_pattern)
4
4
 
5
- With this gem you can easily generate strings supplying a very simple pattern.
6
- Also you can validate if a text fulfill an specific pattern or even generate a string following a pattern and returning wrong length, value... for testing your applications.
5
+ With this gem, you can easily generate strings supplying a very simple pattern.
6
+ Also, you can validate if a text fulfills a specific pattern or even generate a string following a pattern and returning the wrong length, value... for testing your applications.
7
7
 
8
8
  ## Installation
9
9
 
@@ -87,7 +87,7 @@ StringPattern.cache_values = Hash.new() #to clean the generated values from memo
87
87
 
88
88
  #### Custom characters
89
89
 
90
- Also it's possible to provided the characters we want. To do that we'll use the symbol_type [characters]
90
+ Also, it's possible to provide the characters we want. To do that we'll use the symbol_type [characters]
91
91
 
92
92
  If we want to add the character ] we have to write ]]
93
93
 
@@ -153,7 +153,7 @@ Examples:
153
153
 
154
154
  ### Generate a string with specific expected errors
155
155
 
156
- Usually for testing purposes you need to generate strings that don't fulfill an specific pattern, then you can supply as a parameter expected_errors (alias: errors)
156
+ Usually, for testing purposes you need to generate strings that don't fulfill a specific pattern, then you can supply as a parameter expected_errors (alias: errors)
157
157
 
158
158
  The possible values you can specify is one or more of these ones: :length, :min_length, :max_length, :value, :required_data, :excluded_data, :string_set_not_allowed
159
159
 
@@ -211,7 +211,7 @@ StringPattern.validate((text: "This text will be validated", pattern: :"10-20:Xn
211
211
 
212
212
  If we want to validate a string with a pattern and we are expecting to get specific errors, you can supply the parameter expected_errors (alias: errors) or not_expected_errors (aliases: non_expected_errors, not_errors).
213
213
 
214
- In this case the validate method will return true or false.
214
+ In this case, the validate method will return true or false.
215
215
 
216
216
  Examples:
217
217
 
@@ -230,7 +230,7 @@ Examples:
230
230
 
231
231
  #### SP_ADD_TO_RUBY
232
232
 
233
- This gem adds the methods generate (alias: gen) and validate (alias: val) to the Ruby classes: String, Array and Symbol.
233
+ This gem adds the methods generate (alias: gen) and validate (alias: val) to the Ruby classes: String, Array, and Symbol.
234
234
 
235
235
  Also adds the method generate (alias: gen) to Kernel. By default (true) it is always added.
236
236
 
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_pattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
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-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: You can easily generate strings supplying a very simple pattern. Also
14
- you can validate if a text fulfill an specific pattern or even generate a string
15
- following a pattern and returning wrong length, value... for testing your applications.
13
+ description: You can easily generate strings supplying a very simple pattern. Also,
14
+ you can validate if a text fulfills a specific pattern or even generate a string
15
+ following a pattern and returning the wrong length, value... for testing your applications.
16
16
  email: marioruizs@gmail.com
17
17
  executables: []
18
18
  extensions: []