Commit Graph

853 Commits

Author SHA1 Message Date
Chris Eppstein
5864f2aeab [Rails] Move most of the contents of the compass initializer back to the compass codebase. Discover compass extensions automatically during boot. 2010-07-23 22:54:23 -07:00
Chris Eppstein
755b9a3a11 [Extensions] Make it possible for extensions to create empty directories. Closes GH-173. 2010-07-23 20:41:52 -07:00
Chris Eppstein
c78e097841 Don't use the Base64 library. It's not found in ruby 1.9. 2010-07-23 19:36:40 -07:00
Chris Eppstein
6289fa1de1 [Compass Core] Fixed a bug in inlint-font-files(). 2010-07-20 01:23:34 -07:00
Chris Eppstein
ea355b8cf0 [Command Line] Fixed a display issue when the filenames were shorter than the total label in the compass stats tool 2010-07-18 00:11:00 -07:00
Max Baumann
acffc9fd73 bugfix for inline-font-files helper
path variable isn't an argument to this function - deleted unnecessary  line causing error
2010-07-10 00:08:06 -07:00
Chris Eppstein
fe056d6597 [Core] Rename the grad-opposite-position() helper to opposite-position() and expose it as part of the core library. 2010-07-09 17:53:22 -07:00
Chris Eppstein
f4a1e85f34 Fix confusing error scenario on windows. Closes GH-156. 2010-07-08 22:33:50 -07:00
Chris Eppstein
39e01c57ce Merge branch 'stable'
* stable:
  Prepare for release.
  [Blueprint] Fixed an incorrect include.
  Verify all sass files generate the correct css in the test fixtures.
  Fixed a regression in the rails installer.
  Remove a redundant, broken test
  [Compass Core] Only unquote strings when a number might be passed instead.
  [Docs] Fix some obsolete syntax that was used in the examples.
  [Docs] Update the gem bundle
  Fix some tests around listing projects.
  [Command Line] Allow another configuration file to be used when creating a new project
  [Blueprint] The basic template was missing the scaffolding.
  [Blueprint] Better descriptions of the various blueprint project templates.
  [Command Line] The compass frameworks command has nicer output now -- similar to compass help. The -q option can be used to get a simple list of frameworks.
  [Rails] Provide a wrapper method for Rails.root/RAILS_ROOT that avoids deprecation warnings and handles the case where rails is not loaded at all.
  [Docs] Fix a bug in the docs for link_icons. Closes GH-146.
  [Blueprint] Clean up some comments in the blueprint templates.
  [Command Line] Fix a bug in `compass stats` when using scss files.
  [Command Line] Respect the --dry-run option during compilation.
  Fix a bug in the  command and added a test case for that feature.
  Fix some broken documentation.

Conflicts:
	VERSION.yml
	doc-src/content/CHANGELOG.markdown
2010-05-31 23:49:50 -07:00
Chris Eppstein
a7b6ae0d50 Fixed a regression in the rails installer. 2010-05-31 13:12:05 -07:00
Chris Eppstein
01277cd6ea [Command Line] Allow another configuration file to be used when creating a new project 2010-05-30 12:08:56 -07:00
Chris Eppstein
8889d25414 [Command Line] The compass frameworks command has nicer output now -- similar to compass help. The -q option can be used to get a simple list of frameworks. 2010-05-30 10:59:39 -07:00
Chris Eppstein
6ab85ecd83 [Rails] Provide a wrapper method for Rails.root/RAILS_ROOT that avoids deprecation warnings and handles the case where rails is not loaded at all. 2010-05-30 10:37:00 -07:00
Chris Eppstein
f3d3a66151 [Command Line] Fix a bug in compass stats when using scss files. 2010-05-30 08:10:07 -07:00
Chris Eppstein
9f561e97cb [Command Line] Respect the --dry-run option during compilation. 2010-05-30 07:02:07 -07:00
Chris Eppstein
98e291fa2b Fix a bug in the command and added a test case for that feature. 2010-05-29 14:57:25 -07:00
Chris Eppstein
845b790155 Merge branch 'stable'
* stable:
  Fixed image-width and image-height helpers to function properly on Windows by forcing file reads in binary mode.
2010-05-16 19:03:24 -07:00
xcephe
2a1731f705 Fixed image-width and image-height helpers to function properly on Windows by forcing file reads in binary mode. 2010-05-16 19:02:11 -07:00
Chris Eppstein
cebd685468 Fix a bug in the version code that only manifests when there's no patch release version. 2010-05-16 10:16:13 -07:00
Chris Eppstein
0da025c78d Merge branch 'stable'
* stable:
  Fix some bugs introduced when the Sass monkey patch was removed.
  [Docs] Some polish for the new reset page.
2010-05-15 00:57:27 -07:00
Chris Eppstein
942ea5f1b0 Fix some bugs introduced when the Sass monkey patch was removed. 2010-05-15 00:55:31 -07:00
Chris Eppstein
253f797dd1 Merge branch 'stable'
* stable:
  Don't require deleted files.
2010-05-15 00:34:47 -07:00
Chris Eppstein
bf90f6ea39 Don't require deleted files. 2010-05-15 00:32:11 -07:00
Chris Eppstein
ea1389c1c8 Merge branch 'stable'
* stable:
  Bump versions for v0.10.1 release.
  Update the CHANGELOG for the v0.10.1 release.
  Fix a broken reference to the extensions tutorial. Closes GH-135.
  [Blueprint] Regression fix: automatically apply the reset if blueprint/reset is imported. Closes GH-132.
  Fix a failing test case.
  [Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136.
  [Command Line] Improved descriptions of the watch and init commands.
  [Rails] Improved the next steps to perform after installing compass so that it mentions registering the compass gem.
  [Rails] Fixed a reference to the old configuration file.
  Add a note to the changelog about uninstalling chriseppstein-compass
  Get rid of some dead code that was breaking Rails 3. Closes GH-137.

Conflicts:
	VERSION.yml
	doc-src/content/CHANGELOG.markdown
	frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass
2010-05-15 00:26:20 -07:00
Chris Eppstein
869e0bfac7 [Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136. 2010-05-14 23:29:20 -07:00
Chris Eppstein
9a49c457da [Command Line] Improved descriptions of the watch and init commands. 2010-05-14 23:02:33 -07:00
Chris Eppstein
732fc8f042 [Rails] Improved the next steps to perform after installing compass so that it mentions registering the compass gem. 2010-05-14 23:02:33 -07:00
Chris Eppstein
e796511658 [Rails] Fixed a reference to the old configuration file. 2010-05-14 23:02:33 -07:00
Nathan Weizenbaum
6ad50ea2d8 Get rid of some dead code that was breaking Rails 3. Closes GH-137. 2010-05-14 17:31:07 -07:00
Chris Eppstein
c15ae6bfcf Merge branch 'stable'
* stable:
  [Command Line] Actually register the subcommand for listing frameworks
  [Command Line] Add a sub command for emitting sass CLI imports
  Every stable release is fine. no need to qualify it.
  [Docs] Put Lorin's video on the homepage.

Conflicts:
	doc-src/content/CHANGELOG.markdown
	lib/compass/version.rb
2010-05-13 01:14:12 -07:00
Chris Eppstein
83a876fbf7 [Command Line] Actually register the subcommand for listing frameworks 2010-05-13 01:10:52 -07:00
Chris Eppstein
cc08b1e5de [Command Line] Add a sub command for emitting sass CLI imports 2010-05-13 00:25:32 -07:00
Chris Eppstein
211e99c90c Every stable release is fine. no need to qualify it. 2010-05-12 10:02:03 -07:00
Chris Eppstein
7474dfad2f Versioning is hard. 2010-05-12 09:17:05 -07:00
Chris Eppstein
e2858f8e8c [Rails] Update the rails installer to use the non-beta releases. 2010-05-10 03:05:41 -07:00
Chris Eppstein
5d0454dc02 [Rails] Pass template locations as an array of tuples instead of as a hash to preserve load path ordering.
Closes GH-128.
2010-05-08 23:43:38 -07:00
Chris Eppstein
76a12b4ea2 [CLI] Add the --syntax option to the deprecated CLI for consistency. Closes #114. 2010-05-08 21:46:28 -07:00
Chris Eppstein
2c6028a163 [CLI] Enable command abbreviations. 2010-05-07 10:03:42 -07:00
Chris Eppstein
fa3230e802 [Compass Core] Alias headings to headers for w3c compliant terminology 2010-05-04 19:03:55 -07:00
Chris Eppstein
89442c93b1 [Compass Core] Fix a bug that caused quotes strings passed to url() to be wrapped in another set of single quotes. Closes GH-125. 2010-05-04 19:03:23 -07:00
Chris Eppstein
023d176453 [Docs] Document the font-files() helper function. 2010-05-03 21:25:43 -07:00
Chris Eppstein
46b7343b80 Update the rails template for v0.10 2010-05-02 19:22:50 -07:00
Chris Eppstein
6c9244ec14 Add the options from the command line into the configuration stack. Closes GH-99. 2010-05-02 18:02:13 -07:00
Chris Eppstein
5dee634404 Return a proper error when starting the watcher when there's nothing to compile.
Closes GH-119
2010-05-02 17:28:56 -07:00
Chris Eppstein
00944fdfcc Handle mixed units when checking the color stop order. 2010-05-02 15:41:33 -07:00
Chris Eppstein
910083b2f7 Raise an error if color stops are specified in the wrong order.
Closes GH-118.
2010-05-02 14:55:14 -07:00
Chris Eppstein
cd6b9d659a [Docs] Start documenting the compass helper functions. First up: elements-of-type() 2010-05-02 13:25:43 -07:00
Chris Eppstein
50c57df67f [Command Line] Better demarcation of the global options in compass help command. 2010-05-01 15:21:52 -07:00
Chris Eppstein
2a298ff0f1 [Rails] The default location for compass extensions has moved from vendor/plugins/compass/extensions to vendor/plugins/compass_extensions 2010-05-01 15:19:41 -07:00
Chris Eppstein
80d812396a Fix some gemspec issues. 2010-04-27 11:32:25 -07:00
Chris Eppstein
56034e740d Merge commit 'akahn/master'
* commit 'akahn/master':
  Make old CLI deprecation warning red
  Display a warning if the old --switch style CLI is used
2010-04-27 01:04:36 -07:00
Chris Eppstein
bd6c9950e1 Merge branch 'docs'
* docs: (56 commits)
  Turn on support for -ms in experimental properties.
  document the hide-text mixin
  Allow box shadow to be turned off by @include box-shadow(none). Closes GH-102.
  Fix a broken link to the changelog
  I guess I relied on that silly import.
  Use the gemspec the way the ruby gods intended.
  Better handling of the Compass::VERSION scheme.
  RIP RUN_CODE_RUN
  remove a doc reference to an obsolete file and add some meta descriptions.
  document some small functional changes
  fixed typo in demo header styles
  allow overflow-x on code to scroll
  example code in css-slideshows
  mixin source uses :target for css interaction
  more sensible nav markup/structure
  Update the docs for lists.
  Don't need rcov usually
  Don't display a variable description for empty comments.
  add a scroll bar for long mixin defs
  More docs on the compass utilities.
  ...

Conflicts:
	REVISION
2010-04-27 01:01:26 -07:00
Chris Eppstein
d1a155b59a Better handling of the Compass::VERSION scheme. 2010-04-26 23:54:46 -07:00
Alexander Kahn
887cbfc61c Make old CLI deprecation warning red 2010-04-23 15:40:09 -04:00
Alexander Kahn
e2e5ce9b76 Display a warning if the old --switch style CLI is used 2010-04-23 15:35:01 -04:00
Chris Eppstein
12f9ab2291 [Configuration] Asset hosts and cache busters were broken when using the compass CLI. 2010-04-22 13:12:35 -07:00
Chris Eppstein
b7202bbb75 [Command Line] The help command was not including the global options 2010-04-13 19:58:12 -07:00
Chris Eppstein
ae6bb46f12 [Compass Core] New function called headers() that generates header selectors. 2010-04-13 10:02:55 -07:00
Chris Eppstein
0b994f3832 [Compass Core] Fix a bug in the enumerate() function that was introduced during upgrade to sass 3. Added a test case that would have caught the regression. 2010-04-13 01:06:56 -07:00
Eric Meyer
84992100ea Correctly set the syntax of extension templates when converting them to the users preferred syntax. 2010-04-12 19:25:35 -06:00
Chris Eppstein
d181e4aeeb Fix for a small change to the Sass API. 2010-04-11 21:10:11 -07:00
Chris Eppstein
2680d23190 New CLI option --syntax (-x) and configuration option (preferred_syntax) that govern what sass syntax is used when adding stylesheets to a project. 2010-04-11 20:14:52 -07:00
Chris Eppstein
bf34ddb0dd Allow hidden frameworks. 2010-04-07 09:01:58 -07:00
Chris Eppstein
ace0450774 Fix a bug in 1.8.6 where readbyte is not defined. 2010-03-06 16:27:12 -08:00
Chris Eppstein
7f008f4ea0 [Compass Core] Fix a ruby 1.9 bug in the image_size helper functions for jpeg images. 2010-03-06 15:47:54 -08:00
Chris Eppstein
c3f887ff51 [Rails] Fix rails boot sequence in Rails 2.3.x environments. 2010-02-23 13:12:42 -08:00
Chris Eppstein
76c75b1d3d A better error message if a color stop list is not passed in. 2010-02-23 01:59:44 -08:00
Chris Eppstein
2baaffd013 Fix for rgba colors with the new gradient mixins. 2010-02-23 01:41:41 -08:00
Chris Eppstein
5230d89aba Fix a ruby 1.9 bug 2010-02-22 00:56:48 -08:00
Chris Eppstein
0a3947d320 Add tests, fix some bugs in the image_size helpers, dropped support for bmp because it was broken. 2010-02-22 00:15:16 -08:00
Chris Eppstein
bae616e217 Merge commit 'deepakjois/master'
* commit 'deepakjois/master':
  Adding support for calculating JPG dimensions
  Adding image_height and image_width functions

Conflicts:
	lib/compass/sass_extensions/functions.rb
2010-02-21 23:17:03 -08:00
Chris Eppstein
0c593e2c25 Merge commit 'merbjedi/master'
* commit 'merbjedi/master':
  Adding Pathname support to compass configs
  Adding PathName support for add_project_configuration
  Separating out Rails2 actionpack integration logic
2010-02-21 23:12:17 -08:00
Chris Eppstein
ad4a486ea1 Simpler gradient output by discarding from() and to() 2010-02-21 23:05:30 -08:00
Chris Eppstein
34478112ba Add a warning message to the logger. 2010-02-21 17:32:23 -08:00
Chris Eppstein
2c05ccf9e9 Provide a convenience function for discovering extensions. 2010-02-21 17:31:37 -08:00
Jacques Crocker
5fc52baa02 Adding Pathname support to compass configs 2010-02-20 13:06:29 -08:00
Jacques Crocker
2b985fd191 Adding PathName support for add_project_configuration 2010-02-20 12:48:58 -08:00
Jacques Crocker
719cd980ae Separating out Rails2 actionpack integration logic
Rails3 has different internal implementations on ActionPack which is causing breakage when trying to calculate image_paths. Lets only calculate this logic for Rails 2 at the moment, and figure out what to do with Rails3 later
2010-02-20 12:43:10 -08:00
Deepak Jois
a075a10f59 Adding support for calculating JPG dimensions 2010-02-18 09:58:16 -08:00
Deepak Jois
f9d75b3bce Adding image_height and image_width functions 2010-02-17 19:58:25 -08:00
Chris Eppstein
a8457c99db Fix some x-browser issues in the gradient point code. 2010-02-16 22:14:10 -08:00
Chris Eppstein
cee0eef688 better examples and some comments. 2010-02-16 22:13:07 -08:00
Chris Eppstein
aef52bd57e New linear gradient mixin and support functions. Radial gradient and browser testing are still pending. 2010-02-16 01:47:27 -08:00
Chris Eppstein
925938cd5e [Extensions] Don't force an extension to register itself just because it has ruby code. 2010-02-15 10:57:20 -08:00
Chris Eppstein
3dd2a90dec [Command Line] [Windows] Disable colorized output if win32console cannot be loaded.
Closes GH-82
2010-02-13 17:45:01 -08:00
Chris Eppstein
9cca38f85d Disable the parse method with a decent error message. It should only be used internally now. 2010-02-13 17:19:57 -08:00
Chris Eppstein
8172fce22a [Rails] Fix a setup bug and handle compass configuration changes at rails boot.
Existing rails projects should change their compass initializer file to:

    require 'compass'
    rails_root = (defined?(Rails) ? Rails.root : RAILS_ROOT).to_s
    Compass.add_project_configuration(File.join(rails_root, "config", "compass.rb"))
    Compass.configure_sass_plugin!
    Compass.handle_configuration_change!
2010-02-13 17:07:41 -08:00
Chris Eppstein
c1b903024f New APIs for dealing with configuration changes and accessing a compiler instance. 2010-02-13 16:56:53 -08:00
Chris Eppstein
d59451f398 [Rails] Don't set unset options on the Sass::Plugin 2010-02-13 12:22:21 -08:00
Chris Eppstein
6878899c4c [Command Line] Don't force the user to specify the configuration path when calling compass config 2010-02-13 11:40:59 -08:00
Chris Eppstein
bb77dcefcb Default the project directory to the current directory. 2010-02-13 11:40:02 -08:00
Chris Eppstein
1eef589c29 [Command Line] Make sure all the colors are off when colorized output is disabled. 2010-01-20 17:33:13 -08:00
Chris Eppstein
46be3b27b0 [Rails] Silence a deprecation warning in Rails 3. 2010-01-18 17:36:36 -08:00
Chris Eppstein
b0fbab5455 Upgrade FSSM. 2010-01-18 17:11:06 -08:00
Chris Eppstein
68fe3136c2 Change the structure of the compass vendor directory in the off chance that we ever have to vendor more than one library. 2010-01-18 16:44:20 -08:00
Chris Eppstein
cac3065516 Move the frameworks directory back to the top level. There's not actually a good reason for it to be buried in the ruby source. 2010-01-18 14:58:40 -08:00
Chris Eppstein
e2fd599648 Merge commit '833d49de961a10574ffde16153fea34568d7efe0'
* commit '833d49de961a10574ffde16153fea34568d7efe0':
  in the rails installer, ask them if they want to use sudo for gem commands, but only if their system supports sudo.
2010-01-18 12:37:39 -08:00
Chris Eppstein
d37d63cce3 Make these damn tests pass in ruby 1.9. Evidently, you have to read from $stdin explicitly. 2010-01-18 12:34:37 -08:00
Ryan Shaw
833d49de96 in the rails installer, ask them if they want to use sudo for gem commands, but only if their system supports sudo. 2010-01-14 13:34:33 -07:00
Chris Eppstein
07f988ebff Generate a baseline grid only by passing 0 for the widths to the grid builder. E.g. compass grid-img 0+0x28 2010-01-14 09:05:45 -08:00
Chris Eppstein
6148abf04a Merge commit 'der-rich/master'
* commit 'der-rich/master':
  removed unnecessary .to_a
  Using String#unpack instead of String#bytes to work with Ruby < 1.8.7

Conflicts:
	lib/compass/grid_builder.rb
2010-01-10 13:47:10 -08:00
Chris Eppstein
910fc46aff [Command Line] Added a --poll option to the compass watch subcommand to force polling. 2010-01-10 13:30:44 -08:00
Chris Eppstein
5078d0a0a9 [Configuration] Strip trailing slash and directory separtors from directory and path configuration variables.
Closes GH-77.
2010-01-10 12:27:47 -08:00
Chris Eppstein
fd2ab06f60 Merge commit 'packetmonkey/optional_sudo'
* commit 'packetmonkey/optional_sudo':
  Allows turning off sudo usage with an ENV variable
  Move sudo checks into it's own function
2010-01-10 10:57:09 -08:00
Chris Eppstein
d15298afa8 [Command Line] Command line switch (--boring) to turn off colorized output. 2010-01-10 10:52:28 -08:00
Chris Eppstein
38ff0b7929 Make ANSI color output work on windows. Closes GH-64. 2010-01-10 10:51:43 -08:00
Chris Eppstein
05d89b082c Cache buster timestamps not working in some cases. Closes GH-75. 2010-01-10 08:26:39 -08:00
Chris Eppstein
31cde1b107 Support for scss files in the compass watcher. Closes GH-78. 2010-01-10 08:09:58 -08:00
Evan Sharp
289c338e34 Allows turning off sudo usage with an ENV variable 2010-01-07 14:33:02 -05:00
Evan Sharp
e3a92c68e4 Move sudo checks into it's own function 2010-01-07 14:32:26 -05:00
Richard Wöber
a7a9a1bbba removed unnecessary .to_a 2010-01-04 22:43:42 +01:00
Richard Wöber
d9d3857ee0 Using String#unpack instead of String#bytes to work with Ruby < 1.8.7 2010-01-04 22:40:37 +01:00
Chris Eppstein
b4070637b2 Backwards and forwards compatibility with the ever-changing Sass::Plugin api. 2010-01-04 09:30:35 -08:00
Chris Eppstein
ebd9f22440 Accidently committed a broken version of fssm. 2010-01-04 08:02:33 -08:00
Chris Eppstein
66e2a603d5 Fix a ruby 1.8.6 compatibility bug. 2010-01-02 12:17:06 -08:00
Chris Eppstein
02e2d7a4a9 Upgrade to FSSM v0.1.2. 2010-01-02 11:11:45 -08:00
Chris Eppstein
770f871071 Support for SCSS files if haml edge is installed. 2010-01-02 10:47:34 -08:00
Chris Eppstein
5707a3627f Move the compile action from the Actions module to the Compiler class.
Refactor the compass project compiler to be easier to read.
2010-01-02 08:54:19 -08:00
Chris Eppstein
42d5295e52 Update the gem dependencies for the rails installer. 2009-12-31 11:34:06 -08:00
Chris Eppstein
7db51c42b0 Merge commit 'jsilver/master'
* commit 'jsilver/master':
  fixed win32 sudo incompatibility issue in the rails template
2009-12-31 11:25:55 -08:00
Chris Eppstein
e957da4ec8 Grid image generation: Fix a double output issue, let write_file handle dry runs, and make sure to open the file for binary output. 2009-12-31 11:09:47 -08:00
Chris Eppstein
13425f3e4b Trim some whitespace 2009-12-31 10:55:40 -08:00
Chris Eppstein
4fe8e25edd Merge commit 'pixelmatrix/master'
* commit 'pixelmatrix/master':
  Patched hide-text to account for items that are not text-align: left by default
2009-12-31 10:47:09 -08:00
Richard Wöber
b43223b637 removed RMagic dependecy 2009-12-30 19:38:41 +01:00
pixelmatrix
3da66000b5 Patched hide-text to account for items that are not text-align: left by default 2009-12-29 16:58:56 -07:00
Andrew Vit
f6b319268e [Compass Core] Split out hide-text as its own mixin. 2009-12-18 11:10:26 -08:00
Chris Eppstein
8006c7854c Upgrade the vendored version of FSSM to 0.1.0, this fixes some bugs with jruby and adds inotify support for linux. 2009-12-18 11:05:08 -08:00
Chris Eppstein
6d6e1ca0e3 [Command Line] Specification of sass files to compile
The command line compiler now lets you target specific sass files for
compilation. When specified explicitly, the sass files are always
compiled even if they are older than the corresponding css file (--force
is implied).

Usage Examples:

From the project directory:
compass compile src/screen.sass src/ie.sass

From another directory:
compass compile my_project my_project/src/screen.sass my_project/src/ie.sass
2009-12-18 11:05:08 -08:00
Chris Eppstein
a3cdf182c9 [Compass Core] +min-height, +min-width, and +bang-hack mixins 2009-12-18 11:05:08 -08:00
Andrew Vit
5ea5d3d6f3 Added utility for loading web fonts using @font-face. 2009-12-18 11:05:08 -08:00
jsilver
0933a1665e fixed win32 sudo incompatibility issue in the rails template 2009-12-17 19:03:02 -07:00
Chris Eppstein
5f32043c29 [Blueprint] Bug Fix: variable referenced in a non-script context within
the dquo mixin in the fancy_type module. Closes GH-60.
2009-12-03 00:53:35 -08:00
Chris Eppstein
3bb5e6d83d If the configuration file changes, wipe out the sass cache and force
compilation. Closes #55.
2009-12-01 10:34:39 -08:00
Chris Eppstein
fd058fae04 [Configuration] The sass cache location can now be set in the compass config file using the cache_dir property and the cache can be disabled by setting cache = false. 2009-12-01 09:57:49 -08:00
Chris Eppstein
c60aca3d96 Color any stderr or stdout output from the Sass::Engine red. 2009-12-01 09:57:26 -08:00
Chris Eppstein
0dd89e54f4 Fix line_comments configuration setting. 2009-12-01 00:03:07 -08:00
Chris Eppstein
21cf6c870f Make sure the required libraries appear in the generated configuration file. 2009-11-30 23:46:58 -08:00
Chris Eppstein
bf7265443e Use the correct error formatting function based on what sass provides. 2009-11-30 22:48:20 -08:00
Chris Eppstein
faf589bead [Rails] Fix the invalid reference to the compass configuration file. 2009-11-30 22:48:19 -08:00
gpbmike
2751e3b913 line-height should be 1 and not 1em 2009-12-01 14:47:48 +08:00
Chris Eppstein
c17c36eae4 Some code cleanup and bugfixes for the css3 transform module. 2009-11-29 22:44:19 -08:00
Chris Eppstein
4b68a64ea9 Pretty color output for the compass logger. 2009-11-29 20:18:25 -08:00
Chris Eppstein
cc31c29807 Error reporting. When an error occurs during compilation,
write out a css file with the error report and debugging information.
Also, record the error to the output, but keep compiling the other
stylesheets.
2009-11-29 20:18:25 -08:00
Chris Eppstein
e359db1a77 Fix some configuration defaults. 2009-11-29 20:18:09 -08:00
Chris Eppstein
71058e3d9c Fix a bug in the error handler while watching a project. 2009-11-29 18:39:58 -08:00
Chris Eppstein
ca6ffb4f57 [Rails] The font directory for rails projects will default to public/fonts. 2009-11-28 12:11:11 -08:00
Chris Eppstein
fb16bf6ace Fix a bug that caused the project type to not be emitted into the compass config file for rails projects. 2009-11-28 12:10:14 -08:00
Chris Eppstein
eec390ea37 Allow extensions to deliver fonts into projects. 2009-11-28 11:04:03 -08:00
Chris Eppstein
d504650eda Ooops. 2009-11-28 10:07:10 -08:00
Chris Eppstein
7b95f34aa3 Support for font urls and embedding fonts inline within the file 2009-11-27 17:44:22 -08:00
Chris Eppstein
070f39c6b7 Added support for a fonts directory. This is where font files are kept
and should be accessible to the webserver. By default the fonts directory
is the "fonts" subdirectory of the css directory but another location
can be set via the fonts_dir and http_fonts_dir configuration options.
2009-11-27 17:15:07 -08:00
Chris Eppstein
d2c314839d Merge branch 'edge' into ericam_edge
* edge:
  Fix test failure.
  [Blueprint] Fixed clipping of ordinals for IE in an ordered list.
  [Blueprint] When using the RTL plugin, columns are now text-align:right.
  [Blueprint] Add visibility:hidden to hr.space and +colspacer so it's useful outside of white backgrounds
  Fix grid builder to properly generate png
  [Blueprint] Password inputs now the same style as regular text inputs
  [Tests] Process expected result files thru erb to account for more transient behaviors across different systems.
  fix broken test.
  Don't use methods not available in ruby 1.8.6
  Changes for blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f
2009-11-27 16:23:47 -08:00
Chris Eppstein
7da41d027a [Compass Core] +font-face mixin uses stylesheet_url to form urls relative to the css directory. 2009-11-25 22:55:42 -08:00
Eric Meyer
d6b170b851 css3 transitions sass 2009-11-25 17:32:15 -07:00
Eric Meyer
21dee4e75e css3 transition mixins 2009-11-25 17:22:24 -07:00
Eric Meyer
caf99cc98c css3 transform mixins 2009-11-25 15:05:11 -07:00
Eric Meyer
f7f188ec45 fixed example to match recommendation 2009-11-24 17:20:14 -07:00
Eric Meyer
d985773b96 !postscript = false / not !false 2009-11-24 17:14:13 -07:00
Eric Meyer
f37a7414c5 typos in font_files function and include 2009-11-24 13:18:21 -07:00
Eric Meyer
a1c976bbcb added font-face mixin with font_files function 2009-11-24 13:12:31 -07:00
Chris Eppstein
43c19f7315 [Blueprint] Fixed clipping of ordinals for IE in an ordered list.
Port of blueprint commit 016c9114f1aa91f84c3d68f3be9a97a114334d84
2009-11-24 09:51:17 -08:00
Chris Eppstein
19ceefe899 [Blueprint] When using the RTL plugin, columns are now text-align:right.
Ported from blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f
2009-11-24 09:51:17 -08:00
Chris Eppstein
ebaf655bb6 [Blueprint] Add visibility:hidden to hr.space and +colspacer so it's useful outside of white backgrounds
Port of blueprint commit 414d9242c3b3ffdf5e2d90a84c87a4c4c711a135
2009-11-24 09:51:10 -08:00
Chris Eppstein
27e1bf4b0f Fix grid builder to properly generate png
Port of blueprint commit eb58cdef26ea537cc65f842c7675c6575575f6c0
2009-11-24 09:30:22 -08:00
Chris Eppstein
b8b43c3ebc [Blueprint] Password inputs now the same style as regular text inputs
Port of blueprint d77e914e85669ff9f05034e51d4d6d8a9dba2fa9
2009-11-24 09:23:48 -08:00
Chris Eppstein
7f756f681a Don't use methods not available in ruby 1.8.6 2009-11-23 15:16:16 -08:00
Eric Meyer
2b8c14082c added imports for new CSS3 mixins 2009-11-23 11:59:51 -07:00
Eric Meyer
0df5a8cf47 added css3 background-size mixin 2009-11-23 11:55:38 -07:00
Eric Meyer
e890332344 added css3 background-origin mixin 2009-11-23 11:45:31 -07:00
Eric Meyer
dd829cd48c added css3 background-clip mixin 2009-11-23 11:43:58 -07:00
Eric Meyer
5d812effd6 Merge branch 'edge' of git://github.com/imathis/compass into edge 2009-11-23 10:40:19 -07:00
Chris Eppstein
67a7a37b42 Changes for blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f 2009-11-22 22:14:18 -08:00
Enrico Bianco
3a25a83040 [Blueprint] Ensure that the blueprint-inline-form mixin is applied to form.inline when using blueprint-scaffolding. Fixes some alignment issues in the inline form example 2009-11-21 15:33:16 -08:00
Chris Eppstein
382388b029 Move some sass code to where it should be for this welcome page. 2009-11-21 13:20:21 -08:00
Chris Eppstein
b69138059a [Blueprint] Moved the blueprint/modules/*.sass files to blueprint/*.sass. Old imports are still supported but are deprecated. 2009-11-21 13:19:18 -08:00
B Mathis
8ab06aa183 added box shadow and text shadow to default css3 partial 2009-11-21 15:07:41 -06:00
B Mathis
31dab72ff3 added text shadow mixin 2009-11-21 15:06:00 -06:00
B Mathis
4b26355dc0 fixed variables in box shadow mixin 2009-11-21 15:05:43 -06:00
B Mathis
858227ab0f fixed typo on box_shadow mixin 2009-11-21 14:57:10 -06:00
B Mathis
a3b52a23ee updated gradient example to use sass script color stop function, added radial gradient support 2009-11-21 14:47:32 -06:00
Chris Eppstein
9d8253fa05 Added a color-stop function to simplify the creation of gradients with multiple stop points. 2009-11-21 11:33:18 -06:00
Chris Eppstein
11a354e47e [Compass Core] Added a color-stop function to simplify the creation of gradients with multiple stop points. 2009-11-21 09:26:54 -08:00
B Mathis
483af9ac31 added linear gradient mixin 2009-11-21 11:11:34 -06:00
B Mathis
ec7be709c2 rewrote box shadow to have optional arguments, and defaults 2009-11-21 11:10:23 -06:00
Chris Eppstein
04f14eb514 Merge branch 'edge'
* edge: (118 commits)
  Make the tests pass in ruby 1.9
  Fix a bug in FSSM for ruby 1.9. Closes GH-48.
  Version bump to 0.9.4
  Update the TODO.
  If a template provides a haml file, it can have compass-enabled sass filters within it.
  Allow vendored frameworks to override built-in frameworks to enable
  [Rails] Allow compass extensions to be stored in the vendor/plugins/compass/extensions directory.
  Fix some issues regarding how the project type configuration gets applied.
  Don't leave directories around after testing.
  Name all configuration sources for debugging purposes.
  [Command Line] Primary commands get special status in the initial help output.
  [Command Line] Access the Sass Repl (sass -i) with the compass environment loaded.
  Separate the project type default configuration from the installer.
  Add config/compass.rb as a known config location. Default to config/compass.rb as the configuration file for rails projects.
  Fix a bug when the welcome message was not provided by an extension template.
  Version bump to 0.9.3
  Starting work on the changelog for 0.10
  Stuff that needs to be done before the next release.
  Help for each template that ships with compass.
  Allow the welcome message to replace the default one instead of just augment it.
  ...

Conflicts:
	CHANGELOG.markdown
	VERSION.yml
	compass.gemspec
	lib/compass/configuration.rb
	lib/vendor/fssm.rb
	lib/vendor/fssm/state.rb
2009-11-19 10:53:20 -08:00
Chris Eppstein
bad615ef09 Fix a bug in FSSM for ruby 1.9. Closes GH-48. 2009-11-19 02:19:53 -08:00
Chris Eppstein
0c2a8a4e21 If a template provides a haml file, it can have compass-enabled sass filters within it. 2009-11-19 01:03:57 -08:00
Chris Eppstein
651bcc9977 Allow vendored frameworks to override built-in frameworks to enable
testing and development.
2009-11-19 00:41:15 -08:00
Chris Eppstein
51315469d8 [Rails] Allow compass extensions to be stored in the vendor/plugins/compass/extensions directory. 2009-11-18 23:44:30 -08:00
Chris Eppstein
0da214a987 Fix some issues regarding how the project type configuration gets applied. 2009-11-18 23:43:33 -08:00
Chris Eppstein
bd422403bd Name all configuration sources for debugging purposes. 2009-11-17 08:58:12 -08:00
Chris Eppstein
a281dc1d5f [Command Line] Primary commands get special status in the initial help output. 2009-11-16 17:57:50 -08:00
Chris Eppstein
46ccb5b6e1 [Command Line] Access the Sass Repl (sass -i) with the compass environment loaded. 2009-11-14 10:11:19 -08:00
Chris Eppstein
22cdcf2cb5 Separate the project type default configuration from the installer. 2009-11-14 09:42:37 -08:00
Chris Eppstein
ba33c5a5a6 Add config/compass.rb as a known config location. Default to config/compass.rb as the configuration file for rails projects. 2009-11-14 09:37:36 -08:00
Chris Eppstein
57aae94511 Fix a bug when the welcome message was not provided by an extension template. 2009-11-01 21:08:45 -08:00
Chris Eppstein
1981e5f2ca Help for each template that ships with compass. 2009-11-01 17:40:50 -08:00
Chris Eppstein
d4f67a315c Allow the welcome message to replace the default one instead of just augment it. 2009-11-01 17:09:44 -08:00
Chris Eppstein
353a225ac5 Allow help, welcome message, and description of an extension to be specified in the manifest file. 2009-11-01 16:49:44 -08:00
Chris Eppstein
8bcdd7360d Each framework pattern can have help now. 2009-11-01 15:26:58 -08:00
Chris Eppstein
9ae53ac72e Move compass/utilities/css3 module to compass/css3 2009-11-01 10:01:29 -08:00
Chris Eppstein
c40982c533 Debug configuration with compass config --debug 2009-11-01 09:59:48 -08:00
Chris Eppstein
d1a6490f2c Make the validator work even when you're not in the project directory. 2009-10-30 09:27:59 -07:00
Chris Eppstein
b0637be654 Fix some test errors that occur when gems are missing. 2009-10-30 08:19:44 -07:00
Chris Eppstein
2675f8ed9a CSS Stats for projects so that the complexities can be compared. 2009-10-29 11:35:20 -07:00
Chris Eppstein
d1e1c1756d New compass subcommand: stats. Emits details about your stylesheets. 2009-10-29 01:39:04 -07:00
Chris Eppstein
0d45a3b4aa Subcommand for writing a configuration file. 2009-10-26 18:52:27 -07:00
Chris Eppstein
dd750391be Subcommand for CSS validation. 2009-10-26 18:52:00 -07:00
Chris Eppstein
217c522a92 test scenario for the rails project initialization. 2009-10-25 20:15:31 -07:00
Beau Smith
adce6a4873 applying border to image element rather than anchor element 2009-10-25 17:22:15 -07:00
Chris Eppstein
3e99fedab0 Added a watch subcommand. Watching a project can now by done with: compass watch 2009-10-25 00:47:09 -07:00
Chris Eppstein
c8df3f3c42 New subcommand: compile 2009-10-24 17:44:42 -07:00
Chris Eppstein
f9c5644dcc Ability to create a bare project by passing the --bare option to the create command. 2009-10-24 15:21:08 -07:00
Chris Eppstein
853e97f2e4 [Command Line] Ability to create a bare project with no stylesheets provided. 2009-10-22 09:46:54 -07:00
Chris Eppstein
964304caa4 This fixes a bug in ruby 1.8.7. 2009-10-21 17:59:51 -07:00
Chris Eppstein
8b02a65ab4 Fix bugs in the dry-run mode of project creation. 2009-10-16 17:35:43 -07:00
Chris Eppstein
4c4cc0e55f Handle a call to the command line with no arguments. 2009-10-16 00:56:16 -07:00
Chris Eppstein
8b5868ca00 Grid image subcommand. 2009-10-05 00:56:49 -07:00
Chris Eppstein
12dcccad5d Install subcommand. 2009-10-04 22:22:07 -07:00
Chris Eppstein
f16b12e56b This looks a little better. 2009-10-04 22:18:19 -07:00
Chris Eppstein
b8d380d68c Version subcommand. 2009-10-04 22:17:56 -07:00
Chris Eppstein
515cdb316e Help command as a univeral way to access help information. With help for other commands so far. 2009-10-04 15:58:05 -07:00
Chris Eppstein
dedff936b8 Better output for -h, --help and on option parse error. 2009-10-04 13:45:46 -07:00
Chris Eppstein
0fc9a0e3c8 Subcommand UI for project creation and initialization. 2009-10-04 00:33:36 -07:00
Chris Eppstein
4cc569586b Restructure the existing command line code to allow for the new sub-command based CLI. 2009-09-29 18:35:24 -07:00
Chris Eppstein
772a58de41 Converted the blueprint stylesheets to css-style properties. 2009-09-28 22:34:41 -07:00
Chris Eppstein
e744c1e0db Convert the compass core framework to css-style property syntax. 2009-09-28 21:52:49 -07:00
Chris Eppstein
e0732c8700 [Compass Core] The enumerate function now accepts an optional argument to specify the separator. Closes GH-46. 2009-09-24 09:06:47 -07:00
Chris Eppstein
7a59888fcb Don't require an extension to provide a stylesheets directory. 2009-09-12 08:28:38 -07:00
Chris Eppstein
770b3b4fee [Command Line] Upgrade to FSSM 0.0.6 for bug fixes. 2009-09-05 22:59:30 -07:00
Chris Eppstein
598f850124 Upgrade to FSSM version 0.0.4 2009-09-02 22:42:59 -07:00
Chris Eppstein
6e7f658f3b Move the frameworks directory into lib/compass per gem packaging best practices. 2009-09-02 21:45:15 -07:00
Chris Eppstein
e6b14cf5bb Provide a Compass::VERSION constant. 2009-09-02 21:45:14 -07:00
Chris Eppstein
b13fd43a2e Require relative to the load path instead of using the more convoluted approach of File.join(File.dirname(__FILE__), ...).
Also, don't ever muck with the load paths or rubygems without first
trying to require the library without doing so.
2009-09-02 21:45:08 -07:00
Chris Eppstein
60ad1e2425 Move project configuration reading out of the command infrastructure and into the configuration helpers. 2009-09-02 10:47:21 -07:00
Chris Eppstein
54a459f28e Allow specification of a height for the grid image. 2009-09-01 20:20:53 -07:00
Chris Eppstein
cb45b6d438 Generalized application framework integration. There are three that ship with compass: Merb, Rails, and StandAlone.
All application specific behavior is now centralized within the app integration modules.
Plugins can now provide app integration using the --app command line option and by adding the appropriate classes to the compass module tree.
2009-09-01 20:20:23 -07:00
Chris Eppstein
3456f993d4 Merge branch 'master' into edge
* master:
  [Blueprint] Add mixins for +prepend-top and +append-bottom and corresponding grid classes when generating the css grid classes.
  Use FSSM by Travis Tilley to monitor for filesystem changes. On mac this will use filesystem events instead of polling. Fixes an infinite looping issue when compilation errors occur.
2009-08-30 11:53:47 -07:00
Chris Eppstein
005f6d4f36 Use FSSM by Travis Tilley to monitor for filesystem changes. On mac this will use filesystem events instead of polling. Fixes an infinite looping issue when compilation errors occur. 2009-08-30 11:37:52 -07:00
Chris Eppstein
92464c5f6a More flexible manifests that can see the installation options and might
not even have any stylesheets or require a project configuration file.
2009-08-29 15:14:52 -07:00
Chris Eppstein
44e810e840 Allow stand-alone projects to have their own extensions directory. 2009-08-29 15:14:52 -07:00
Chris Eppstein
bc27541378 New framework discovery mechanism: Compass can now load any number of
frameworks by passing a directory that contains those frameworks. Each
framework can choose to adhere to the naming convention of providing a
'stylesheets' directory and a 'templates' directory, or it can register
itself by providing a ruby file at one of the following locations:

<plugin>/compass_init.rb
<plugin>/lib/<plugin>.rb
<plugin>/<plugin>.rb

The first file found in the above order will be required. The framework
should register itself there using the Compass::Frameworks.register method.
2009-08-29 15:14:51 -07:00
Chris Eppstein
a0036ec0f1 remove some blank lines. 2009-08-29 15:14:51 -07:00
Chris Eppstein
5d8e8cae02 Fixed bug related to how the project_type was defaulted. 2009-08-29 15:13:51 -07:00
Chris Eppstein
379118cb1e Don't set the project type explicitly, instead default it to :stand_alone via the configuration object. 2009-08-29 13:20:32 -07:00
Chris Eppstein
dd867d668a Use the http_stylesheets_path instead of hard coding. 2009-08-29 13:20:32 -07:00
Chris Eppstein
f59ca512ce Refactor of the internal datastructures used to access project
configuration. Configuration is now a singly linked list of configuration objects
that inherit values and defaults from the next configuration instance.
All instances hold a reference to the top of the configuration chain.

There is now a consistent API for reading configuration property values:

                <attr>: Reads the fully-resolved attribute after taking
                        configuration inheritance and defaults into account.
            raw_<attr>: reads attribute from a configuration object without
                        inheritance or defaults.
   default_for(<attr>): reads the default value for an attribute
    default_for_<attr>: specifies the default value for an attribute.
<attr>_without_default: reads the inherited attribute without applying defaults.
    comment_for_<attr>: Specifies a comment that will be emitted above the
                        property when serializing the configuration to a file.

Additionally, method_missing and respond_to both work down the
configuration chain, so any method that is added to a configuration
instance, can be accessed from the top level.

The distinction between default and explicitly set values allows compass
to more correctly manage the serialization of attributes when creating
configuration files for projects.

The compass configuration can still be accessed via
Compass.configuration, however, the configuration object is no longer a
singleton. This means that you can build several configuration chains
to track several projects at once. This should ease the use of compass
in other frameworks and plugins that want to use compass internally.
2009-08-29 13:20:32 -07:00
Chris Eppstein
ac264606c8 DRY up the loading of the installer modules. 2009-08-29 13:20:32 -07:00
Chris Eppstein
1450f39d8c Renamed the configuration helper method root_relative to http_root_relative for consistency. 2009-08-29 13:20:32 -07:00
Chris Eppstein
b7ba05f7c1 [Extensions] Compass extensions can now process the content they deliver through ERB. 2009-08-29 13:20:32 -07:00
Chris Eppstein
c9454190e7 [Compass Core] Fixed the append_selector function to allow comma-delimited selectors for both arguments instead of just the first. 2009-08-29 13:20:31 -07:00
Chris Eppstein
f27e184c7f [Core] The compass configuration class is no longer a singleton. This allows other projects to manage multiple compass projects by creating multiple configurations within the same ruby process. 2009-08-29 13:20:31 -07:00
Chris Eppstein
1a9156c010 [Extensions] Compass extensions can now deliver html into a compass project which can be authored in haml if they prefer. 2009-08-29 13:20:31 -07:00
Jacques Crocker
73158b4c3e #36 Retain existing Merb::Plugins.config[:sass][:template_location] settings when setting Sass::Plugin.options[:template_location] with Compass defined paths 2009-08-29 13:20:31 -07:00
Jacques Crocker
4ffa08cc42 Fixing Merb Integration (use Merb::Plugins.config instead of Merb::Config) 2009-08-29 13:20:31 -07:00
Chris Eppstein
3681187e6c Just do a simple require for sass, haml-edge will have to be loaded by the user explicitly if they want that.
Fall back to loading rubygems to load sass if it cannot be loaded.
2009-08-29 13:20:31 -07:00
Chris Eppstein
48c7d45c30 [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-08-29 13:19:36 -07:00
Chris Eppstein
bbe8366350 [Configuration] A more logical and consistent approach to http path locations. 2009-08-29 13:19:36 -07:00
Chris Eppstein
390674ba83 [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-08-29 13:19:36 -07:00
priit.mx.ee
c11be2eac6 Ruby 1.9.1 fix: binding for parse_string 2009-08-22 08:25:39 -07:00
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
Chris Eppstein
70086c880b Fall back to normal loading if the haml-edge gem isn't found. 2009-05-07 10:24:32 -07:00
Sean Schofield
84f657027a Compass now depends on the haml-edge gem instead of haml. 2009-05-06 20:14:31 -04:00
Chris Eppstein
c40566c93b [Command Line] The --force option will now force recompilation. Useful when the stylesheets don't appear to need a recompile. 2009-05-02 15:18:26 -07:00
Chris Eppstein
ddfba8ec83 [Command Line] Fixed bug that caused the --write-configuration option to break. 2009-05-02 15:13:54 -07:00
Chris Eppstein
8aee42e5a1 [Compass Core] The image_url sass function now handles absolute urls correctly. 2009-04-29 08:26:27 -07:00
Chris Eppstein
6409be1646 [Command line] Make sure that compass frameworks required on the command-line will appear in the initial project configuration. 2009-04-29 08:19:35 -07:00
Chris Eppstein
e6b7774774 [Command line] Add a command line option that prints out where compass is installed. 2009-04-25 11:57:18 -07:00
Chris Eppstein
4a2b4c538e A more sensible order of command line options. 2009-04-25 10:48:38 -07:00
Chris Eppstein
531c90a1a4 [Command Line] Respect the -q (quiet) option during compilation. Set the quiet option when watching a project for changes. 2009-04-22 12:50:18 -07:00
Chris Eppstein
be594d2b1f [Command Line] Don't recompile sass files that haven't changed (taking import dependencies into account). 2009-04-22 12:48:00 -07:00
Chris Eppstein
cc1b603263 [Rails] Bug fix: The http_images_path configuration default should be "/images" instead of "/public/images". 2009-04-21 10:07:48 -07:00
Erik Bryn
2c89b21f82 Conditionally defining #blank? on String/NilClass
Signed-off-by: Chris Eppstein <chris@eppsteins.net>
2009-04-19 09:44:11 -07:00
Lee Nussbaum
d5f44081ef Set compass environment in plugin based on RAILS_ENV (currently used to set line_comments option).
Fix line_comments option for plugin.

Signed-off-by: Chris Eppstein <chris@eppsteins.net>
2009-04-19 09:43:58 -07:00
Chris Eppstein
cb2b5c0891 Slightly better followup message for rails projects installing patterns. 2009-04-07 00:22:22 -07:00
Chris Eppstein
ab42e46906 Update the copyright. 2009-04-07 00:22:22 -07:00
Chris Eppstein
559b981015 All commands must implement execute now. 2009-04-07 00:22:22 -07:00
Chris Eppstein
591bd882bf There were far too many things trying to be in charge of setting configuration. Now there are less. 2009-04-07 00:22:21 -07:00
Chris Eppstein
a56fe74dbb Fix a bug for the cases where http_images_path ends in a slash. 2009-04-06 00:35:47 -07:00
Chris Eppstein
ff14940206 Use a deterministic order for setting configuration defaults. 2009-04-06 00:35:19 -07:00
Chris Eppstein
6c0a301d91 centralize the config setup and parsing for commands. 2009-04-06 00:34:27 -07:00
Chris Eppstein
c36f63fd92 Incorporate Blueprint 0.8 grid changes, make the generated grid more closely match Blueprint's by adding an enumerate(prefix, startindex, endindex) sass function that generates a list of enumerated selectors. 2009-04-06 00:00:44 -07:00
Chris Eppstein
ae4daa2572 Better rails boot sequence for compass that is both rails and compass command line friendly. 2009-04-05 03:50:41 -07:00
Chris Eppstein
bed5fe3458 Added a new Sass function called image_url() that can be used instead of url() to link to an image relative to the images directory according to the compass project configuration. 2009-04-05 03:13:42 -07:00
Chris Eppstein
bb197d849b Strip some trailing whitespace. 2009-04-03 12:09:45 -07:00
Chris Eppstein
e18ed8118b Support for Framework Patterns.
A pattern is a folder in the framework's templates directory. It must
have a manifest file that tells compass what to install and where.
Unlike the project template, a pattern can be stamped out any number of
times.

It is best for pattern stylesheets to only provide example usage to get
the user started. All the core styles for the pattern should be
distributed as part of the framework's stylesheets as mixins to
facilitate easy upgrades and bug fixing on the part of the pattern's
maintainer.

Patterns can install stylesheets, images, javascripts, and arbitrary
files. The installer will put these assets into the correct locations
according to the project type (E.g. rails, stand-alone).

Example Usage:
compass --framework blueprint --pattern buttons
2009-04-03 01:06:23 -07:00
Chris Eppstein
43fc3be14b Generate a grid background image with the --grid-img command line option. 2009-04-02 21:27:55 -07:00
Chris Eppstein
63de13debd Validate your project's CSS files by running compass --validate. 2009-04-01 21:24:02 -07:00
Chris Eppstein
a8b36a6441 Remove a puts used for debugging. 2009-04-01 18:03:29 -07:00
Chris Eppstein
1991f729f0 Fixes to make the environment setting work correctly with configuration files and to correctly pass the :line_comments option to Sass::Engine. 2009-04-01 17:24:36 -07:00
Chris Eppstein
356f134621 Added a configuration helper method to access the compass load paths suitable for passing to the Sass option :load_paths 2009-03-16 20:08:38 -07:00
Thomas Reynolds
48b705943e fix --output-style to actually work 2009-03-12 11:50:37 -07:00
Chris Eppstein
28473d5293 Fixed bug in the watch_project command. 2009-02-25 09:43:39 -08:00
Chris Eppstein
e14f6968f1 Allow rails installs to proceed without requiring input if the css-dir and sass-dir options are set on the command line. 2009-02-21 00:27:48 -08:00
Chris Eppstein
43ee4e1c98 Added a new command line option to emit and update the stand-alone configuration file. 2009-02-21 00:15:24 -08:00
Chris Eppstein
95fd94428a Refactored the Configuration Singleton and the UpdateProject command so that it now relies more heavily on the configuration object. 2009-02-21 00:15:19 -08:00
Chris Eppstein
a8f6648a64 Give a better error when a framework is misspelled. 2009-02-20 17:07:56 -08:00
Chris Eppstein
7f63fe7a29 Clean up some of the command line documentation. 2009-02-20 14:39:01 -08:00
Chris Eppstein
ccf0dfa19a Rename the --source and --target command line options to --sass-dir and --css-dir respectively to match the configuration file syntax. 2009-02-20 14:38:33 -08:00
Chris Eppstein
39a4b48b5e Fixed a bug in the configuration parser.
Added Compass#sass_engine_options method to emit sass options suitable
for passing to Sass::Engine#new.

Added require tracking in the configuration parser and serializer.
2009-02-12 23:19:32 -08:00
Chris Eppstein
c391ce09c0 Import the configuration module by default and not just for installation. 2009-02-08 13:09:29 -08:00
Chris Eppstein
10e6808648 Detect identical files when writing files during install, compile, etc. Also centralize the actions to use the write_file action as much as possible. 2009-02-08 03:46:47 -08:00
Chris Eppstein
0dfd60671f Remove some unused methods. 2009-02-08 03:46:46 -08:00
Chris Eppstein
3adf6a6435 Extract a project compiler class from the update_project command. 2009-02-08 03:46:46 -08:00
Chris Eppstein
6c4759278e Don't return a trailing slash from templatize or targetize. 2009-02-08 03:46:46 -08:00
Chris Eppstein
c0c422c373 Consolodate error classes. 2009-02-08 03:46:46 -08:00
Chris Eppstein
9e80847ac7 Remove unused method. 2009-02-08 03:46:46 -08:00
Chris Eppstein
8a0d2b900c Clean up the version parsing code. 2009-02-08 03:46:46 -08:00
Chris Eppstein
29666e177c DRY up the different types of installs. 2009-02-08 03:46:46 -08:00
Chris Eppstein
a0552a67c4 Modify the update command to use the Actions module and Logger. Moved the compile action to the Actions module. 2009-02-08 03:46:46 -08:00
Chris Eppstein
dbc262fbe1 Factored out an Actions module for doing the filesystem actions like copying, making directories, etc. 2009-02-08 03:46:46 -08:00
Chris Eppstein
98a2f0538b Use the Compass.configuration singleton for updates. 2009-02-08 03:46:46 -08:00
Chris Eppstein
a7406659b6 New Ruby on Rails project installer. 2009-02-08 03:46:46 -08:00
Chris Eppstein
94f4471ad5 Better followup messages after installation. 2009-02-08 03:45:48 -08:00
Chris Eppstein
1da3b3ae9b Add a to method to Manifest::Entry to centralize the logic. 2009-02-08 03:45:48 -08:00
Chris Eppstein
d2a3046526 Make the Configuration class a singleton + added some access helpers to
the Compass module.
2009-02-08 03:45:48 -08:00
Chris Eppstein
91e081cd50 New project creation implemented using manifests and installation strategies. 2009-02-08 03:45:48 -08:00
Chris Eppstein
0ac537a81b Added a framework accessor for the current framework. 2009-02-08 03:45:48 -08:00
Chris Eppstein
61de5ae125 New base class for Compass Errors. 2009-02-08 03:45:48 -08:00
Chris Eppstein
59e626fe8b Factored out a Configuration object to parse stand-alone project configuration files. 2009-02-08 03:45:47 -08:00
Chris Eppstein
845fa14e71 Factored out a logger for the command line to tell the user what is happening. 2009-02-08 03:45:47 -08:00
Chris Eppstein
359be7e46e Added an import to the install_rails command line command. Bumped the version up to 0.3.9 2009-02-06 10:57:08 -08:00
Chris Eppstein
f316dd013e Centralize all the framework specific code into the frameworks directory. 2009-01-25 15:05:36 -08:00
Chris Eppstein
1e5502159b Refactor the Compass commands to centralize and cleanup the project commands. 2009-01-25 14:27:08 -08:00
Chris Eppstein
911041f355 Give a better error message to users with an unsupported version of haml installed. 2009-01-25 11:28:11 -08:00
Chris Eppstein
c8e07b4228 Make the compass watch command a little more understandable for first time users and handle Interrupt more gracefully. 2009-01-24 14:35:17 -08:00
Chris Eppstein
ff2a54af53 Changes to make the command-line tool more testable. 2009-01-19 07:52:39 -08:00
Chris Eppstein
5fce487ba8 Don't reference ARGV in the exec module. This makes testing easier. 2009-01-18 17:41:20 -08:00
Chris Eppstein
becda48b83 Allow passing a path to the rails project instead of requiring the user to change into the rails project directory first. 2009-01-18 17:04:20 -08:00
Chris Eppstein
f903da3434 Indifferent access (symbol, string) for Compass::Frameworks[] 2009-01-18 12:25:16 -08:00
Chris Eppstein
98035eea07 Better to keep the config file in the source directory. 2009-01-02 01:35:14 -08:00
Chris Eppstein
77077c6347 Allow a ruby configuration file named config.rb to be placed at the top of a compass project to import other plugins and frameworks. 2009-01-02 01:26:16 -08:00
Chris Eppstein
8b8ad95c15 Make framework plugins actually work. 2009-01-01 23:18:21 -08:00
Chris Eppstein
ebb22c1060 Register the blueprint framework as the correct name. 2009-01-01 23:14:51 -08:00
Chris Eppstein
a54ccae040 Don't limit the legal framework values on the command line. 2009-01-01 23:14:24 -08:00
Chris Eppstein
e93051d239 Add a command to list available frameworks. 2009-01-01 23:11:52 -08:00
Chris Eppstein
b021b77894 Allow frameworks more control over specifying where the templates and stylesheets are located. 2009-01-01 18:06:37 -08:00
Chris Eppstein
9631a403e3 Allow the project source and target directories to be different by specifying --source and --target to any of the command line commands. 2008-12-21 22:07:32 -08:00
Chris Eppstein
618bd788e1 Require rubygems helps to require sass when running locally instead of out of a gem. 2008-12-08 20:43:13 -08:00
Chris Eppstein
31370e20d8 Fixed the --imports command-line option so that it generates useful output for being passed to sass. E.g.:
sass `compass --imports` some_file.sass
2008-12-02 15:48:22 -08:00
Chris Eppstein
39265bafc3 Added a Sass Function called nest that performs a nesting operation on (possibly) comma delimited selectors and emits the result as a string.
For example:

nest(".foo", "a, em, b")

would render:

.foo a, .foo em, .foo b

The nest function can take any number of arguments and each argument can have any number of comma-delimited selectors.
2008-11-29 01:08:07 -08:00
Chris Eppstein
3fe8f6a675 Added a compass command-line option to watch a project and automatically recompile when it changes. Use compass --watch. 2008-11-04 11:55:57 -08:00
Chris Eppstein
f62b5589a7 Command line option to emit the compass import paths suitable for use in a PATH variable. 2008-10-21 09:06:35 -07:00
Chris Eppstein
e10cc76ca5 Fixed duplicate directory information in the rails initializer generator. 2008-10-13 07:49:44 -07:00
Chris Eppstein
9af18fa20f Added a basic test case. So far it can be used to make sure your stylesheets compile.
Eventually it should provide assertions for generated rules and styles.
2008-10-03 16:38:39 -07:00
Chris Eppstein
154a22406c Incorrect framework nesting in the compass initializers. The frameworks scope themselves. 2008-10-03 14:13:22 -07:00
Chris Eppstein
47157b483f Fixed a double slash and use File::SEPARATOR instead of slash for portability. 2008-10-01 23:27:38 -07:00
Ciaran Lee
7c465cc05d small fix to the 'lines to the head of your application.html.haml' 2008-08-31 00:04:03 +01:00
Chris Eppstein
e62b7942d6 YUI's base and fonts. Their reset is already in compass core.
Grid is still to come -- I'm still getting my head around its semantics.
2008-08-24 17:33:57 -07:00
Chris Eppstein
6efe31a066 Merb support 2008-08-24 12:57:49 -07:00
Chris Eppstein
b82966e03f bug fixes found now that things are starting to work. 2008-08-24 00:04:45 -07:00
Chris Eppstein
ca82bca962 rails installer for compass 2008-08-23 22:02:10 -07:00
Chris Eppstein
341979d937 cleanup command line processing of primary command 2008-08-23 17:18:45 -07:00
Chris Eppstein
88ed4591cc Initial Checkin of Compass. Used to be Blueprint-Sass. 2008-08-23 10:00:46 -07:00