lite-validators 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23a7f2d691503fe34e366813d7b5c2eac84a510f1412864c31ab3ed85c0c6235
4
- data.tar.gz: 50dd36aaf0fce358533c55aab4e3660dc484faa9b611c73266ba12f88c6be91f
3
+ metadata.gz: af89c7b65c88e377793dfbb86b5ba04299ded9b1732d67316704632bbeb61e01
4
+ data.tar.gz: 8e6f7d70928f4e90a98342387997c41a66c77c01d880060958a666e1392bac84
5
5
  SHA512:
6
- metadata.gz: 000a326dd1c6250166e50209dbb4bc13d29548ffa063b1b9fb952231c9ab32546c6838f47338a54ff2d6bdb3fe2fcba931d83a1f85920d9cc53dc9ea8a2bc8b8
7
- data.tar.gz: 5de2ccebc88831f04f1be40c0118288c3d12238e0673d6f1047bc1c3bad054d964bfed42ce84da905b6595e4b2b5174aa1ccf2a21d63a4a242bce012c4382b4c
6
+ metadata.gz: 9aad3aea74b1ddc245e5f2eb1b023a1f23f8bca17d713c1a3ff406983850094dca79f610e03b4a46c94f4232a4ecc37136c5708ef706c507ec2c3e26795b0b84
7
+ data.tar.gz: aa607e243448fb631fc58723cb0ddaa51c7151bb38841c2b423db2dde48370c0c596d865c328c8e3845e4d84d04b683dee1f9b13e2a61decdef616a7ddbb6815
@@ -23,6 +23,8 @@ Metrics/ClassLength:
23
23
  - 'lib/lite/validators/credit_card_validator.rb'
24
24
  RSpec/ExampleLength:
25
25
  Enabled: false
26
+ RSpec/LeakyConstantDeclaration:
27
+ Enabled: false
26
28
  RSpec/MultipleExpectations:
27
29
  Enabled: false
28
30
  Style/Documentation:
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+
9
+ ## [1.0.4] - 2019-08-09
10
+ ### Added
11
+ - Added more boolean value checks
12
+
8
13
  ## [1.0.3] - 2019-07-08
9
14
  ### Added
10
15
  - Require rails/railtie in railtie
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-validators (1.0.3)
4
+ lite-validators (1.0.4)
5
5
  activemodel
6
6
 
7
7
  GEM
@@ -34,7 +34,7 @@ GEM
34
34
  crass (1.0.4)
35
35
  diff-lcs (1.3)
36
36
  erubi (1.8.0)
37
- fasterer (0.5.1)
37
+ fasterer (0.6.0)
38
38
  colorize (~> 0.7)
39
39
  ruby_parser (>= 3.13.0)
40
40
  i18n (1.6.0)
@@ -57,7 +57,7 @@ GEM
57
57
  rails-dom-testing (2.0.3)
58
58
  activesupport (>= 4.2.0)
59
59
  nokogiri (>= 1.6)
60
- rails-html-sanitizer (1.0.4)
60
+ rails-html-sanitizer (1.2.0)
61
61
  loofah (~> 2.2, >= 2.2.2)
62
62
  railties (5.2.3)
63
63
  actionpack (= 5.2.3)
@@ -66,7 +66,7 @@ GEM
66
66
  rake (>= 0.8.7)
67
67
  thor (>= 0.19.0, < 2.0)
68
68
  rainbow (3.0.0)
69
- rake (12.3.2)
69
+ rake (12.3.3)
70
70
  rspec (3.8.0)
71
71
  rspec-core (~> 3.8.0)
72
72
  rspec-expectations (~> 3.8.0)
@@ -88,16 +88,16 @@ GEM
88
88
  rspec-mocks (~> 3.8.0)
89
89
  rspec-support (~> 3.8.0)
90
90
  rspec-support (3.8.2)
91
- rubocop (0.72.0)
91
+ rubocop (0.74.0)
92
92
  jaro_winkler (~> 1.5.1)
93
93
  parallel (~> 1.10)
94
94
  parser (>= 2.6)
95
95
  rainbow (>= 2.2.2, < 4.0)
96
96
  ruby-progressbar (~> 1.7)
97
97
  unicode-display_width (>= 1.4.0, < 1.7)
98
- rubocop-performance (1.4.0)
98
+ rubocop-performance (1.4.1)
99
99
  rubocop (>= 0.71.0)
100
- rubocop-rspec (1.33.0)
100
+ rubocop-rspec (1.35.0)
101
101
  rubocop (>= 0.60.0)
102
102
  ruby-progressbar (1.10.1)
103
103
  ruby_parser (3.13.1)
data/README.md CHANGED
@@ -66,7 +66,7 @@ Or install it yourself as:
66
66
 
67
67
  ## 3rd-party
68
68
 
69
- The following are highly recommended 3rd party validators to supplement your workflow:
69
+ The following are highly recommended 3rd-party validators to supplement your workflow:
70
70
 
71
71
  * **DateTime:** Validates Timeliness - https://github.com/adzap/validates_timeliness
72
72
  * **Existence:** Validates Existence - https://github.com/perfectline/validates_existence
@@ -3,7 +3,7 @@
3
3
  class BooleanValidator < BaseValidator
4
4
 
5
5
  VALUES ||= %w[
6
- 1 0 t f true false
6
+ 1 0 t f true false y n yes no on off
7
7
  ].freeze
8
8
 
9
9
  private
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Validators
5
5
 
6
- VERSION ||= '1.0.3'
6
+ VERSION ||= '1.0.4'
7
7
 
8
8
  end
9
9
  end
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.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel