validators 2.5.3 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +8 -4
- data/Rakefile +9 -4
- data/data/disposable.json +1412 -23
- data/data/tld.json +391 -5
- data/lib/validators/version.rb +1 -1
- data/{spec → test}/schema.rb +0 -0
- data/{spec → test}/support/dates.rb +0 -0
- data/{spec → test}/support/emails.rb +0 -0
- data/{spec → test}/support/hostnames.rb +0 -0
- data/{spec → test}/support/ips.rb +0 -0
- data/{spec → test}/support/models.rb +0 -0
- data/{spec → test}/support/translations.yml +0 -0
- data/{spec → test}/support/urls.rb +0 -0
- data/test/test_helper.rb +41 -0
- data/test/validators/disposable_email_test.rb +23 -0
- data/test/validators/ip_test.rb +21 -0
- data/{spec/validators/validates_cnpj_format_of_spec.rb → test/validators/validates_cnpj_format_of_test.rb} +10 -10
- data/{spec/validators/validates_cpf_format_of_spec.rb → test/validators/validates_cpf_format_of_test.rb} +10 -10
- data/test/validators/validates_datetime/after_option_test.rb +75 -0
- data/test/validators/validates_datetime/before_option_test.rb +20 -0
- data/test/validators/validates_datetime/defaults_test.rb +37 -0
- data/test/validators/validates_email_format_of_test.rb +76 -0
- data/test/validators/validates_hostname_format_of/with_tld_validation_test.rb +25 -0
- data/test/validators/validates_hostname_format_of/without_tld_validation_test.rb +27 -0
- data/test/validators/validates_ip_address/ipv4_test.rb +20 -0
- data/test/validators/validates_ip_address/ipv6_test.rb +20 -0
- data/test/validators/validates_ip_address_test.rb +33 -0
- data/test/validators/validates_ownership_of_test.rb +65 -0
- data/test/validators/validates_ssh_private_key/bits_test.rb +44 -0
- data/test/validators/validates_ssh_private_key/common_test.rb +37 -0
- data/test/validators/validates_ssh_private_key/dsa_test.rb +36 -0
- data/test/validators/validates_ssh_private_key/rsa_test.rb +36 -0
- data/test/validators/validates_ssh_public_key_test.rb +37 -0
- data/test/validators/validates_url_format_of/with_tld_validation_test.rb +15 -0
- data/test/validators/validates_url_format_of/without_tld_validation_test.rb +48 -0
- data/validators.gemspec +2 -2
- metadata +65 -49
- data/.rspec +0 -1
- data/spec/spec_helper.rb +0 -38
- data/spec/validators/disposable_email_spec.rb +0 -31
- data/spec/validators/ip_spec.rb +0 -25
- data/spec/validators/validates_datetime_spec.rb +0 -125
- data/spec/validators/validates_email_format_of_spec.rb +0 -70
- data/spec/validators/validates_hostname_format_of_spec.rb +0 -53
- data/spec/validators/validates_ip_address_spec.rb +0 -59
- data/spec/validators/validates_ownership_of_spec.rb +0 -69
- data/spec/validators/validates_ssh_private_key_spec.rb +0 -152
- data/spec/validators/validates_ssh_public_key_spec.rb +0 -39
- data/spec/validators/validates_url_format_of_spec.rb +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239b1fb222056d2e4b90c6a67f067bf75b013090
|
4
|
+
data.tar.gz: 9ebe96f85ffd7515c30fe17ad82d0302cf792e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8510fc2a25f03d90a36ac81b0d051d903863235fccdce381347c6e64831ca1c89d243c8b1c310d4b7933916bf93f3770c19002fd05412f1cc895714197f04720
|
7
|
+
data.tar.gz: f728920d75be8ba9d104db10e5d17a2e9f3919e8015aa70f54519fa67fb45222b729f0bff5093ebe40a09e23710c0a4e1af563ff463eb41163ad4e52018f277f
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
sudo: false
|
4
|
-
script: bundle exec
|
4
|
+
script: bundle exec rake
|
5
|
+
notifications:
|
6
|
+
email: false
|
5
7
|
rvm:
|
6
|
-
- '2.
|
7
|
-
- '2.
|
8
|
-
- '2.
|
8
|
+
- '2.4.1'
|
9
|
+
- '2.3.0'
|
10
|
+
- '2.2.7'
|
9
11
|
addons:
|
10
12
|
code_climate:
|
11
13
|
repo_token:
|
12
14
|
secure: CX0AIDehELC1kcnvfeLLnhKpX68OCh7OhyRuFhJbMLt9NEu5FjLJgR3IF4V/e+BeyUIEi+xidi/Xa9j+06BbCGtjGmmgTde/Zp9qpVHOwsiGXYn4zkZZmudUQXdF/S3CrBkwauXC8HTUS1OIeGylK5fhW/fz+PpwU7ocQahrhvc=
|
15
|
+
after_success:
|
16
|
+
- bundle exec codeclimate-test-reporter
|
data/Rakefile
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << "test"
|
6
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
7
|
+
t.warning = false
|
8
|
+
end
|
9
|
+
|
10
|
+
task :default => :test
|