bigpipe-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/bigpipe-rails.gemspec
CHANGED
data/lib/bigpipe_rails/helper.rb
CHANGED
@@ -21,13 +21,17 @@ module BigpipeRails
|
|
21
21
|
opts, block = pipe
|
22
22
|
# we actually run the block here -
|
23
23
|
# TODO: use em-synchrony and/or our own Fiber implementation
|
24
|
-
opts[:content] =
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
opts[:content] = capture(&block)
|
25
|
+
# TODO: we are re-escaping here for some reason - should be able to use javascript_tag
|
26
|
+
# helper, need to see why it doesn't work
|
27
|
+
data = %Q{
|
28
|
+
<script type="text/javascript">
|
29
|
+
<![CDATA[
|
30
|
+
BigPipe.add_pagelet(#{opts.to_json});
|
31
|
+
]]>
|
32
|
+
</script>
|
33
|
+
}
|
34
|
+
self.output_buffer.safe_concat(data)
|
31
35
|
end
|
32
36
|
""
|
33
37
|
end
|
data/spec/dummy_app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: bigpipe-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dan Langevin
|
@@ -256,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
256
|
requirements:
|
257
257
|
- - ">="
|
258
258
|
- !ruby/object:Gem::Version
|
259
|
-
hash:
|
259
|
+
hash: 2541141229637377562
|
260
260
|
segments:
|
261
261
|
- 0
|
262
262
|
version: "0"
|