compass 0.10.0.pre7 → 0.10.0.pre8

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- e3b0b06eda29c0fe179797f0f47d05d47cb0702c
1
+ 8327f633ea30490b9a21c1bc514e05ca3c1d4122
@@ -2,4 +2,4 @@
2
2
  :patch: 0
3
3
  :major: 0
4
4
  :minor: 10
5
- :build: pre7
5
+ :build: pre8
@@ -1,12 +1,18 @@
1
1
  unless defined?(Compass::RAILS_LOADED)
2
2
  Compass::RAILS_LOADED = true
3
-
4
- if ActionPack::VERSION::MAJOR >= 3
5
- # figure something out so image_path works with rails integration
6
- else
7
- %w(action_controller sass_plugin urls).each do |lib|
8
- require "compass/app_integration/rails/actionpack2/#{lib}"
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?
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 10
8
8
  - 0
9
- - pre7
10
- version: 0.10.0.pre7
9
+ - pre8
10
+ version: 0.10.0.pre8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Eppstein