```ruby
module Compass::Magick; end

begin
  # Gem install
  require 'rubygems'
  require 'RMagick'
  require 'compass-magick/command'
  require 'compass-magick/functions'
rescue LoadError
  # Local install
  $LOAD_PATH.unshift File.dirname(__FILE__)
  require 'RMagick'
  require 'compass-magick/command'
  require 'compass-magick/functions'
end

Compass::Frameworks.register('compass-magick',
  :stylesheets_directory => File.join(File.dirname(__FILE__), 'stylesheets'),
  :templates_directory   => File.join(File.dirname(__FILE__), 'templates')
)
```

Simplify loading of components, no need to depend on rubygems.
user
```ruby
require 'RMagick'

module Compass::Magick;
  $LOAD_PATH.unshift File.dirname(__FILE__)
end

require 'compass-magick/util'
require 'compass-magick/command'
require 'compass-magick/functions'

Compass::Frameworks.register('compass-magick',
  :stylesheets_directory => File.join(File.dirname(__FILE__), 'stylesheets'),
  :templates_directory   => File.join(File.dirname(__FILE__), 'templates')
)
```
assistant