lite-validators 1.1.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c80e1764c537172b0a2fb0dd79a1e11440af9f0b7ba0d02c9a02aaac986e52c
4
- data.tar.gz: e1af8a2b53184eb5dc6f3ba18e053d199077c4ccdcb90b06eb3018fc3a05f0bf
3
+ metadata.gz: 2f14e123636fd7e64c95b1ec6cfff0d75a89b675433a966e5a50e8319df59d38
4
+ data.tar.gz: 3c3527272a2396dd96daeb521d446cebd4679acbd2d57be410ef302d578f81e1
5
5
  SHA512:
6
- metadata.gz: 1be9d44a2182f48ebf5ec848dbf741e5d947b1baa5bc07d0ad0d0c0197a8f9d1f1b8ac15c221bf1cfaa05d70332387a60261f0a4d1f731efd026cc399b80757e
7
- data.tar.gz: fa6954479d3eb3d90aa44a05a95f194d71cf4f87d92b34de2924e946520312965d1681ee9fb4984bb2bf945031f83dc0348777c2fe3e9e13092788d52efd5686
6
+ metadata.gz: b2251e88c3258c03ea8ffa22c9ce553f91e0ccb1d757a24c9351da415fd52c063eb23853133f84a97021cf0650f4e239b2af0ac1c87238a9567694f40564d71e
7
+ data.tar.gz: '085d162120734d94783d859deb349d15c55ed42e878713334f5d98fe44543f22b40a37ae6edff6c2efce96d81394d50daa96734aca59c2c5e06952c566e60598'
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.0] - 2021-07-13
10
+ ### Updated
11
+ - Update name validator to accept numeric values and remove double quotes
12
+
9
13
  ## [1.1.2] - 2021-07-05
10
14
  ### Updated
11
15
  - Improve array build performance
data/Gemfile.lock CHANGED
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-validators (1.1.2)
4
+ lite-validators (1.2.0)
5
5
  activemodel
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (6.1.3.2)
11
- actionview (= 6.1.3.2)
12
- activesupport (= 6.1.3.2)
10
+ actionpack (6.1.4)
11
+ actionview (= 6.1.4)
12
+ activesupport (= 6.1.4)
13
13
  rack (~> 2.0, >= 2.0.9)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.1.3.2)
18
- activesupport (= 6.1.3.2)
17
+ actionview (6.1.4)
18
+ activesupport (= 6.1.4)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
22
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activemodel (6.1.3.2)
24
- activesupport (= 6.1.3.2)
25
- activesupport (6.1.3.2)
23
+ activemodel (6.1.4)
24
+ activesupport (= 6.1.4)
25
+ activesupport (6.1.4)
26
26
  concurrent-ruby (~> 1.0, >= 1.0.2)
27
27
  i18n (>= 1.6, < 2)
28
28
  minitest (>= 5.1)
@@ -31,7 +31,7 @@ GEM
31
31
  ast (2.4.2)
32
32
  builder (3.2.4)
33
33
  colorize (0.8.1)
34
- concurrent-ruby (1.1.8)
34
+ concurrent-ruby (1.1.9)
35
35
  crass (1.0.6)
36
36
  diff-lcs (1.4.4)
37
37
  erubi (1.10.0)
@@ -40,17 +40,17 @@ GEM
40
40
  ruby_parser (>= 3.14.1)
41
41
  i18n (1.8.10)
42
42
  concurrent-ruby (~> 1.0)
43
- loofah (2.9.1)
43
+ loofah (2.10.0)
44
44
  crass (~> 1.0.2)
45
45
  nokogiri (>= 1.5.9)
46
46
  method_source (1.0.0)
47
- mini_portile2 (2.5.1)
47
+ mini_portile2 (2.5.3)
48
48
  minitest (5.14.4)
49
- nokogiri (1.11.3)
49
+ nokogiri (1.11.7)
50
50
  mini_portile2 (~> 2.5.0)
51
51
  racc (~> 1.4)
52
52
  parallel (1.20.1)
53
- parser (3.0.1.1)
53
+ parser (3.0.2.0)
54
54
  ast (~> 2.4.1)
55
55
  racc (1.5.2)
56
56
  rack (2.2.3)
@@ -61,14 +61,14 @@ GEM
61
61
  nokogiri (>= 1.6)
62
62
  rails-html-sanitizer (1.3.0)
63
63
  loofah (~> 2.3)
64
- railties (6.1.3.2)
65
- actionpack (= 6.1.3.2)
66
- activesupport (= 6.1.3.2)
64
+ railties (6.1.4)
65
+ actionpack (= 6.1.4)
66
+ activesupport (= 6.1.4)
67
67
  method_source
68
- rake (>= 0.8.7)
68
+ rake (>= 0.13)
69
69
  thor (~> 1.0)
70
70
  rainbow (3.0.0)
71
- rake (13.0.3)
71
+ rake (13.0.6)
72
72
  regexp_parser (2.1.1)
73
73
  rexml (3.2.5)
74
74
  rspec (3.10.0)
@@ -92,27 +92,27 @@ GEM
92
92
  rspec-mocks (~> 3.10)
93
93
  rspec-support (~> 3.10)
94
94
  rspec-support (3.10.2)
95
- rubocop (1.14.0)
95
+ rubocop (1.18.3)
96
96
  parallel (~> 1.10)
97
97
  parser (>= 3.0.0.0)
98
98
  rainbow (>= 2.2.2, < 4.0)
99
99
  regexp_parser (>= 1.8, < 3.0)
100
100
  rexml
101
- rubocop-ast (>= 1.5.0, < 2.0)
101
+ rubocop-ast (>= 1.7.0, < 2.0)
102
102
  ruby-progressbar (~> 1.7)
103
103
  unicode-display_width (>= 1.4.0, < 3.0)
104
- rubocop-ast (1.5.0)
104
+ rubocop-ast (1.7.0)
105
105
  parser (>= 3.0.1.1)
106
- rubocop-performance (1.11.3)
106
+ rubocop-performance (1.11.4)
107
107
  rubocop (>= 1.7.0, < 2.0)
108
108
  rubocop-ast (>= 0.4.0)
109
- rubocop-rspec (2.3.0)
109
+ rubocop-rspec (2.4.0)
110
110
  rubocop (~> 1.0)
111
111
  rubocop-ast (>= 1.1.0)
112
112
  ruby-progressbar (1.11.0)
113
- ruby_parser (3.15.1)
114
- sexp_processor (~> 4.9)
115
- sexp_processor (4.15.2)
113
+ ruby_parser (3.16.0)
114
+ sexp_processor (~> 4.15, >= 4.15.1)
115
+ sexp_processor (4.15.3)
116
116
  thor (1.1.0)
117
117
  tzinfo (2.0.4)
118
118
  concurrent-ruby (~> 1.0)
@@ -135,4 +135,4 @@ DEPENDENCIES
135
135
  rubocop-rspec
136
136
 
137
137
  BUNDLED WITH
138
- 2.2.17
138
+ 2.2.19
data/docs/NAME.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```ruby
6
6
  # 1. Pattern
7
- /^([A-Za-z'"-]+\s+){1,4}[A-Za-z'"-]*\z/
7
+ /^([A-Za-z0-9'-]+\s+){1,4}[A-Za-z0-9'-]*\z/
8
8
  ```
9
9
 
10
10
  #### Usage
@@ -2,6 +2,6 @@
2
2
 
3
3
  class NameValidator < BaseValidator
4
4
 
5
- REGEXP = /^([A-Za-z'"-]+\s+){1,4}[A-Za-z'"-]*\z/.freeze
5
+ REGEXP = /^([A-Za-z0-9'-]+\s+){1,4}[A-Za-z0-9'-]*\z/.freeze
6
6
 
7
7
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Validators
5
5
 
6
- VERSION = '1.1.2'
6
+ VERSION = '1.2.0'
7
7
 
8
8
  end
9
9
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  )
26
26
  else
27
27
  raise 'RubyGems 2.0 or newer is required to protect against ' \
28
- 'public gem pushes.'
28
+ 'public gem pushes.'
29
29
  end
30
30
 
31
31
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-07 00:00:00.000000000 Z
11
+ date: 2021-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.2.17
263
+ rubygems_version: 3.2.19
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Collection of ActiveModel/ActiveRecord validators