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: d08d30f7e31adfdc8b7796b5d37b580298ce45c9
4
- data.tar.gz: 432c6895cb8b9095c8d61e1e6641fa27a08d157f
3
+ metadata.gz: 1aca6ecd5caafbafaba4ff1d87176d0c293b827f
4
+ data.tar.gz: d77e758d35c8bfeba089a674039aa9911f5ada21
5
5
  SHA512:
6
- metadata.gz: b5c3bc2afcbfc6d5a385371221072562b2eb7d1d926e79c7f76af5cfe84e4ea8599a425817690447931cf1213ac2c6d046e1a8dbfd08df8ef6df1521ef40b6b5
7
- data.tar.gz: 8e8de79b5f581b2c57470e296525a79ff03e18d225addf655d7db64ded665ea3616b4764ec09cf5471f4431d3ea7c38a8e84c5ae2810ec62dcb17a10992f2e2c
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 => properties.headers['store_id']}, :event => 'refresh')
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/views', class_path, plural_file_name, '_eventstream.js.erb')
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
@@ -1,8 +1,8 @@
1
1
  module RailsDisco
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 3
5
- TINY = 0
4
+ MINOR = 4
5
+ TINY = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.3.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-10-15 00:00:00.000000000 Z
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.3.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.3.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.3.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.3.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.3.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.3.0
54
+ version: 0.4.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement