Commit Graph

143 Commits

Author SHA1 Message Date
Chris Eppstein
50aa936e02 [Rails] [Closes #32] Don't suggest creating a stylesheet link to partials. 2009-08-22 08:25:32 -07:00
Chris Eppstein
0492fc9969 Binary mode support for proper handling of binary files on Windows.
All images will now be installed using binary mode. Additionally, any file can
be installed in binary mode if the manifest specifies the option :binary => true
for that file.
2009-08-16 11:17:27 -07:00
Chris Eppstein
59a6067b3a Load haml-edge if it's all new and shiny. Closes GH-26. 2009-07-09 13:00:01 -07:00
Chris Eppstein
7fba6028d8 [Rails] Fixed a bug in rails integration if the request is not set on the controller. 2009-07-09 12:49:47 -07:00
Chris Eppstein
0809dd64dd Merge commit 'filiptepper/master'
* commit 'filiptepper/master':
  haml 2.2 dependency
2009-07-08 01:15:42 -07:00
Filip Tepper
85bb337f50 haml 2.2 dependency 2009-07-08 07:57:53 +02:00
Chris Eppstein
48a0356ad8 [Installer] Fixed a bug that caused the output after installing to not display the conditional comments. 2009-07-07 11:31:03 -07:00
Chris Eppstein
94e9696b30 [Rails] When installing into a new rails project, set the http paths correctly for stylesheets and javascripts. 2009-07-07 11:18:58 -07:00
Chris Eppstein
b7a9772efb [Sass Extensions] Fixed a copy & paste error that caused the http_images_path to not get picked up unless the http_stylesheets_path was also set. 2009-07-07 11:13:19 -07:00
Chris Eppstein
6b8bbd22b1 [Rails] Fixed a bug in asset hosts support when compiling outside the context of a controller. 2009-07-06 23:34:41 -07:00
Chris Eppstein
71d5ae8544 [Rails] If it exists, the compass test case should inherit from ActiveSupport::TestCase. 2009-07-06 21:46:00 -07:00
Chris Eppstein
43cb64d77e [Rails] Fixed bug introduced in 0.8.3. 2009-07-06 11:47:02 -07:00
Chris Eppstein
ff5c850014 [Compass Core] A new helper function stylesheet_url(path) can now be used to refer to assets that are relative to the css directory. 2009-07-06 07:18:25 -07:00
Chris Eppstein
21cfce33db [Extensions] When installing a file, the :like option can now be set to have it installed into the same location as what it is like. 2009-07-06 07:18:25 -07:00
Chris Eppstein
6555ab3952 [Configuration] A more logical and consistent approach to http path locations. 2009-07-06 07:18:25 -07:00
Chris Eppstein
956c437fe9 [Configuration] [Command Line] Whether to generate relative links to assets is now controlled by a separate configuration flag and can be set via a command-line switch. 2009-07-06 07:18:25 -07:00
David Turnbull
07ade33da3 Fix 'script' 'javascript' mismatch. Allow use of javascript command in manifest. 2009-07-05 17:29:30 -07:00
Joe Wasson
ebfa4709b1 Fix bug #15: Errno:EACCES on Windows when trying to compile identical file (on watch)
Per https://prototype.lighthouseapp.com/projects/8888/tickets/16-permission-denied-building-via-sprockets-on-windows you can't do File.utime on an open file in Windows.  Changed the reading of the existing file to IO.read() which will close the file on completion of the read.
2009-07-04 22:30:33 -07:00
Chris Eppstein
f111bd73d5 [Command Line] Fixed a bug in --watch mode that caused changes to partials to not be noticed. 2009-06-28 16:25:28 -07:00
Chris Eppstein
d2acd343b8 [Command Line] Allow the configuration file being read to be specified explicitly. This also affects the output location of the --write-configuration command. 2009-06-28 14:41:02 -07:00
Chris Eppstein
f742f26208 [Command Line] Cleanup of the command-line usage output to make things more digestable. 2009-06-28 14:38:36 -07:00
Chris Eppstein
69cf32f70a [Configuration] The compass configuration can now be placed in .compass/config.rb if you so choose. 2009-06-28 14:33:55 -07:00
Chris Eppstein
84aec053d0 [Command Line] Allow the images and javascripts directories to be set via the command line. 2009-06-28 13:04:56 -07:00
Chris Eppstein
5a015b3824 [Sass Extensions] The inline_image() function can now be used to generate a data url that embeds the image data in the generated css file.
This function works like image_url() in that it expects the image to be a path relative to the images directory.

There are clear advantages and disadvantages to this approach.
See http://en.wikipedia.org/wiki/Data_URI_scheme for more details.

NOTE: Neither IE6 nor IE7 support data urls.
Using this approach with large images is discouraged.
2009-06-28 12:29:19 -07:00
Chris Eppstein
0a232bd922 [Compiler] Rewrite of the watch command that adds the following improvements:
1. For robustness, recompile is now based on comparison of corresponding css/sass file timestamps.
2. If a sass file is removed, the corresponding css file is automatically deleted.
3. CSS files will be automatically recompiled if removed. It is no longer necessary to resave the sass file.
4. First time compile is not performed if not necessary.
2009-06-27 18:45:34 -07:00
Chris Eppstein
15ebbfef30 Print a message when updating a project that has no files. They probably meant to install but forgot the directory argument. Closes #2. 2009-06-27 18:28:26 -07:00
Chris Eppstein
802bca6174 [Configuration] Allow additional sass options to be specified in the compass configuration using the sass_options property. 2009-06-27 13:05:30 -07:00
Chris Eppstein
047be06a0a [Configuration] Allow additional import paths to be declared within the compass configuration. 2009-06-27 12:15:28 -07:00
Chris Eppstein
ef47f3dd9d [Sass Extensions] Allow the asset host and cache busting strategies to be defined as part of the compass configuration. Closes #20. 2009-06-26 12:23:43 -07:00
Chris Eppstein
6348ea3e67 [Compass Internals] Don't emit a stylesheet link to partials when printing the installation results. 2009-06-21 02:24:39 -07:00
Chris Eppstein
27b821617a [Compass Core] +reset-display mixin and Sass Extensions for appending selectors and enumerating the elements for a given display type. 2009-06-20 18:06:47 -07:00
Enrico Bianco
77f6e02c0e [Blueprint] Upgrade to 0.9: Make IE conditional comments more configurable in project manifests 2009-06-20 15:52:36 -07:00
Chris Eppstein
4e7e51e2c5 [Rails] Require compass during plugin loading to avoid the wrong version of haml getting loaded first. 2009-06-20 15:10:00 -07:00
Chris Eppstein
8c9ebce494 [Rails] Don't unpack gems using sudo in the rails template. 2009-06-20 15:09:04 -07:00
Chris Eppstein
9170cac954 [Rails] Removed the compass logo from the installer. 2009-06-20 15:08:17 -07:00
Chris Eppstein
a6d9cd64c1 [Rails] Move the new rails compass installer under lib/compass/app_integration/rails. 2009-06-20 13:58:31 -07:00
Chris Eppstein
998168160b [Rails] image_url() now integrates with the rails asset handling code when stylesheets are generated within the rails container.
This causes your rails configuration for cache busting and asset hosts
to be picked up when generating your stylesheets. Unfortunately, all
that code runs within the context of a controller, so the stylesheets
have to be generated during first request to use this functionality.
2009-06-20 12:29:31 -07:00
Chris Eppstein
732b885897 [Command Line] Missing an equals sign for conditional assignment. 2009-06-20 12:29:30 -07:00
Chris Eppstein
2b3b781c33 [Examples] Refactor the module and file loading for Sass Extensions and application integration. Fixed broken unit tests. 2009-06-20 12:29:14 -07:00
Chris Eppstein
f1832d07ab [Compass Core] The image_url() sass function now adds timestamp invalidation to images to prevent them from being cached after changing. 2009-06-20 12:28:45 -07:00
Chris Eppstein
9f46524bde Fixed a bug that caused the current revision to not be set from the REVISION file. 2009-06-20 12:28:27 -07:00
Chris Eppstein
e37b3b4d24 Extracted the CSS Validator to a separate gem to keep the compass gem size small. 2009-06-05 10:02:47 -07:00
Chris Eppstein
7a3bc728f1 Proper version tracking that is compatible with jeweler. 2009-05-23 23:30:49 -07:00
Chris Eppstein
7b90aef5d4 [Rails] Don't set the output style in the compass.config file for rails projects. It will default according to the runtime environment. Closes GH-4. 2009-05-23 09:57:50 -07:00
Chris Eppstein
fcdaf41dbc [Command Line] Store sass cache files in the sass directory of the project. Closes GH-8. 2009-05-23 09:57:41 -07:00
Chris Eppstein
3921465e95 Don't unecessarily set the output style in the Compass TestCase. 2009-05-08 08:09:43 -07:00
Chris Eppstein
36992e0173 Remove some unecessary code. 2009-05-08 08:09:43 -07:00
Chris Eppstein
b2c403711b Return arguments from the configuration suitable for passing to the compass compiler. 2009-05-08 08:09:43 -07:00
Chris Eppstein
22b61e13a9 Added a NullLogger class that can be used to silence the compiler output via the :logger option. 2009-05-07 20:08:19 -07:00
Chris Eppstein
2c7eede9fb Factor out the css_path and sass_path methods for accessing the full path to respective compass project directories. 2009-05-07 20:05:51 -07:00