Ben Hollis
46f060ab12
Don't require securerandom - not sure what it was there for, but its not available in JRuby
2013-03-10 16:32:24 -07:00
Ben Hollis
3ce35149ec
Merge pull request #806 from kevin8t8/3.0-stable
...
Fix dynamic multi-byte utf-8 files rebuilding.
2013-03-03 19:07:55 -08:00
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
Ben Hollis
9fb54fcf5a
Force locale to english for number_to_human_size in the gzip extension. Fixes #804 .
2013-03-03 12:57:21 -08:00
Ben Hollis
34fe18e56c
Don't use the logger from a trap context. Fixes #801 .
2013-03-03 12:33:30 -08:00
Ben Hollis
3928b209ef
Serve extensionless files or dotfiles with text/plain MIME type, and remove Sitemap::Resource#mime_type.
2013-03-02 22:28:27 -08:00
Thomas Reynolds
de955aa0c3
try again
2013-02-27 13:20:26 -08:00
Thomas Reynolds
a24397d45b
avoid broken version of i18n gem
2013-02-27 13:02:57 -08:00
Thomas Reynolds
0525902e43
what about no https travis?
2013-02-24 16:13:31 -08:00
Thomas Reynolds
5817df96de
bump
2013-02-24 15:21:55 -08:00
Thomas Reynolds
1def1fc1f0
update sprockets dep
2013-02-24 14:20:28 -08:00
Thomas Reynolds
18849c2eea
loosen testing deps
2013-02-24 13:55:59 -08:00
Thomas Reynolds
6cee2d74f5
adapt to bundler changes, add ruby 2.0 to tests, prep release
2013-02-24 13:44:24 -08:00
Thomas Reynolds
dd63ba164e
Merge branch '3.0-stable' of github.com:middleman/middleman into 3.0-stable
2013-02-24 13:37:30 -08:00
Karl Freeman
6f5804d6b2
Bundler advises not to use a source symbol anymore
...
- d30026e9c8
2013-02-24 13:35:43 -08:00
Thomas Reynolds
0f80965ae3
latest listen supports new wdm
2013-02-24 13:34:07 -08:00
Thomas Reynolds
8d5ac575f6
prep pre
2013-02-20 13:15:38 -08:00
Thomas Reynolds
aa2102cbb7
update listen dep
2013-02-19 17:14:10 -08:00
Thomas Reynolds
f0e76c85d0
Merge pull request #789 from bhollis/haml
...
Support Haml 4. Tests only run with Haml 4 now.
2013-02-19 17:03:43 -08:00
Ben Hollis
9057b7a85e
Support Haml 4. Tests only run with Haml 4 now. Fixes #783
2013-02-17 19:40:17 -08:00
Ben Hollis
aa10991b78
Update CHANGELOG for 3.0.12
2013-02-17 18:22:17 -08:00
Ben Hollis
d553c6a88e
Protect against unset current_path
2013-02-10 17:51:47 -08:00
Ben Hollis
5a585dd3ab
Copy/paste error
2013-02-10 17:04:53 -08:00
Ben Hollis
cf51fe6a20
Fix binary_spec test for svgz - it's binary
2013-02-10 16:53:38 -08:00
Ben Hollis
e4b5202238
Provide some helpful error messages when link_to is used improperly
2013-02-10 15:28:03 -08:00
Ben Hollis
42320ade8d
Force svgz to be binary
2013-02-10 15:23:39 -08:00
Ben Hollis
3a3d5bbe3b
Override form_tag to use url_for. Fixes #739
2013-02-10 15:20:51 -08:00
Ben Hollis
ba035882fe
Test for url_for
2013-02-10 15:20:51 -08:00
Ben Hollis
6fa6c021c0
Refactor out a url_for method
2013-02-10 15:20:51 -08:00
Ben Hollis
3bdbc11db2
Change the behavior of before_render and after_render hooks from #761 .
...
This changes the before_render and after_render hooks so that the callbacks
given to them each get to modify the template source / the rendered output
in turn, instead of having to modify them in-place. It also changes the arguments
provided to the callbacks - now, they are given the source/output, the template path,
the locals hash, and the Tilt template *class*, wheras previously they were given the source/output
and the Tilt template *instance*. The locals hash is there in case pron case hooks want to
pay attention to the locals in some way. The before_render hook is also run before
compiling the template and caching it, which should prevent weird data mismatches
and save some template compilation effort.
2013-02-10 15:18:57 -08:00
Ben Hollis
5e12c68f1b
Merge pull request #773 from JonRowe/patch-1
...
Removed outdated information.
2013-02-10 10:58:10 -08:00
Jon Rowe
b94be9ed93
Removed outdated information.
...
It seems the wiki is no longer publicly accessible. Linking to it confuses people.
2013-02-10 21:49:32 +11:00
Ben Hollis
f3750c7c01
Merge pull request #772 from bhollis/binary
...
Add a spec for testing Middleman::Util#binary?
2013-02-09 17:31:12 -08:00
Thomas Reynolds
ae7f75e5cc
Relative Assets shouldn't return a Pathname sometimes, the rest of the code expects Strings
2013-02-09 15:53:21 -08:00
Ben Hollis
700b844e67
Add a spec for testing Middleman::Util#binary?
2013-02-09 15:49:10 -08:00
Thomas Reynolds
9d54010656
Merge branch '3.0-stable' of github.com:middleman/middleman into 3.0-stable
2013-02-09 15:49:03 -08:00
Thomas Reynolds
76d09a4964
Pathname issues when combining relative assets and cache buster
2013-02-09 15:37:08 -08:00
Thomas Reynolds
559265140d
Stub out rspec tests for public APIs: Rack and Sitemap for now
2013-02-09 15:32:32 -08:00
Ben Hollis
923697b517
Micro-optimizations around string comparisons
2013-02-09 15:21:52 -08:00
Ben Hollis
ed119bed7b
Support .yaml files for i18n
2013-02-09 15:15:52 -08:00
Ben Hollis
0f2dc82138
Add vendor.yml to exclude our fixtures from GitHub language stats
2013-02-09 15:12:52 -08:00
Thomas Reynolds
3db5d0ca6a
Merge pull request #771 from bhollis/i18n
...
Handle non-english default languages
2013-02-09 14:39:28 -08:00
Ben Hollis
fbc4d7e9c7
Handle non-english default languages. Fixes #584
2013-02-09 12:49:11 -08:00
Ben Hollis
afc62d5a26
i18n tweaks
2013-02-09 12:49:11 -08:00
Ben Hollis
7020bdce1a
Failing test for #584 "i18n fails when default locale is not english"
2013-02-09 12:49:06 -08:00
Ben Hollis
1af96fe305
Fix gemspecs
2013-02-09 10:28:55 -08:00
Thomas Reynolds
dd80d22b6a
Merge pull request #767 from bhollis/deps
...
Revert the more-flexible Thor dependency since it breaks bundle install
2013-02-08 23:15:49 -08:00
Ben Hollis
de7e621766
Revert the more-flexible Thor dependency since it breaks bundle install for JRuby and we will need to update Padrino when it gets upgraded anyway
2013-02-08 00:05:34 -08:00
Thomas Reynolds
c9290c6b11
Allow frontmatter to be parsed on templates outside the project root
2013-02-06 13:19:09 -08:00
Ben Hollis
8d5dd8e8ce
Merge pull request #763 from zuf/patch-1
...
Fix huge files regression (for undetected mime)
2013-02-06 00:28:37 -08:00