brighter_planet_layout 0.2.10 → 0.2.11
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.
|
1
|
+
0.2.11
|
@@ -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.
|
8
|
+
s.version = "0.2.11"
|
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"]
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"brighter_planet_layout.gemspec",
|
32
32
|
"lib/brighter_planet_layout.rb",
|
33
33
|
"lib/brighter_planet_layout/railtie.rb",
|
34
|
+
"lib/brighter_planet_layout/rake_tasks.rb",
|
34
35
|
"public/401.html",
|
35
36
|
"public/403.html",
|
36
37
|
"public/403.xml",
|
@@ -42,7 +42,7 @@ module BrighterPlanetLayout
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def self.copy_static_files?
|
45
|
-
not serve_static_files_using_rack? and not layout_warning_installed?
|
45
|
+
not heroku? and not serve_static_files_using_rack? and not layout_warning_installed?
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.heroku?
|
@@ -50,7 +50,7 @@ module BrighterPlanetLayout
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.serve_static_files_using_rack?
|
53
|
-
heroku?
|
53
|
+
not heroku? and not Rails.env.production?
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module BrighterPlanetLayout
|
2
2
|
class Railtie < Rails::Railtie
|
3
|
+
rake_tasks do
|
4
|
+
load 'brighter_planet_layout/rake_tasks.rb'
|
5
|
+
end
|
3
6
|
initializer 'brighter_planet_layout' do |app|
|
4
7
|
app.paths.app.views.push BrighterPlanetLayout.view_path
|
5
8
|
if BrighterPlanetLayout.serve_static_files_using_rack?
|
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: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 11
|
10
|
+
version: 0.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Rossmeissl
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- brighter_planet_layout.gemspec
|
73
73
|
- lib/brighter_planet_layout.rb
|
74
74
|
- lib/brighter_planet_layout/railtie.rb
|
75
|
+
- lib/brighter_planet_layout/rake_tasks.rb
|
75
76
|
- public/401.html
|
76
77
|
- public/403.html
|
77
78
|
- public/403.xml
|