brighter_planet_layout 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brighter_planet_layout}
8
- s.version = "0.2.9"
8
+ s.version = "0.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Rossmeissl"]
@@ -45,8 +45,12 @@ module BrighterPlanetLayout
45
45
  not serve_static_files_using_rack? and not layout_warning_installed?
46
46
  end
47
47
 
48
+ def self.heroku?
49
+ File.readable? '/home/heroku_rack/heroku.ru'
50
+ end
51
+
48
52
  def self.serve_static_files_using_rack?
49
- Rails.configuration.serve_static_assets or not Rails.env.production?
53
+ heroku? or not Rails.env.production?
50
54
  end
51
55
  end
52
56
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brighter_planet_layout
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 9
10
- version: 0.2.9
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Rossmeissl