maskedinput-rails 1.4.0.0 → 1.4.1.0

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
  SHA1:
3
- metadata.gz: 371e6a54d30e96bf358999264df196758885829c
4
- data.tar.gz: deffdca2fbbeb5367399f7a7525c53830586fe63
3
+ metadata.gz: db8e42427a72eb2841bb2d85043a8180a83ef9b5
4
+ data.tar.gz: fef81fa4eac627f6ef32d54d11676854b703b90c
5
5
  SHA512:
6
- metadata.gz: 30da21c8a20d2a1e7274d0ae0136b83478aebbe70316f75f132ffc20c654d33ad041c15f58b3f88bbe57b4402084d97cade4d1160b041bcfe6c4938ee2eae1b8
7
- data.tar.gz: 5d23f0119f5a6788689e4b5aa1912e44acfa720fd28c2c51ff46dca4ceec8843f437d465f3d0715b72d88e921374ed39c97447a8cfbcd2dc04d492b4814fa031
6
+ metadata.gz: 71f18e77687f31751192993aa0a56b6bcb5a5a0d84f8d997bea537acf1edd8084873b42954c0cca7f37362ed3debcbc7cfe778604e8df815d354ad810ff64dec
7
+ data.tar.gz: 2bc9375644db27ed68afc47cc681ca1d8870328e1a16704319561d5db3ac10502587a4f0f04c98c8a6d48f7f1d903339b9016c8cfb3d41b3bc53c7e59e0e8c59
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "maskedinput-rails"
7
- gem.version = "1.4.0.0"
7
+ gem.version = "1.4.1.0"
8
8
  gem.authors = ["Carlos Alexandro Becker"]
9
9
  gem.email = ["caarlos0@gmail.com"]
10
10
  gem.description = %q{jquery.maskedinput for rails.}
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  jQuery Masked Input Plugin
3
- Copyright (c) 2007 - 2014 Josh Bush (digitalbush.com)
3
+ Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com)
4
4
  Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
5
- Version: 1.4.0
5
+ Version: 1.4.1
6
6
  */
7
7
  !function(factory) {
8
8
  "function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory("object" == typeof exports ? require("jquery") : jQuery);
@@ -87,7 +87,7 @@
87
87
  }
88
88
  function androidInputEvent() {
89
89
  var curVal = input.val(), pos = input.caret();
90
- if (curVal.length < oldVal.length) {
90
+ if (oldVal && oldVal.length && oldVal.length > curVal.length) {
91
91
  for (checkVal(!0); pos.begin > 0 && !tests[pos.begin - 1]; ) pos.begin--;
92
92
  if (0 === pos.begin) for (;pos.begin < firstNonMaskPos && !tests[pos.begin]; ) pos.begin++;
93
93
  input.caret(pos.begin, pos.begin);
@@ -166,7 +166,7 @@
166
166
  clearTimeout(caretTimeoutId);
167
167
  var pos;
168
168
  focusText = input.val(), pos = checkVal(), caretTimeoutId = setTimeout(function() {
169
- writeBuffer(), pos == mask.replace("?", "").length ? input.caret(0, pos) : input.caret(pos);
169
+ input.get(0) === document.activeElement && (writeBuffer(), pos == mask.replace("?", "").length ? input.caret(0, pos) : input.caret(pos));
170
170
  }, 10);
171
171
  }
172
172
  }).on("blur.mask", blurEvent).on("keydown.mask", keydownEvent).on("keypress.mask", keypressEvent).on("input.mask paste.mask", function() {
@@ -179,4 +179,4 @@
179
179
  });
180
180
  }
181
181
  });
182
- });
182
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maskedinput-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.0
4
+ version: 1.4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Alexandro Becker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: jquery.maskedinput for rails.
14
14
  email:
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.4.5
47
+ rubygems_version: 2.6.11
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: jquery.maskedinput for rails.