ico-validator 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 6cd1b0fb28c0955404b04e7508c5b8cfce2c0b75
4
- data.tar.gz: c4ae1c9962c5221705327bb67af973f4aeb60cc6
3
+ metadata.gz: 445efa9a4a16a63921488b1705c8466118f23919
4
+ data.tar.gz: 4523e53a5c307ddddcc2fac7a8e2771add7caad6
5
5
  SHA512:
6
- metadata.gz: c3c3f4cdd367dbe7e200bdb1e1992fa5914247dcf23b9b9e0bd82a508b8e16083ac368f3e717235fc7479a5b810c4cd9750ebbfb23e17c7c1507749830d3a17c
7
- data.tar.gz: 26f387d947bcd1d3aeb67cb861ba217623ad85ba25444b7ee62fd5b44ec18151ee70cc63de79294fd68ef7e52cf1e221daca02c9d329754787c5ac252cd62083
6
+ metadata.gz: 4c4efb7ae56d1d557fbf9b73b2fd0f4db080380431cd0114b168c4ff143d6d699ed607be33add88ce374a48035d1316fc5322ef7f80ecbf6ebba23072123b022
7
+ data.tar.gz: 086d4c1f60feb469964b4c1c63ead9247d621db7a7bb3d2a67d039681ac0edad4b3c8c9ea8df6f47380ae146d4c69dcb2722b8afa3dd8296a86de1a200a324b2
@@ -1,8 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.1
4
+ - 2.2.0
3
5
  - 2.1.1
4
6
  - 2.0.0
5
- - 1.9.3
6
7
  script:
7
8
  - bundle exec rspec
8
9
  - bundle exec rake jasmine:ci
@@ -1,3 +1,7 @@
1
+ ## v0.2.1
2
+
3
+ * Allow blank ICO fields
4
+
1
5
  ## v0.2.0
2
6
 
3
7
  * Added JS validator
@@ -26,7 +26,7 @@ jQuery( function($) {
26
26
 
27
27
  function validate(el) {
28
28
  var value = $(el).val();
29
- if( ico_validator.valid_ico(value) ) {
29
+ if( value.length <= 0 || ico_validator.valid_ico(value) ) {
30
30
  $(el).parent().removeClass('field_with_errors').removeClass('error');
31
31
  } else {
32
32
  $(el).parent().addClass('field_with_errors').addClass('error');
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ico-validator'
7
- spec.version = '0.2.0'
7
+ spec.version = '0.2.1'
8
8
  spec.authors = ['Premysl Donat']
9
9
  spec.email = ['donat@uol.cz']
10
10
  spec.summary = %q{Rails validator for validating format of czech identification number = IC}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ico-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel