brighter_planet_layout 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/brighter_planet_layout.gemspec +1 -1
- data/lib/brighter_planet_layout.rb +5 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.10
|
|
@@ -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
|
-
|
|
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:
|
|
4
|
+
hash: 3
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 10
|
|
10
|
+
version: 0.2.10
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andy Rossmeissl
|