compass 0.10.0.pre7 → 0.10.0.pre8
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/REVISION +1 -1
- data/VERSION.yml +1 -1
- data/lib/compass/app_integration/rails/runtime.rb +12 -6
- metadata +2 -2
data/REVISION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8327f633ea30490b9a21c1bc514e05ca3c1d4122
|
data/VERSION.yml
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
unless defined?(Compass::RAILS_LOADED)
|
|
2
2
|
Compass::RAILS_LOADED = true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
begin
|
|
4
|
+
require 'action_pack/version'
|
|
5
|
+
if ActionPack::VERSION::MAJOR >= 3
|
|
6
|
+
# TODO figure something out so image_path works with rails integration
|
|
7
|
+
else
|
|
8
|
+
%w(action_controller sass_plugin urls).each do |lib|
|
|
9
|
+
require "compass/app_integration/rails/actionpack2/#{lib}"
|
|
10
|
+
end
|
|
9
11
|
end
|
|
12
|
+
rescue LoadError => e
|
|
13
|
+
$stderr.puts "Compass could not access the rails environment."
|
|
14
|
+
rescue NameError => e
|
|
15
|
+
$stderr.puts "Compass could not access the rails environment."
|
|
10
16
|
end
|
|
11
17
|
|
|
12
18
|
# Wierd that this has to be re-included to pick up sub-modules. Ruby bug?
|