firehose 1.2.4 → 1.2.5
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.
|
@@ -39,6 +39,7 @@ class Firehose.LongPoll extends Firehose.Transport
|
|
|
39
39
|
# See: http://api.jquery.com/jQuery.ajax/#jqXHR
|
|
40
40
|
@_lastRequest = $.ajax
|
|
41
41
|
url: @config.longPoll.url
|
|
42
|
+
firehose: true
|
|
42
43
|
crossDomain: true
|
|
43
44
|
data: data
|
|
44
45
|
timeout: @_timeout
|
|
@@ -77,6 +78,7 @@ class Firehose.LongPoll extends Firehose.Transport
|
|
|
77
78
|
url: @config.longPoll.url
|
|
78
79
|
method: 'HEAD'
|
|
79
80
|
crossDomain: true
|
|
81
|
+
firehose: true
|
|
80
82
|
data: @config.params
|
|
81
83
|
success: =>
|
|
82
84
|
if @_needToNotifyOfReconnect
|
|
@@ -100,7 +102,7 @@ class Firehose.LongPoll extends Firehose.Transport
|
|
|
100
102
|
# https://github.com/jaubourg/ajaxHooks/blob/master/src/ajax/xdr.js
|
|
101
103
|
if $?.browser?.msie and parseInt($.browser.version, 10) in [8, 9]
|
|
102
104
|
jQuery.ajaxTransport (s) ->
|
|
103
|
-
if s.crossDomain and s.async
|
|
105
|
+
if s.crossDomain and s.async and s.firehose
|
|
104
106
|
if s.timeout
|
|
105
107
|
s.xdrTimeout = s.timeout
|
|
106
108
|
delete s.timeout
|
data/lib/firehose/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: firehose
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2013-05-
|
|
15
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: eventmachine
|
|
@@ -430,4 +430,3 @@ test_files:
|
|
|
430
430
|
- spec/lib/server/publisher_spec.rb
|
|
431
431
|
- spec/lib/server/subscriber_spec.rb
|
|
432
432
|
- spec/spec_helper.rb
|
|
433
|
-
has_rdoc:
|