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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d31cb4fc9b3f730d69521de0b5b6cc90b0f1ac36fb3337055a5f2337d5c540
4
- data.tar.gz: 8f2ee03cba1960799862363e3bf7a2ab318aba07e246b494cf43aa0206ac9d8e
3
+ metadata.gz: dc824faad0a0e721766ec6ae2c9e3f6dceaff6d5528066fb82905dbb9febe2e4
4
+ data.tar.gz: 5e5d2d38463e03b1ad8e64f758912175dc61aedfd4e671d82d43199edfcb39bf
5
5
  SHA512:
6
- metadata.gz: 8d7b8ccaab858087cdb2044bbc497d2cd17316362531a1856da8f4784be328840cb4a2a4bf4b03361ed561196c39eec2d68d41e8a05fc87fabf227974a9f9291
7
- data.tar.gz: 525216ae5c50a6d3616d978ab6763ffd90df5bef8a473aeb47594f67aace08fd6b2cd60194ec87b1d18b06b946a8f06c9434dd312e3e6511054475ada5502d85
6
+ metadata.gz: 9038bfa9cfed8472d97b801c2389712d27c964720e75d79894c51422fc58187816757c830fe58aff0968f123a1d500203e4dc0ca18efeeb794693f2d96718702
7
+ data.tar.gz: 11775380be70000f3abf0e64c4a831f935e3be40f90d12eede256a8e44ae3b019cf8e932d8ff5ed6dd7f2ca01215590d55885e24bff7f43662746456d691e893
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,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 mutiple calls for the same selector/function exception
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 | - |
@@ -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.5.1"
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.6.1"
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