jquery-rails 3.0.1 → 3.0.2
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.
Potentially problematic release.
This version of jquery-rails might be problematic. Click here for more details.
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/VERSIONS.md +39 -0
- data/lib/jquery/rails/version.rb +2 -2
- data/vendor/assets/javascripts/jquery_ujs.js +10 -9
- metadata +10 -6
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@ jQuery! For Rails! So great.
|
|
4
4
|
|
5
5
|
This gem provides:
|
6
6
|
|
7
|
-
* jQuery 1.10.
|
7
|
+
* jQuery 1.10.1
|
8
8
|
* the jQuery UJS adapter
|
9
9
|
* assert_select_jquery to test jQuery responses in Ruby tests
|
10
10
|
|
@@ -19,7 +19,7 @@ minor version bump = minor-level updates to jquery
|
|
19
19
|
major version bump = major-level updates to jquery and updates to rails which may be backwards-incompatible
|
20
20
|
```
|
21
21
|
|
22
|
-
See
|
22
|
+
See VERSIONS.md to see which versions of jquery-rails bundle which
|
23
23
|
versions of jQuery.
|
24
24
|
|
25
25
|
## Installation
|
data/VERSIONS.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Bundled Versions
|
2
|
+
|
3
|
+
| Gem | jQuery | jQuery UI |
|
4
|
+
|-----|--------|-----------|
|
5
|
+
| 3.0.1 | 1.10.1 | - |
|
6
|
+
| 3.0.0 | ↾ | - |
|
7
|
+
| 2.3.0 | 1.10.0 | 1.10.3 |
|
8
|
+
| 2.2.2 | ↾ | ↾ |
|
9
|
+
| 2.2.1 | 1.9.1 | ↾ |
|
10
|
+
| 2.2.0 | 1.9.0 | ↾ |
|
11
|
+
| 2.1.4 | 1.8.3 | 1.9.2 |
|
12
|
+
| 2.1.3 | 1.8.2 | ↾ |
|
13
|
+
| 2.1.2 | 1.8.1 | ↾ |
|
14
|
+
| 2.1.1 | ↾ | ↾ |
|
15
|
+
| 2.1.0 | 1.8.0 | 1.8.23 |
|
16
|
+
| 2.0.3 | ↾ | ↾ |
|
17
|
+
| 2.0.2 | 1.7.2 | 1.8.18 |
|
18
|
+
| 2.0.1 | ↾ | ↾ |
|
19
|
+
| 2.0.0 | ↾ | ↾ |
|
20
|
+
| 1.0.19 | 1.7.1 | ↾ |
|
21
|
+
| 1.0.18 | ↾ | ↾ |
|
22
|
+
| 1.0.17 | 1.7.0 | ↾ |
|
23
|
+
| 1.0.16 | 1.6.4 | 1.8.16 |
|
24
|
+
| 1.0.15 | ↾ | ↾ |
|
25
|
+
| 1.0.14 | ↾ | ↾ |
|
26
|
+
| 1.0.13 | 1.6.2 | 1.8.14 |
|
27
|
+
| 1.0.12 | ↾ | ↾ |
|
28
|
+
| 1.0.11 | ↾ | ↾ |
|
29
|
+
| 1.0.10 | ↾ | ↾ |
|
30
|
+
| 1.0.9 | ↾ | ↾ |
|
31
|
+
| 1.0.8 | ↾ | ↾ |
|
32
|
+
| 1.0.7 | ↾ | ↾ |
|
33
|
+
| 1.0.6 | ↾ | ↾ |
|
34
|
+
| 1.0.5 | ↾ | ↾ |
|
35
|
+
| 1.0.4 | ↾ | ↾ |
|
36
|
+
| 1.0.3 | 1.6.1 | ↾ |
|
37
|
+
| 1.0.2 | ↾ | ↾ |
|
38
|
+
| 1.0.1 | ↾ | 1.8.12 |
|
39
|
+
| 1.0.0 | 1.6.0 | - |
|
data/lib/jquery/rails/version.rb
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
20
20
|
var rails;
|
21
|
+
var $document = $(document);
|
21
22
|
|
22
23
|
$.rails = rails = {
|
23
24
|
// Link elements bound by jquery-ujs
|
@@ -279,15 +280,15 @@
|
|
279
280
|
|
280
281
|
};
|
281
282
|
|
282
|
-
if (rails.fire($
|
283
|
+
if (rails.fire($document, 'rails:attachBindings')) {
|
283
284
|
|
284
285
|
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
285
286
|
|
286
|
-
$
|
287
|
+
$document.delegate(rails.linkDisableSelector, 'ajax:complete', function() {
|
287
288
|
rails.enableElement($(this));
|
288
289
|
});
|
289
290
|
|
290
|
-
$
|
291
|
+
$document.delegate(rails.linkClickSelector, 'click.rails', function(e) {
|
291
292
|
var link = $(this), method = link.data('method'), data = link.data('params');
|
292
293
|
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
293
294
|
|
@@ -311,7 +312,7 @@
|
|
311
312
|
}
|
312
313
|
});
|
313
314
|
|
314
|
-
$
|
315
|
+
$document.delegate(rails.buttonClickSelector, 'click.rails', function(e) {
|
315
316
|
var button = $(this);
|
316
317
|
if (!rails.allowAction(button)) return rails.stopEverything(e);
|
317
318
|
|
@@ -319,7 +320,7 @@
|
|
319
320
|
return false;
|
320
321
|
});
|
321
322
|
|
322
|
-
$
|
323
|
+
$document.delegate(rails.inputChangeSelector, 'change.rails', function(e) {
|
323
324
|
var link = $(this);
|
324
325
|
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
325
326
|
|
@@ -327,7 +328,7 @@
|
|
327
328
|
return false;
|
328
329
|
});
|
329
330
|
|
330
|
-
$
|
331
|
+
$document.delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
|
331
332
|
var form = $(this),
|
332
333
|
remote = form.data('remote') !== undefined,
|
333
334
|
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
@@ -362,7 +363,7 @@
|
|
362
363
|
}
|
363
364
|
});
|
364
365
|
|
365
|
-
$
|
366
|
+
$document.delegate(rails.formInputClickSelector, 'click.rails', function(event) {
|
366
367
|
var button = $(this);
|
367
368
|
|
368
369
|
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
@@ -374,11 +375,11 @@
|
|
374
375
|
button.closest('form').data('ujs:submit-button', data);
|
375
376
|
});
|
376
377
|
|
377
|
-
$
|
378
|
+
$document.delegate(rails.formSubmitSelector, 'ajax:beforeSend.rails', function(event) {
|
378
379
|
if (this == event.target) rails.disableFormElements($(this));
|
379
380
|
});
|
380
381
|
|
381
|
-
$
|
382
|
+
$document.delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
|
382
383
|
if (this == event.target) rails.enableFormElements($(this));
|
383
384
|
});
|
384
385
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-04 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70262808737780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '5.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70262808737780
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: thor
|
30
|
-
requirement: &
|
30
|
+
requirement: &70262808806640 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
version: '2.0'
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
|
-
version_requirements: *
|
41
|
+
version_requirements: *70262808806640
|
42
42
|
description: This gem provides jQuery and the jQuery-ujs driver for your Rails 3 application.
|
43
43
|
email:
|
44
44
|
- andre@arko.net
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- LICENSE
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
+
- VERSIONS.md
|
56
57
|
- jquery-rails.gemspec
|
57
58
|
- lib/generators/jquery/install/install_generator.rb
|
58
59
|
- lib/jquery-rails.rb
|
@@ -78,6 +79,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
79
|
- - ! '>='
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: '0'
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
hash: -4454606359998247016
|
81
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
86
|
none: false
|
83
87
|
requirements:
|