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
- YjkwMjZiM2JhNjI1MzIyOTFmMGM1MDIxZjUwYjU3MmFiZDExMTQ3ZQ==
4
+ M2EzNzYwZDg3NWQ0YTI0OWI3ZjEwYzVjNTNhOWMwNTAwZTM0YWZmNw==
5
5
  data.tar.gz: !binary |-
6
- ZDA1MzZjYzlkN2M3NTgzMzQ3NGM1ZjRiOTIxNGUzMWM0N2ExYmRmNw==
6
+ YjkzNzhmNTI2ODlkZjEzMzE0N2NiYmIxNTZkMWMwMzQyZWFhZWQwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDU5Mzg3Yjc3YTUzYzMyNWFmMzZjZjllZGZhMzkyMmYyOWQ1NzEwMjdjZTZi
10
- YjgzOWU2ZDA1NmFkMmFhN2ZkMzdjYzIzNDU5Y2M3MjUzZDZlNTA0OWZhZTZh
11
- M2MyMThkZDVjOTQyMjJmZTM4ZWVhZTQzNjNiMzBhOWYxMTI5MWE=
9
+ M2I5NmE1MTEwMmI3YmU2MGU3ZmExYmQyYjA5YjI5Mzk2ZDE0MDU4NGE3Mjk3
10
+ MzNjMDA0NGIwNDg4Yjc2OTQzNDgyYTk0YzIwMTgzNGFhZjczZDA4MDVkNTlm
11
+ OGY0OWQ1NGU3ZDBhZjk0MDBhOTk3NTdiNjRiZWViZjdjMzU4OTI=
12
12
  data.tar.gz: !binary |-
13
- YmM2NTU0NzQyMWU2NWZmMTIzMTVhMTRmYjY3MzY1N2Y5ZTFlMTk2YjdkOWY4
14
- OGYxMDJkYmQ0MTAzM2Y2N2ZhOTY4YmIwMjEwZDkzMzdkZWRhMWExNDE3ZjUy
15
- NTM5OTUzZTkwZWI3YzNjNjE4NGJjOTdmNTI5ZWRiNGFkOTE5ZDk=
13
+ ZGJlYzQ1NzRhOWNmY2VhNTUwNTJhZGZmODg4YmNiYjEyYzQxMDVhMzcyMzU1
14
+ ODVjZjljMjYzMDFhY2MyMjVmMzNiYjlmNTgzOTQ1N2U0NTA2N2UzYmY1ZDE4
15
+ YzQ5ZGQxMzkxZmIwZTViNDE1NmJhZmQ2ODM5MWUxZTc0Yjc5ZDk=
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Ghostformat
3
3
  module Rails
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -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 parseFloat(value).toFixed().replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');
12
+ return value.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');
13
13
  };
14
14
  formatSSN = function(value) {
15
- return parseFloat(value).toFixed().replace(/(\d{3})(\d{2})(\d{4})/, '$1-$2-$3');
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.1
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-03 00:00:00.000000000 Z
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: {}