jquery-rails 4.3.5 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +16 -1
- data/VERSIONS.md +3 -0
- data/lib/jquery/assert_select.rb +2 -0
- data/lib/jquery/rails/version.rb +3 -3
- data/test/assert_select_jquery_test.rb +6 -0
- data/vendor/assets/javascripts/jquery3.js +958 -647
- data/vendor/assets/javascripts/jquery3.min.js +2 -2
- data/vendor/assets/javascripts/jquery3.min.map +1 -1
- data/vendor/assets/javascripts/jquery_ujs.js +18 -8
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc824faad0a0e721766ec6ae2c9e3f6dceaff6d5528066fb82905dbb9febe2e4
|
4
|
+
data.tar.gz: 5e5d2d38463e03b1ad8e64f758912175dc61aedfd4e671d82d43199edfcb39bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9038bfa9cfed8472d97b801c2389712d27c964720e75d79894c51422fc58187816757c830fe58aff0968f123a1d500203e4dc0ca18efeeb794693f2d96718702
|
7
|
+
data.tar.gz: 11775380be70000f3abf0e64c4a831f935e3be40f90d12eede256a8e44ae3b019cf8e932d8ff5ed6dd7f2ca01215590d55885e24bff7f43662746456d691e893
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## unreleased
|
2
|
+
|
3
|
+
- update jquery to 3.6.1
|
4
|
+
- update jquery-usj to 1.2.3
|
5
|
+
|
6
|
+
## 4.5.0
|
7
|
+
|
8
|
+
- update jquery to 3.6.0
|
9
|
+
|
10
|
+
## 4.4.0
|
11
|
+
|
12
|
+
- update jquery to 3.5.1 (note: [3.5.0 contains important security updates](https://github.com/advisories/GHSA-jpcq-cgw6-v4j6))
|
13
|
+
- unescape dollar signs and backticks in `assert_select_jquery` to match
|
14
|
+
Rails updated behavior.
|
15
|
+
|
1
16
|
## 4.3.5
|
2
17
|
|
3
18
|
- update jquery to 3.4.1
|
@@ -15,7 +30,7 @@
|
|
15
30
|
- update jquery to 3.3.0
|
16
31
|
- Add possibility to test HTML: all, attribute prefix, attribute contains,
|
17
32
|
attribute ends with, child, and class selectors
|
18
|
-
- Fix matching
|
33
|
+
- Fix matching multiple calls for the same selector/function exception
|
19
34
|
|
20
35
|
## 4.3.1
|
21
36
|
|
data/VERSIONS.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
| Gem | jQuery | jQuery UJS | jQuery UI |
|
4
4
|
|--------|--------|------------| ----------|
|
5
|
+
| 4.5.1 | 1.12.4 & 2.2.4 & 3.6.1 | 1.2.3 | - |
|
6
|
+
| 4.5.0 | 1.12.4 & 2.2.4 & 3.6.0 | 1.2.2 | - |
|
7
|
+
| 4.4.0 | 1.12.4 & 2.2.4 & 3.5.1 | 1.2.2 | - |
|
5
8
|
| 4.3.5 | 1.12.4 & 2.2.4 & 3.4.1 | 1.2.2 | - |
|
6
9
|
| 4.3.4 | 1.12.4 & 2.2.4 & 3.4.0 | 1.2.2 | - |
|
7
10
|
| 4.3.3 | 1.12.4 & 2.2.4 & 3.3.1 | 1.2.2 | - |
|
data/lib/jquery/assert_select.rb
CHANGED
@@ -124,6 +124,8 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions
|
|
124
124
|
unescaped.gsub!('\n', "\n")
|
125
125
|
unescaped.gsub!('\076', '>')
|
126
126
|
unescaped.gsub!('\074', '<')
|
127
|
+
unescaped.gsub!(/\\\$/, '$')
|
128
|
+
unescaped.gsub!(/\\`/, '`')
|
127
129
|
# js encodes non-ascii characters.
|
128
130
|
unescaped.gsub!(PATTERN_UNICODE_ESCAPED_CHAR) {|u| [$1.hex].pack('U*')}
|
129
131
|
unescaped
|
data/lib/jquery/rails/version.rb
CHANGED
@@ -23,6 +23,8 @@ class AssertSelectJQueryTest < ActiveSupport::TestCase
|
|
23
23
|
|
24
24
|
// without semicolon
|
25
25
|
$("#browser_cart").hide("blind", 1000)
|
26
|
+
|
27
|
+
$('#item').html('<div><span>\\`Total\\`: \\$12.34</span></div>');
|
26
28
|
JS
|
27
29
|
|
28
30
|
setup do
|
@@ -43,6 +45,10 @@ class AssertSelectJQueryTest < ActiveSupport::TestCase
|
|
43
45
|
assert_select_jquery :remove, "#cart tr:not(.total_line) > *"
|
44
46
|
assert_select_jquery :remove, "[href|=\"val\"][href$=\"val\"][href^=\"val\"]"
|
45
47
|
assert_select_jquery :remove, "tr + td, li"
|
48
|
+
|
49
|
+
assert_select_jquery :html, '#item' do
|
50
|
+
assert_select 'span', '`Total`: $12.34'
|
51
|
+
end
|
46
52
|
end
|
47
53
|
|
48
54
|
assert_raise Minitest::Assertion, "No JQuery call matches [:show, :some_wrong]" do
|