middleman/middleman-core/lib/middleman-core
Kevin McCarthy 7608275089 Fix dynamic multi-byte utf-8 files rebuilding.
Thor compares the new contents with the existing file by using
File.binread(destination) == new_content.
File.binread returns a string with ASCII_8BIT encoding, which will not
match the new_content if new_content contains multi-byte utf-8.

This patch simply encodes the new_content to ASCII_8BIT before passing
it to Thor.
2013-03-03 18:13:41 -08:00
..
cli Fix dynamic multi-byte utf-8 files rebuilding. 2013-03-03 18:13:41 -08:00
core_extensions Copy/paste error 2013-02-10 17:04:53 -08:00
renderers Support Haml 4. Tests only run with Haml 4 now. Fixes #783 2013-02-17 19:40:17 -08:00
sitemap Micro-optimizations around string comparisons 2013-02-09 15:21:52 -08:00
step_definitions Fix dynamic multi-byte utf-8 files rebuilding. 2013-03-03 18:13:41 -08:00
templates adapt to bundler changes, add ruby 2.0 to tests, prep release 2013-02-24 13:44:24 -08:00
vendor/hooks-0.2.0 Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
application.rb actually make ruby encoding setting work, fix gzip to read/write binary 2012-09-29 14:12:26 -07:00
cli.rb Print a helpful message when encountering an unknown command 2012-09-27 23:20:04 -07:00
core_extensions.rb Implement the :encoding setting which defaults to 'utf-8' 2012-06-16 06:07:50 +08:00
extensions.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
load_paths.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
logger.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
preview_server.rb Micro-optimizations around string comparisons 2013-02-09 15:21:52 -08:00
profiling.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
sitemap.rb Protect against unset current_path 2013-02-10 17:51:47 -08:00
step_definitions.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
templates.rb Add skip-gemfile, skip-bundle, and skip-git options to middleman init, aligning with rails options. 2012-09-14 23:32:46 -07:00
util.rb Force svgz to be binary 2013-02-10 15:23:39 -08:00
version.rb adapt to bundler changes, add ruby 2.0 to tests, prep release 2013-02-24 13:44:24 -08:00