autonumeric-rails 1.9.37 → 1.9.39
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* autoNumeric.js
|
3
3
|
* @author: Bob Knothe
|
4
4
|
* @author: Sokolov Yura
|
5
|
-
* @version: 1.9.
|
5
|
+
* @version: 1.9.39 - 2015-07-17 GMT 5:00 PM / 19:00
|
6
6
|
*
|
7
7
|
* Created by Robert J. Knothe on 2010-10-25. Please report any bugs to https://github.com/BobKnothe/autoNumeric
|
8
8
|
* Contributor by Sokolov Yura on 2010-11-07
|
@@ -946,7 +946,7 @@
|
|
946
946
|
* the following HTML data attribute is REQUIRED (data-an-default="same value as the value attribute")
|
947
947
|
* example: <asp:TextBox runat="server" id="someID" value="1234.56" data-an-default="1234.56">
|
948
948
|
*/
|
949
|
-
if (setValue && $this.val() !== '' && ((settings.anDefault ===
|
949
|
+
if (setValue && $this.val() !== '' && ((settings.anDefault === null && $this[0].value === $this.prop('defaultValue')) || (settings.anDefault !== null && settings.anDefault.toString() === $this.val()))) {
|
950
950
|
$this.autoNumeric('set', $this.val());
|
951
951
|
}
|
952
952
|
}
|
@@ -1065,8 +1065,8 @@
|
|
1065
1065
|
groupedValue = autoGroup(value, $settings);
|
1066
1066
|
}
|
1067
1067
|
if (groupedValue !== holder.inVal || groupedValue !== origValue) {
|
1068
|
-
$this.change();
|
1069
1068
|
$this.val(groupedValue);
|
1069
|
+
$this.change();
|
1070
1070
|
delete holder.inVal;
|
1071
1071
|
}
|
1072
1072
|
});
|
@@ -1444,10 +1444,22 @@
|
|
1444
1444
|
* lZero: 'keep', - allows leading zeros to be entered. on fousout zeros will be retained.
|
1445
1445
|
*/
|
1446
1446
|
lZero: 'allow',
|
1447
|
+
/** determine if the select all keyboard command will select
|
1448
|
+
* the complete input text or only the input numeric value
|
1449
|
+
* if the currency symbol is between the numeric value and the negative sign only the numeric value will sellected
|
1450
|
+
*/
|
1451
|
+
sNumber: true,
|
1447
1452
|
/** determine if the default value will be formatted on page ready.
|
1448
1453
|
* true = automatically formats the default value on page ready
|
1449
1454
|
* false = will not format the default value
|
1450
1455
|
*/
|
1451
|
-
aForm: true
|
1456
|
+
aForm: true,
|
1457
|
+
/** helper option for ASP.NET postback
|
1458
|
+
* should be the value of the unformatted default value
|
1459
|
+
* examples:
|
1460
|
+
* no default value='' {anDefault: ''}
|
1461
|
+
* value=1234.56 {anDefault: '1234.56'}
|
1462
|
+
*/
|
1463
|
+
anDefault: null
|
1452
1464
|
};
|
1453
1465
|
}(jQuery));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
//= require autoNumeric-1.9.
|
1
|
+
//= require autoNumeric-1.9.39.js
|
2
2
|
//= require autonumeric_ujs.js
|
metadata
CHANGED
@@ -1,167 +1,190 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autonumeric-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.39
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- randoum
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-08-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: jquery-rails
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 2.0.2
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.0.2
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: bundler
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '1.3'
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '1.3'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rake
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rails
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- -
|
67
|
+
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: 4.2.0
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- -
|
75
|
+
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: 4.2.0
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: sqlite3
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- -
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- -
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: rspec-rails
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- -
|
99
|
+
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- -
|
107
|
+
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
96
109
|
version: '0'
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: rspec-html-matchers
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - ! '>='
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
|
-
- -
|
123
|
+
- - ! '>='
|
109
124
|
- !ruby/object:Gem::Version
|
110
125
|
version: '0'
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: database_cleaner
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
|
-
- -
|
131
|
+
- - ! '>='
|
116
132
|
- !ruby/object:Gem::Version
|
117
133
|
version: '0'
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
|
-
- -
|
139
|
+
- - ! '>='
|
123
140
|
- !ruby/object:Gem::Version
|
124
141
|
version: '0'
|
125
142
|
- !ruby/object:Gem::Dependency
|
126
143
|
name: capybara
|
127
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
128
146
|
requirements:
|
129
|
-
- -
|
147
|
+
- - ! '>='
|
130
148
|
- !ruby/object:Gem::Version
|
131
149
|
version: '0'
|
132
150
|
type: :development
|
133
151
|
prerelease: false
|
134
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
135
154
|
requirements:
|
136
|
-
- -
|
155
|
+
- - ! '>='
|
137
156
|
- !ruby/object:Gem::Version
|
138
157
|
version: '0'
|
139
158
|
- !ruby/object:Gem::Dependency
|
140
159
|
name: selenium-webdriver
|
141
160
|
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
142
162
|
requirements:
|
143
|
-
- -
|
163
|
+
- - ! '>='
|
144
164
|
- !ruby/object:Gem::Version
|
145
165
|
version: '0'
|
146
166
|
type: :development
|
147
167
|
prerelease: false
|
148
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
149
170
|
requirements:
|
150
|
-
- -
|
171
|
+
- - ! '>='
|
151
172
|
- !ruby/object:Gem::Version
|
152
173
|
version: '0'
|
153
174
|
- !ruby/object:Gem::Dependency
|
154
175
|
name: headless
|
155
176
|
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
156
178
|
requirements:
|
157
|
-
- -
|
179
|
+
- - ! '>='
|
158
180
|
- !ruby/object:Gem::Version
|
159
181
|
version: '0'
|
160
182
|
type: :development
|
161
183
|
prerelease: false
|
162
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
163
186
|
requirements:
|
164
|
-
- -
|
187
|
+
- - ! '>='
|
165
188
|
- !ruby/object:Gem::Version
|
166
189
|
version: '0'
|
167
190
|
description: Rails ready-to-use autoNumeric.js library that automatically formats
|
@@ -172,8 +195,8 @@ executables: []
|
|
172
195
|
extensions: []
|
173
196
|
extra_rdoc_files: []
|
174
197
|
files:
|
175
|
-
-
|
176
|
-
-
|
198
|
+
- .gitignore
|
199
|
+
- .rspec
|
177
200
|
- CHANGELOG.md
|
178
201
|
- Gemfile
|
179
202
|
- LICENSE.txt
|
@@ -231,31 +254,32 @@ files:
|
|
231
254
|
- spec/spec_helper.rb
|
232
255
|
- spec/support/shared_examples.rb
|
233
256
|
- spec/support/wait_for_jquery.rb
|
234
|
-
- vendor/assets/javascripts/autoNumeric-1.9.
|
257
|
+
- vendor/assets/javascripts/autoNumeric-1.9.39.js
|
235
258
|
- vendor/assets/javascripts/autonumeric.js
|
236
259
|
- vendor/assets/javascripts/autonumeric_ujs.js
|
237
260
|
homepage: https://github.com/randoum/autonumeric-rails
|
238
261
|
licenses:
|
239
262
|
- MIT
|
240
|
-
metadata: {}
|
241
263
|
post_install_message:
|
242
264
|
rdoc_options: []
|
243
265
|
require_paths:
|
244
266
|
- lib
|
245
267
|
required_ruby_version: !ruby/object:Gem::Requirement
|
268
|
+
none: false
|
246
269
|
requirements:
|
247
|
-
- -
|
270
|
+
- - ! '>='
|
248
271
|
- !ruby/object:Gem::Version
|
249
272
|
version: '0'
|
250
273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
|
+
none: false
|
251
275
|
requirements:
|
252
|
-
- -
|
276
|
+
- - ! '>='
|
253
277
|
- !ruby/object:Gem::Version
|
254
278
|
version: '0'
|
255
279
|
requirements: []
|
256
280
|
rubyforge_project:
|
257
|
-
rubygems_version:
|
281
|
+
rubygems_version: 1.8.23.2
|
258
282
|
signing_key:
|
259
|
-
specification_version:
|
283
|
+
specification_version: 3
|
260
284
|
summary: Wrap autoNumeric.js library ready-to-use for rails
|
261
285
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 5fec256118f38c9fab3e38a17e0deb8e447eacee
|
4
|
-
data.tar.gz: 6b02d02eca8c48a242cf23504d0dfdea1db39140
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: b7e794fa721b2d3b1ee171dc5895c9dbc2885bfc1375b7ef19e52be1ef9208ddebb6bad548c47250c071155899bd9ecb4033890b4b7faf425412d1bc7cf37830
|
7
|
-
data.tar.gz: 7bf4acc7b2ef696a3f8239f857f4816f6607d47c2cdc7d4aded93c01548b4cb317f98211822fa11fe5832e25ecf32dbb43b6dfe9a11e24d2794551257a3c9ca9
|