jquery-ghostformat-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2EzNzYwZDg3NWQ0YTI0OWI3ZjEwYzVjNTNhOWMwNTAwZTM0YWZmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjkzNzhmNTI2ODlkZjEzMzE0N2NiYmIxNTZkMWMwMzQyZWFhZWQwZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2I5NmE1MTEwMmI3YmU2MGU3ZmExYmQyYjA5YjI5Mzk2ZDE0MDU4NGE3Mjk3
|
10
|
+
MzNjMDA0NGIwNDg4Yjc2OTQzNDgyYTk0YzIwMTgzNGFhZjczZDA4MDVkNTlm
|
11
|
+
OGY0OWQ1NGU3ZDBhZjk0MDBhOTk3NTdiNjRiZWViZjdjMzU4OTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGJlYzQ1NzRhOWNmY2VhNTUwNTJhZGZmODg4YmNiYjEyYzQxMDVhMzcyMzU1
|
14
|
+
ODVjZjljMjYzMDFhY2MyMjVmMzNiYjlmNTgzOTQ1N2U0NTA2N2UzYmY1ZDE4
|
15
|
+
YzQ5ZGQxMzkxZmIwZTViNDE1NmJhZmQ2ODM5MWUxZTc0Yjc5ZDk=
|
@@ -9,10 +9,10 @@
|
|
9
9
|
return '$' + parseFloat(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
|
10
10
|
}
|
11
11
|
formatPhone = function(value) {
|
12
|
-
return
|
12
|
+
return value.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');
|
13
13
|
};
|
14
14
|
formatSSN = function(value) {
|
15
|
-
return
|
15
|
+
return value.replace(/(\d{3})(\d{2})(\d{4})/, '$1-$2-$3');
|
16
16
|
};
|
17
17
|
setFormat = function(unformatted_val) {
|
18
18
|
if (unformatted_val === '') return
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-ghostformat-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdul Miah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -48,7 +48,7 @@ files:
|
|
48
48
|
- lib/jquery-ghostformat-rails/version.rb
|
49
49
|
- lib/jquery-ghostformat-rails.rb
|
50
50
|
- vendor/assets/javascripts/jquery.ghostFormat.js
|
51
|
-
homepage:
|
51
|
+
homepage: http://miahabdu.github.io/jquery.ghostFormat/
|
52
52
|
licenses:
|
53
53
|
- MIT
|
54
54
|
metadata: {}
|