lite-validators 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/lite/validators.rb +33 -8
- data/lib/lite/validators/csv_validator.rb +1 -1
- data/lib/lite/validators/ip_address_validator.rb +1 -1
- data/lib/lite/validators/railtie.rb +1 -1
- data/lib/lite/validators/time_zone_validator.rb +1 -1
- data/lib/lite/validators/url_validator.rb +1 -1
- data/lib/lite/validators/version.rb +1 -1
- data/lib/{lite/validators/locales → locales}/en.yml +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c37efc593f813e90d3bdd6969673232ce5fb342e7bca15b149fd2315bc25926
|
4
|
+
data.tar.gz: e295cb6a4173f32d656a2ad209c2506afe12e21319f157fc414cb218338e1286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a0f783a9c482a6dda7da03371c83707d9daa9589955dac3ba9e6de75cf3eafc88006d9320312bc5b4ffbdab071b3168232d8843cb7b424f88cbdb9ad159774
|
7
|
+
data.tar.gz: 97420a77ce746cca98d4cf074d700c6df49035a15c8416a87633823c1506428e8f8a23fd0f79aa8b47962db0a51531b132dbc3a2c632776672525cc0eeacad56
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/lite/validators.rb
CHANGED
@@ -4,11 +4,36 @@ require 'active_model' unless defined?(ActiveModel)
|
|
4
4
|
|
5
5
|
require 'lite/validators/railtie' if defined?(Rails::Railtie)
|
6
6
|
require 'lite/validators/version'
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
require 'lite/validators/base_validator'
|
8
|
+
require 'lite/validators/alpha_validator'
|
9
|
+
require 'lite/validators/alpha_numeric_validator'
|
10
|
+
require 'lite/validators/base64_validator'
|
11
|
+
require 'lite/validators/boolean_validator'
|
12
|
+
require 'lite/validators/compare_validator'
|
13
|
+
require 'lite/validators/coordinate_validator'
|
14
|
+
require 'lite/validators/credit_card_validator'
|
15
|
+
require 'lite/validators/currency_validator'
|
16
|
+
require 'lite/validators/cusip_validator'
|
17
|
+
require 'lite/validators/email_validator'
|
18
|
+
require 'lite/validators/ein_validator'
|
19
|
+
require 'lite/validators/file_content_type_validator'
|
20
|
+
require 'lite/validators/file_extension_validator'
|
21
|
+
require 'lite/validators/file_size_validator'
|
22
|
+
require 'lite/validators/csv_validator'
|
23
|
+
require 'lite/validators/hex_validator'
|
24
|
+
require 'lite/validators/imei_validator'
|
25
|
+
require 'lite/validators/ip_address_validator'
|
26
|
+
require 'lite/validators/isbn_validator'
|
27
|
+
require 'lite/validators/isin_validator'
|
28
|
+
require 'lite/validators/mac_address_validator'
|
29
|
+
require 'lite/validators/name_validator'
|
30
|
+
require 'lite/validators/password_validator'
|
31
|
+
require 'lite/validators/phone_number_validator'
|
32
|
+
require 'lite/validators/sedol_validator'
|
33
|
+
require 'lite/validators/slug_validator'
|
34
|
+
require 'lite/validators/ssn_validator'
|
35
|
+
require 'lite/validators/time_zone_validator'
|
36
|
+
require 'lite/validators/type_validator'
|
37
|
+
require 'lite/validators/url_validator'
|
38
|
+
require 'lite/validators/username_validator'
|
39
|
+
require 'lite/validators/uuid_validator'
|
@@ -6,7 +6,7 @@ module Lite
|
|
6
6
|
|
7
7
|
initializer 'lite-validators.configure_locales' do |app|
|
8
8
|
Array(app.config.i18n.available_locales).each do |locale|
|
9
|
-
path = File.expand_path("
|
9
|
+
path = File.expand_path("../../../locales/#{locale}.yml", __FILE__)
|
10
10
|
next unless File.file?(path)
|
11
11
|
|
12
12
|
I18n.load_path << path
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
@@ -239,7 +239,6 @@ files:
|
|
239
239
|
- lib/lite/validators/ip_address_validator.rb
|
240
240
|
- lib/lite/validators/isbn_validator.rb
|
241
241
|
- lib/lite/validators/isin_validator.rb
|
242
|
-
- lib/lite/validators/locales/en.yml
|
243
242
|
- lib/lite/validators/mac_address_validator.rb
|
244
243
|
- lib/lite/validators/name_validator.rb
|
245
244
|
- lib/lite/validators/password_validator.rb
|
@@ -254,6 +253,7 @@ files:
|
|
254
253
|
- lib/lite/validators/username_validator.rb
|
255
254
|
- lib/lite/validators/uuid_validator.rb
|
256
255
|
- lib/lite/validators/version.rb
|
256
|
+
- lib/locales/en.yml
|
257
257
|
- lite-validators.gemspec
|
258
258
|
homepage: http://drexed.github.io/lite-validators
|
259
259
|
licenses:
|