drailties 0.3.0 → 0.4.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aca6ecd5caafbafaba4ff1d87176d0c293b827f
|
4
|
+
data.tar.gz: d77e758d35c8bfeba089a674039aa9911f5ada21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f450022330412e2e81b8c95ed601d3919cd29d2c06738abf5589c1f718e6fd6c2d6c4a2931ec55aefd44f7a7c72133f550bf8d0ea436a681f585f2c830d42a7
|
7
|
+
data.tar.gz: 88c204f95f6a65ce9cf4f8b260612237489546b7a0d37134a5bf622dd8eae056e60beece68ef694685b2737e726776d179bbda81ce5b578875c60474b41aa03d
|
@@ -7,7 +7,7 @@ class EventSourceController < ApplicationController
|
|
7
7
|
response.headers['Content-Type'] = 'text/event-stream'
|
8
8
|
sse = ActiveEvent::SSE.new(response.stream)
|
9
9
|
subscribe_to event_queue do |delivery_info, properties, body|
|
10
|
-
sse.write({:id =>
|
10
|
+
sse.write({:id => body}, :event => 'refresh')
|
11
11
|
end
|
12
12
|
rescue IOError
|
13
13
|
ensure
|
@@ -48,7 +48,7 @@ module Drails
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def copy_event_stream_client
|
51
|
-
copy_file '_eventstream.js.erb', File.join('app
|
51
|
+
copy_file '_eventstream.js.erb', File.join('app', 'views', 'application', '_eventstream.js.erb')
|
52
52
|
end
|
53
53
|
|
54
54
|
def add_event_stream_client_to_views
|
@@ -80,6 +80,7 @@ module Drails
|
|
80
80
|
'delete' => "#{class_name}.find(event.id).destroy!",
|
81
81
|
}
|
82
82
|
end
|
83
|
+
|
83
84
|
def add_line_with_indent(target, indent, str)
|
84
85
|
target << "#{" " * indent}#{str}\n"
|
85
86
|
end
|
data/lib/rails-disco/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drailties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Kranz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_event
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active_domain
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.4.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.4.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: active_projection
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.4.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.4.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|