jquery-rails 4.3.4 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b52a193e419a4e8a0da353faf40d8d66705bdf64171fb6c800b637119541ac9
4
- data.tar.gz: f44fd79c6c3ce8d0b40892f71bd9ec5f570ed56c01c9396281d4909f8ce48d60
3
+ metadata.gz: a2e8c88996b29e72c469e7f67c68011b385dfa005fb1889d5a1a96e9e13c282e
4
+ data.tar.gz: 546c44d56ab3aba53d497a12fc4a5ae7e07edd75c3aa15f9395d866851576286
5
5
  SHA512:
6
- metadata.gz: b7c4027d93c8fba8669eadf6b469d83f85252e225b2d1d9ccbd6f254785b8c44fdc31bf67ad278305e776df0868149324bd2745df26396d48e74260992630493
7
- data.tar.gz: ea65dae08a0209aa928eb0196768d7a8811b5be9757dda5289c9505420f6b7cfb8795f1e0da2090198c2bd0be54c3b019561ed775d0f9b6848cb43d8c8f6e835
6
+ metadata.gz: 74e86d80b32cc72a37bbfb6c5897bb5c2b7a4d5f798234a93aa335dc4d32fd9bde1b602436c8c1275ebe31b9f133a172ff0f82698979ab8ff1707b59077bb32a
7
+ data.tar.gz: 5bee22c8751e58d1b82b1aa7a6fdcf382cb884150ce5f1a0d03d2736f24c9ba26e1565657c3edc4c87273490bbd02646bb04b7e9670bb2fc8640e0e902220b0d
data/.travis.yml CHANGED
@@ -7,8 +7,10 @@ rvm:
7
7
  - 2.1.10
8
8
  - 2.2.9
9
9
  - 2.3.6
10
- - 2.4.3
11
- - 2.5.0
10
+ - 2.4.10
11
+ - 2.5.8
12
+ - 2.6.6
13
+ - 2.7.1
12
14
  - jruby
13
15
  - ruby-head
14
16
  matrix:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 4.5.0
2
+
3
+ - update jquery to 3.6.0
4
+
5
+ ## 4.4.0
6
+
7
+ - update jquery to 3.5.1 (note: [3.5.0 contains important security updates](https://github.com/advisories/GHSA-jpcq-cgw6-v4j6))
8
+ - unescape dollar signs and backticks in `assert_select_jquery` to match
9
+ Rails updated behavior.
10
+
11
+ ## 4.3.5
12
+
13
+ - update jquery to 3.4.1
14
+
1
15
  ## 4.3.4
2
16
 
3
17
  - update jquery to 3.4.0
data/VERSIONS.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  | Gem | jQuery | jQuery UJS | jQuery UI |
4
4
  |--------|--------|------------| ----------|
5
+ | 4.5.0 | 1.12.4 & 2.2.4 & 3.6.0 | 1.2.2 | - |
6
+ | 4.4.0 | 1.12.4 & 2.2.4 & 3.5.1 | 1.2.2 | - |
7
+ | 4.3.5 | 1.12.4 & 2.2.4 & 3.4.1 | 1.2.2 | - |
5
8
  | 4.3.4 | 1.12.4 & 2.2.4 & 3.4.0 | 1.2.2 | - |
6
9
  | 4.3.3 | 1.12.4 & 2.2.4 & 3.3.1 | 1.2.2 | - |
7
10
  | 4.3.2 | 1.12.4 & 2.2.4 & 3.3.0 | 1.2.2 | - |
@@ -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
@@ -1,9 +1,9 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "4.3.4"
3
+ VERSION = "4.5.0"
4
4
  JQUERY_VERSION = "1.12.4"
5
5
  JQUERY_2_VERSION = "2.2.4"
6
- JQUERY_3_VERSION = "3.4.0"
6
+ JQUERY_3_VERSION = "3.6.0"
7
7
  JQUERY_UJS_VERSION = "1.2.2"
8
8
  end
9
9
  end
@@ -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