render_anywhere 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render_anywhere/rendering_controller.rb +4 -2
- data/lib/render_anywhere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b249151929667744567bd70bca210032d896420d
|
4
|
+
data.tar.gz: a5f91abe04d49eb4c1bb3d0d8738f3b77b0e5631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b1030317870291e6c24200f96cbb3bf98c9e4a7b4e71e5d0b7180f8857b6b4b9cffd0d5e7d543ba6666cf08197d1f92d41acde8323e237ff5df8dfb5e6c8594
|
7
|
+
data.tar.gz: f2c241ef9f80cda592f183ff6da78554bafcaeae7911eb2cf7f594a84cb663eadd24e514858f018b1133cde23f3e0f1dc492b3731361b09ee5c61feb0c193e5b
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
1
3
|
module RenderAnywhere
|
2
4
|
class RenderingController < AbstractController::Base
|
3
5
|
# Include all the concerns we need to make this work
|
@@ -28,7 +30,7 @@ module RenderAnywhere
|
|
28
30
|
config.javascripts_dir = Rails.root.join('public', 'javascripts')
|
29
31
|
config.stylesheets_dir = Rails.root.join('public', 'stylesheets')
|
30
32
|
config.assets_dir = Rails.root.join('public')
|
31
|
-
|
33
|
+
|
32
34
|
# same asset host as the controllers
|
33
35
|
self.asset_host = ActionController::Base.asset_host
|
34
36
|
end
|
@@ -45,7 +47,7 @@ module RenderAnywhere
|
|
45
47
|
|
46
48
|
# and nil request to differentiate between live and offline
|
47
49
|
def request
|
48
|
-
|
50
|
+
OpenStruct.new
|
49
51
|
end
|
50
52
|
|
51
53
|
# and params will be accessible
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_anywhere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Melia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|