activeadmin-regex-input 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: 1e7f8e662f6126811d3592d8ac4c4e7789b89373
4
- data.tar.gz: 8d9a2e8b6d6a9c3e94ddb8751c138384dcab3a0d
3
+ metadata.gz: c8ae755b97161ae9810e60465904167914270279
4
+ data.tar.gz: f3f54691637c9cbd28a0a29920d07a4251a3ac25
5
5
  SHA512:
6
- metadata.gz: b350d11d0619e5e3f310e3ef9adb20860cacec4bb37917e26e53f2140d2b7dc9beaa63f5cb3d3e02ea7e085755daa5955e816237c665ea839cbc2883586fafad
7
- data.tar.gz: 311e601ee56b7e003dc858534daed776b763cbee15f4233644b344226a6f9d6b9ceffa485e570d37dc728fec8a034f73429b9febabf2df1556fb20c4cf1c1e63
6
+ metadata.gz: f24b4bc0d7777ea7621c26dbef11398a311cfb42a07f9e70995cfa11baaf34064175d9239d41bd048ccd429bca4c0ce512c1094453ffbcd657bf245f2daa42b6
7
+ data.tar.gz: 48abe5d4ca19742d4124b9b9a437ffe974dfee37bdc3004eaae021faa9412564f30c619a362dbebf65aaf62b5ff5c28a50d1402d3696c98b93c180fbd3dde501
@@ -4,7 +4,7 @@ require 'activeadmin/regex-input/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'activeadmin-regex-input'
7
- s.version = '0.2.0'
7
+ s.version = '0.2.1'
8
8
  s.date = '2018-03-14'
9
9
  s.summary = "Active Admin Regex Input"
10
10
  s.description = "A simple filter input for active admin with checking at client if input match predefined regex."
@@ -37,7 +37,7 @@ function initRegexInputs(inputs) {
37
37
 
38
38
  // Show popover and change color if current input doesn't match regex
39
39
  input.on('keyup', event => {
40
- if (!regex.test(input.val())) {
40
+ if (!regex.test(input.val()) && !(input.val() === '' || input.val() === null)) {
41
41
  input.css('border-color', 'red');
42
42
  input.webuiPopover('show');
43
43
  } else {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-regex-input
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
  - Canh Nguyen
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.6.11
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Active Admin Regex Input