- Use
File::PATH_SEPARATOR
when exporting theNODE_PATH
variable.
- Fixes loading issues with Sprockets and Rails.
ImportProcessor
tracks@import
definitions recursively.Tilt
shouldn't a hard dependency.
- Fixes namespacing clashing between
Stylus::Sprockets
and theSprockets
modules.
- Skips
Sprockets::FileNotFound
errors on the ImportProcessor.
- Sprockets configuration extracted to
Stylus.setup
- you can use this on a Sinatra or Rack app; - When
node
isn't available, Stylus will raise a exception of it's own instead of blowing up inside ExecJS.
- Fixes the
ImportProcessor
so it doesn't evaluates the stylesheets.
- Rewrite of the Railtie initializers to match 3.2 loading order;
- Only folders ending with
stylesheets
will be copied over toStylus.paths
.
- Tells Rails to always run the Railtie initializer.
- Skips Sprockets configuration if
config.assets.enabled
isn't true.
@import
directives will be added as dependencies to Sprockets (based on the work by @metaskills on the less-rails).
- This gem now uses the stylus-source gem to bundle the latest NPM package of Stylus, so there's no setup required to install stylus via
npm install
or cloning it into thenode_modules
folder - Thanks @railsjedi. - Added a
debug
configuration option, that enables thelinenos
andfirebug
flags on Stylus. Inside Rails, this configuration option will be copied from theconfig.assets.debug
; - Added a global array
import
that handles other stylesheets to include on every compilation process; - Added a shorthand
Stylus.nib = true
to use the plugin and import it on every processed stylesheet.
- ExecJS 1.2.5+ compatibility: Using a custom
ExternalRuntime
.
- Removed a hack for a Sprockets loading order issue;
- Testing on 1.9.2, REE and Rubinius thanks to Travis CI;
- Enables compression if
Sprockets
is configured to do so; - Added Rails and Sprockets tests.
- Replaced
stylus:install
with proper generators for Rails 3.1 - now all hooks for thestylesheet_engine
will generate.styl
files.
- Fixes missing
require
for Rails apps.
- Requiring
stylus/tilt
outside theRailtie
, by DAddYE.
- Support for Stylus plugins via
Stylus.use
. - Docco documentation live at http://lucasmazza.github.com/ruby-stylus.
- Bugfix: stylus now works in production environment.
- Added a Rails Generator called
stylus:install
to copy sample files on yourlib/
folder. - Added
Stylus.convert
to parse CSS back to Stylus syntax.
- Initial Release.