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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e9412fc0ad47f58184a1326e5969d86f4b8b2a7
4
- data.tar.gz: 2e9efb164515c5a06ef627e019d67510057072e4
3
+ metadata.gz: b249151929667744567bd70bca210032d896420d
4
+ data.tar.gz: a5f91abe04d49eb4c1bb3d0d8738f3b77b0e5631
5
5
  SHA512:
6
- metadata.gz: 7309624ff6718593cdc58c81b06e49198751bd96645e086d5120515e0ae2227d3202948a36be6c29553da776f03c30a6576727fb52e304316504a108ffe7f261
7
- data.tar.gz: 5361f90f9607c2cd1bd37768395fdcd4f823426123d45fcaedb2cac46398a3cfdd41794764fd3b974847189f25630db5d1d9ce71331815b541f5cbf88d07513c
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
- nil
50
+ OpenStruct.new
49
51
  end
50
52
 
51
53
  # and params will be accessible
@@ -1,3 +1,3 @@
1
1
  module RenderAnywhere
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-25 00:00:00.000000000 Z
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails