jquery-rails 4.3.5 → 4.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d31cb4fc9b3f730d69521de0b5b6cc90b0f1ac36fb3337055a5f2337d5c540
4
- data.tar.gz: 8f2ee03cba1960799862363e3bf7a2ab318aba07e246b494cf43aa0206ac9d8e
3
+ metadata.gz: ab13d042048cc568bf3c47322a53992a86c26e153beb4298008a61b1bf26b772
4
+ data.tar.gz: 2e1b815b3f09adc49539628fe5331222f71dcbb7101a3a3e4591fca79241087b
5
5
  SHA512:
6
- metadata.gz: 8d7b8ccaab858087cdb2044bbc497d2cd17316362531a1856da8f4784be328840cb4a2a4bf4b03361ed561196c39eec2d68d41e8a05fc87fabf227974a9f9291
7
- data.tar.gz: 525216ae5c50a6d3616d978ab6763ffd90df5bef8a473aeb47594f67aace08fd6b2cd60194ec87b1d18b06b946a8f06c9434dd312e3e6511054475ada5502d85
6
+ metadata.gz: 51c887d6c520f1366d0982280c6516825b1cb9561a8a310661e984e1d6d47806edeff197d085e5edf704b9754e8d57c9f8fb449446032f9e6e429e9c40986aa4
7
+ data.tar.gz: 9bf9832f9a1ba125d7a36aef545c84b692284a586c7aa50c64ea4dc75f25dce69d762749fcb7bbba1612cf9c1a5483d317ab4a36d9a59717007089ee1c7dac18
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,24 @@
1
+ ## unreleased
2
+
3
+ ## 4.6.0
4
+
5
+ - update jquery to 3.7.0
6
+
7
+ ## 4.5.1
8
+
9
+ - update jquery to 3.6.1
10
+ - update jquery-ujs to 1.2.3
11
+
12
+ ## 4.5.0
13
+
14
+ - update jquery to 3.6.0
15
+
16
+ ## 4.4.0
17
+
18
+ - update jquery to 3.5.1 (note: [3.5.0 contains important security updates](https://github.com/advisories/GHSA-jpcq-cgw6-v4j6))
19
+ - unescape dollar signs and backticks in `assert_select_jquery` to match
20
+ Rails updated behavior.
21
+
1
22
  ## 4.3.5
2
23
 
3
24
  - update jquery to 3.4.1
@@ -15,7 +36,7 @@
15
36
  - update jquery to 3.3.0
16
37
  - Add possibility to test HTML: all, attribute prefix, attribute contains,
17
38
  attribute ends with, child, and class selectors
18
- - Fix matching mutiple calls for the same selector/function exception
39
+ - Fix matching multiple calls for the same selector/function exception
19
40
 
20
41
  ## 4.3.1
21
42
 
data/VERSIONS.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  | Gem | jQuery | jQuery UJS | jQuery UI |
4
4
  |--------|--------|------------| ----------|
5
+ | 4.6.0 | 1.12.4 & 2.2.4 & 3.7.0 | 1.2.3 | - |
6
+ | 4.5.1 | 1.12.4 & 2.2.4 & 3.6.1 | 1.2.3 | - |
7
+ | 4.5.0 | 1.12.4 & 2.2.4 & 3.6.0 | 1.2.2 | - |
8
+ | 4.4.0 | 1.12.4 & 2.2.4 & 3.5.1 | 1.2.2 | - |
5
9
  | 4.3.5 | 1.12.4 & 2.2.4 & 3.4.1 | 1.2.2 | - |
6
10
  | 4.3.4 | 1.12.4 & 2.2.4 & 3.4.0 | 1.2.2 | - |
7
11
  | 4.3.3 | 1.12.4 & 2.2.4 & 3.3.1 | 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.5"
3
+ VERSION = "4.6.0"
4
4
  JQUERY_VERSION = "1.12.4"
5
5
  JQUERY_2_VERSION = "2.2.4"
6
- JQUERY_3_VERSION = "3.4.1"
7
- JQUERY_UJS_VERSION = "1.2.2"
6
+ JQUERY_3_VERSION = "3.7.0"
7
+ JQUERY_UJS_VERSION = "1.2.3"
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