Thomas Reynolds
54c055ea5e
Hack a way to pass Middleman context into Slim filters
2012-08-16 13:48:34 -07:00
Thomas Reynolds
446aa6a4ba
Clean up whitespace, play with cane for testing style quality and code complexity
2012-08-13 15:41:07 -07:00
Thomas Reynolds
1c9810483b
Ruby 1.8-friendly markdown image test
2012-07-25 11:39:17 -07:00
Thomas Reynolds
6ccf5e2db0
Don't catch CoffeeScript errors when in build mode. Fixes #551
2012-07-25 11:22:29 -07:00
Ben Hollis
e6c7caaa83
Test for Redcarpet using our link_to and image_tag helpers
2012-07-18 22:57:52 -07:00
kematzy
3ea2241155
Added :sass_assets_path for external SASS repositories
...
Compass is great, but sometimes we need to have common framework code in one (global) location with local overrides in the app.
This addition adds built-in support for loading SASS/SCSS files from multiple locations external to the "source" directory and even the Middleman app root.
Example usage:
# in config.rb
set :sass_assets_path, [ "#{root}/assets/sass/", "~/.sass-repo/"]
Using symlinks or copying files to the Middleman project can get messy quickly. This fix reduces some of those issues.
2012-07-17 09:21:46 -07:00
kematzy
c00f9d5782
Tests for :sass_cache_path custom config
...
First time working with Cucumber, so perhaps not the best way to do things.
* Tests for default setting which stores the .sass_cache directory in Middleman app root.
* Tests for custom setting which stores the .sass_cache directory in /tmp directory.
Please Note! Unable to test the output of the default .sass_cache location since the directory is stored outside of the app root during testing, but inside app root in "production"
2012-07-16 14:39:26 +08:00
Thomas Reynolds
d4259315e7
version bump [ci skip]
2012-07-04 16:47:01 -07:00
Thomas Reynolds
63224639d9
Add tests for more implied extensions
2012-07-04 16:45:27 -07:00
Ben Hollis
4faa98e874
Simplify and fix relative_assets extension to work more consistently. Also, fix a bug in relative link_to inspired by fixing this bug. This fixes #507 .
2012-06-30 22:02:23 -07:00
Ben Hollis
6ac263619a
Make :http_prefix work in link_to and asset helpers as long as the linked item is a sitemap resource. Fixes #484 .
2012-06-23 17:19:24 -07:00
Ben Hollis
8a01b28369
Improve link_to so that it can handle a Resource in place of a url. Fixes #474 .
2012-06-16 17:48:41 -07:00
Thomas Reynolds
aa0d848ba5
Don't test Less on JRuby
2012-06-05 10:28:09 -07:00
Thomas Reynolds
286c7352b6
Fix Less load paths, simplify builder error output. Fixes #461
2012-06-05 10:24:00 -07:00
Thomas Reynolds
02871f5fcc
Avoid JRuby whitespace issue
2012-06-02 15:32:04 -07:00
Thomas Reynolds
e26b68635f
Haml wrap_layout passes again
2012-06-02 14:19:45 -07:00
Ben Hollis
efa846341d
Update nested_layout tests to show that Haml still doesn't work right. Also updated Slim and ERb tests to verify ordering of output.
2012-06-02 00:35:03 -07:00
Ben Hollis
f287e0a2bc
Don't asset_hash ico and manifest. Now with tests to prevent another regression.
2012-06-01 23:54:57 -07:00
Thomas Reynolds
2ab294c602
Fix wrap_layout for all know templating engines. Fixes #417
2012-06-01 20:08:28 -07:00
Ben Hollis
9b5d1f17d0
Test showing wrap_layout is still broken when used with haml
2012-06-01 19:05:55 -07:00
Ben Hollis
d8d4769702
Fix nested layouts for ERB
2012-06-01 19:05:55 -07:00
Thomas Reynolds
c3c662cf44
adapt minify_css test to compass line_comments change
2012-05-26 15:15:53 -07:00
Thomas Reynolds
98fc81beef
Implement and test asset_hash ignore option
2012-05-26 15:08:59 -07:00
Thomas Reynolds
8d483f882c
Move Sprockets into an extension
2012-05-26 13:43:27 -07:00
Thomas Reynolds
f8c64f25ec
Put test ENV in the right place so cucumber/rake both work
2012-05-25 18:19:11 -07:00
Thomas Reynolds
d79acc7a78
Make i18n a normal extension with options
2012-05-24 16:51:36 -07:00
Thomas Reynolds
64f84bacd2
asset urls, padrino helpers and i18n belong in more
2012-05-24 16:31:21 -07:00
Thomas Reynolds
1cad726c81
Move off-by-default extensions into middleman-more, make middleman-more itself an extension
2012-05-24 16:14:17 -07:00
Thomas Reynolds
220bb5edb2
add some sprockets update tests
2012-05-24 10:24:36 -07:00
Thomas Reynolds
fd80027af6
idiot-proof maruku smarty pants test
2012-05-22 19:40:31 -07:00
Thomas Reynolds
2c058ee3de
Couple of fixes, specifically an issue with frontmatter layout setting
2012-05-22 19:11:54 -07:00
Thomas Reynolds
f0d781cce3
Implement our own Redcarpet Template to support renderer-level options. Closes #442
2012-05-22 14:50:37 -07:00
Thomas Reynolds
527c987281
Attempt to avoid redcarpet tests on jruby
2012-05-02 16:28:04 -07:00
Thomas Reynolds
a7adc20b47
still support and test redcarpet
2012-05-02 15:27:47 -07:00
Ben Hollis
49bbc9feaa
Switch back to maruku
2012-05-01 22:46:38 -07:00
Ben Hollis
9d811e0cf7
Prevent Sprockets from generating different hashes based on Sprockets' version number
2012-04-27 18:15:42 -07:00
Thomas Reynolds
b1d6b94302
Fixture-less slim
2012-04-26 16:21:53 -07:00
Thomas Reynolds
2e68e09200
Fixture-less ignored_already_minified
2012-04-26 16:20:03 -07:00
Thomas Reynolds
cc3aebf5cc
Allow compressor to be passed to minify extensions as an activate option
2012-04-26 14:15:35 -07:00
Thomas Reynolds
240f67410d
Use config.rb file contents in minify test cases instead of fixtures
2012-04-26 14:07:10 -07:00
Thomas Reynolds
6987043a5f
Fix minify_css inline test
2012-04-26 13:54:38 -07:00
Ben Hollis
ce9b99ce44
Disable inline minification by default, allow it to be turned on with an option
2012-04-25 23:41:09 -07:00
Thomas Reynolds
dc784edc66
test directory_index and relative_assets combo
2012-04-16 16:52:21 -07:00
Thomas Reynolds
baac8a31f4
fix CS test
2012-04-12 11:16:24 -07:00
Ben Hollis
192047d242
Minify all JS and CSS via middleware. This means JS or CSS anywhere in the site is minified, not just in the Sprockets-controlled directories. I've also added inline CSS compression, and handling of several common "guards" that get wrapped around JS. Also, leave alone non-JS script tags (which may contain something like jQuery templates). Sprockets no longer has anything to do with minification after this.
2012-04-09 00:05:22 -07:00
Ben Hollis
fc79459e61
Fix the asset_hash extension to operate on the hash of the rendered output rather than just the source file. This prevents generating the same hash for a file when partials it uses change, or if a helper it uses produces different output. As part of this change I removed the caching from Sitemap::Page#destination_path and asset_hash since they were preventing recalculation of path/hash when partials changed, and I rewrote the Sprockets extension to expose the Sprockets environment to other extension, which included consolidating the JS and CSS Sprockets environments into one.
2012-04-04 00:00:33 -07:00
Ben Hollis
0a97aa7ec3
Fix undefined variable error in cache_buster, and make its tests more explicit.
2012-04-01 18:25:57 -07:00
Ben Hollis
c27a288f1a
Tests for using asset_host with asset_hash
2012-04-01 18:05:20 -07:00
Ben Hollis
739a8633ae
Rename sitemap_traversal.features to sitemap_traversal.feature so it will actually be run. Also rename ignore_already_minified.features for the same reason.
2012-03-07 22:08:16 -08:00
Thomas Reynolds
b093bb9f51
fix asset_hash tests from what I assume are random hash key ordering issues across rubies
2012-03-04 23:03:21 -08:00