title: SASS: How to install a custom built Compass extension
body: <p>I am creating my own Compass extension following <a href="http://compass-style.org/help/tutorials/extensions/" rel="nofollow">this tutorial</a>. (I am using terminal on Mac 10.9)</p>
  
  <p>I have built my extension using the command <code>gem build myextension.gemspec</code>
  The terminal states: <code>Successfully built RubyGem</code></p>
  
  <p>I then install my extension using  <code>sudo gem install myextension-1.0.gem</code>
  The terminal states: <code>Successfully installed myextension-1.0 1 gem installed</code></p>
  
  <p>I then check the installation using <code>gem list framework</code>. The gem doesn't appear, which is odd.</p>
  
  <p>Next in my SASS project, I call the gem in my config.rb file:</p>
  
  <pre><code>require "myextension"
  </code></pre>
  
  <p>Finally, I call it in my scss file:</p>
  
  <pre><code>@import "myextension";
  </code></pre>
  
  <p>Yet compass keeps on saying it can't find my extension. 
  What am I doing wrong?</p>
  
  <p>I have also tried using <a href="https://github.com/Team-Sass/Compass-Extension-Template" rel="nofollow">this template</a> and following the steps exactly, but it keeps on failing. </p>
  
  <p>I know about Code-kit, but I would like to do this via an extension for easier sharing.</p>
  
  <hr/>
  
  <p>Update:</p>
  
  <p>I download the template again and duplicated it to create two extensions folders.
  In both of them, I added in my Scss.</p>
  
  <p>For the first one, I left all file names as they are in the template. </p>
  
  <p>I did build/install and got the same results as above.</p>
  
  <p>For the second one, I changed all instances of "extension" to "myextension" and did build. This time, I got this error message during the build (which I hadn't got in the past).</p>
  
  <pre><code>Invalid gemspec in [myextension.gemspec]: /Users/myusername/Sites/test1-ext/myextension/lib/myextension.rb:19: class/module name must be CONSTANT
  ERROR:  Error loading gemspec. Aborting.
  </code></pre>
  
  <p>I am not sure why I am getting this message. I have looked at line 19 of myextension.rb, but there is nothing to do with a class/module name (the modulename in this file is set to myextension, except for line 10 &amp; 11 with the words <code>extension_path</code>, but even if I rename this I get the same error message). </p>
  
  <p>I have uploaded my extension <a href="http://madhu.co/web/stackoverflow/myextension.zip" rel="nofollow">here</a></p>