jquery-rails 3.1.3 → 3.1.4

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
  SHA1:
3
- metadata.gz: f2fb7c1bc54c76ac75d4d6ba5aa8a4180e635ce9
4
- data.tar.gz: 8d546a3a4f7dac4337f9d70abd7b339f15a3bfd2
3
+ metadata.gz: df3039511de025f938c1043703f28e901fac32b5
4
+ data.tar.gz: 8cf080440d33860a8368a64293466e029dbdb02e
5
5
  SHA512:
6
- metadata.gz: 30921a1b02aabac4035a959719a62fe48283331124baca8fc78961ec0266903e88e935fd570e57c6cf27d7fb46328a6676fd4f6c6b70ae53bc1f8af2889c2df0
7
- data.tar.gz: c21818f07a70497e53f48e6024d5d008ecdac28e276401f7743b0afcb6609803bb52f53f0c5a3b9a01c754adc0759a808e92fc4ef27b7ed1d17e95f026e9f120
6
+ metadata.gz: e9e5bb5f4a6a4efa97ab5c56675449781a7065a7addedc7cd1273ed4c3409d5fb6cf986af1016766cdc013dc8448f6f30f6a3c72465092fc88499b8c80b61631
7
+ data.tar.gz: cfaf7788837edd78f566323abc7ff7b654fada640b78731265b7f84a2cad8ad6c2ee16850e1942db839622c2773369aa4c357d33793c1920d0e4dc9fa3db1ca2
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Gem | jQuery | jQuery UJS | jQuery UI |
4
4
  |--------|--------|------------| ----------|
5
+ | 3.1.4 | 1.11.1 | 1.0.4 | - |
5
6
  | 3.1.3 | 1.11.1 | 1.0.4 | - |
6
7
  | 3.1.2 | 1.11.1 | 1.0.1 | - |
7
8
  | 3.1.1 | 1.11.1 | 1.0.0 | - |
@@ -1,6 +1,6 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "3.1.3"
3
+ VERSION = "3.1.4"
4
4
  JQUERY_VERSION = "1.11.1"
5
5
  JQUERY_UJS_VERSION = "1.0.4"
6
6
  end
@@ -176,10 +176,14 @@
176
176
  // This is a workaround to a IE bug.
177
177
  urlAnchor.href = urlAnchor.href;
178
178
 
179
- // Make sure that the browser parses the URL and that the protocols and hosts match.
180
- return !urlAnchor.protocol || !urlAnchor.host ||
181
- (originAnchor.protocol + "//" + originAnchor.host !==
182
- urlAnchor.protocol + "//" + urlAnchor.host);
179
+ // If URL protocol is false or is a string containing a single colon
180
+ // *and* host are false, assume it is not a cross-domain request
181
+ // (should only be the case for IE7 and IE compatibility mode).
182
+ // Otherwise, evaluate protocol and host of the URL against the origin
183
+ // protocol and host
184
+ return !(((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host) ||
185
+ (originAnchor.protocol + "//" + originAnchor.host ===
186
+ urlAnchor.protocol + "//" + urlAnchor.host)); //
183
187
  } catch (e) {
184
188
  // If there is an error parsing the URL, assume it is crossDomain.
185
189
  return true;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -98,8 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: 1.3.6
99
99
  requirements: []
100
100
  rubyforge_project: jquery-rails
101
- rubygems_version: 2.4.5
101
+ rubygems_version: 2.4.7
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Use jQuery with Rails 3+
105
105
  test_files: []
106
+ has_rdoc: