brighter_planet_layout 0.5.1 → 0.5.2

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.
@@ -13,7 +13,7 @@
13
13
  <%= stylesheet_link_tag "/stylesheets/brighter_planet.css" %>
14
14
  <%= stylesheet_link_tag "/stylesheets/idle.css" %>
15
15
  <![endif]-->
16
- <% if File.exist? File.join(::BrighterPlanet.layout.rails_root, 'public', 'stylesheets', 'application.css') %>
16
+ <% if BrighterPlanet.layout.include_application_stylesheet? %>
17
17
  <%= stylesheet_link_tag "application" %>
18
18
  <% end %>
19
19
  <!-- END brighter_planet_layout stylesheets -->
@@ -2,7 +2,7 @@ require 'fileutils'
2
2
  require 'singleton'
3
3
  require 'simple-rss'
4
4
  require 'eat'
5
- require 'tronprint'
5
+ #require 'tronprint'
6
6
  require 'brighter_planet_metadata'
7
7
 
8
8
  require 'brighter_planet_layout/version'
@@ -83,6 +83,10 @@ module BrighterPlanet
83
83
  def heroku?
84
84
  ::File.readable? '/home/heroku_rack/heroku.ru'
85
85
  end
86
+
87
+ def include_application_stylesheet?
88
+ File.exist?(File.join(rails_root, 'public', 'stylesheets', 'application.css')) || (Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 1)
89
+ end
86
90
 
87
91
  def serve_static_files_using_rack?
88
92
  not ::Rails.env.production? and not heroku?
@@ -1,5 +1,5 @@
1
1
  module BrighterPlanet
2
2
  class Layout
3
- VERSION = '0.5.1'
3
+ VERSION = '0.5.2'
4
4
  end
5
5
  end
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: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Rossmeissl