moe
cf897e1e9e
Use plain Dir.chdir instead of enclosing middleman in a Dir.chdir-block.
...
This allows extensions, templates and monkey-patches to chdir
when needed, without triggering this ruby warning:
warning: conflicting chdir during another chdir block
2012-07-14 14:46:46 +02:00
Thomas Reynolds
9371eb2057
Merge pull request #530 from rumpuslabs/trailing_slash
...
Add trailing_slash option for prettier urls
2012-07-13 09:06:14 -07:00
Tim Bates
0fa1bfe675
Tests and a small bug fix to make them pass
2012-07-13 16:00:53 +09:30
Tim Bates
3cbda0ee36
Added strip_index_file option for configuring urls
2012-07-13 10:57:05 +09:30
Tim Bates
2117cbac79
Make directory_indexes check the destination_path
...
If the destination_path matches the index_file but the original path
does not (as can happen with proxied resources) then directory_indexes
will add the index file a second time, e.g. resource.path = "myres.html"
and resource.destination_path = "myres/index.html" then
directory_indexes will convert this to resource.destination_path =
"myres/index/index.html". This patch fixes that by making
directory_indexes check the destination_path when determining whether to
reroute.
2012-07-12 15:02:48 +09:30
Tim Bates
692aa10c8b
Add trailing_slash option for prettier urls
...
"set :trailing_slash, false" will cause resource urls that match the
index_file to have the trailing slash stripped off the directory URL,
e.g. instead of "/dir/index.html" becoming "/dir/" it will be "/dir"
2012-07-12 12:03:33 +09:30
Thomas Reynolds
5c9a5c9849
Merge pull request #528 from rumpuslabs/sitemap_patches
...
Sitemap patches
2012-07-11 10:43:20 -07:00
Tim Bates
d30f883e48
Regenerate @_lookup_cache after each manipulation
...
Trying to call Resource#metadata from within
MyExtension#manipulate_resource_list generates an exception in
Proxies::ResourceInstanceMethods#get_source_file because @_lookup_cache
is empty. Moving the recalculation inside the loop means regenerating
the cache after each manipulation but allows extensions to examine the
page metadata when manipulating proxied resources.
2012-07-11 15:16:18 +09:30
Tim Bates
ffecc3e4cc
Optimisation, Hash#delete returns the deleted item
2012-07-11 15:14:08 +09:30
Thomas Reynolds
f062bb7c3d
Merge pull request #518 from bhollis/proxy
...
Don't allow people to proxy a path to itself, or to another proxy.
2012-07-09 12:42:40 -07:00
Thomas Reynolds
174000c1a2
3.0 [ci skip]
2012-07-09 10:00:49 -07:00
Thomas Reynolds
67ceb47952
Merge pull request #519 from bhollis/fixes
...
Pre-3.0 Fixes
2012-07-09 08:15:48 -07:00
Thomas Reynolds
d52e555dcd
Merge pull request #520 from bhollis/image_sizes
...
Make :automatic_image_sizes work for absolute image paths
2012-07-09 08:14:29 -07:00
Ben Hollis
7be0590acf
Use middleman's image_tag and link_to helpers from within Redcarpet markdown
2012-07-09 00:26:33 -07:00
Ben Hollis
4c5b614fe2
Make :automatic_image_sizes work for absolute image paths
2012-07-09 00:22:07 -07:00
Ben Hollis
f908b378c5
Fiter out annoying "Could not determine content-length of response body." messages from verbose logging
2012-07-09 00:18:03 -07:00
Ben Hollis
324eac428e
Ignore emacs temporary files
2012-07-08 19:02:34 -07:00
Ben Hollis
d05f968feb
Fix all_files_under - not all non-files are directories
2012-07-08 19:02:34 -07:00
Ben Hollis
12c551228f
Don't allow people to proxy a path to itself, or to another proxy.
2012-07-08 15:30:02 -07:00
Ben Hollis
6dad42bc77
Fix gzip extension
2012-07-07 20:50:43 -07:00
Thomas Reynolds
9f7f3370aa
Catch JRuby/Coffee exception correctly
2012-07-07 17:29:31 -07:00
Thomas Reynolds
5cff7cd9c1
Update execjs dep, hopefully fixing therubyrhino on JRuby
2012-07-07 16:30:50 -07:00
Thomas Reynolds
2282657000
Use therubyrhino for jruby execjs tests
2012-07-07 14:31:39 -07:00
Thomas Reynolds
4b03c5e2df
Add Middleman::Util.all_files_under to get a recursive listing of files beneath a path, follows symlinks. Fixes #515
2012-07-06 19:32:05 -07:00
Thomas Reynolds
b67d4e7c82
bump submodule [ci skip]
2012-07-04 16:52:53 -07:00
Thomas Reynolds
d4259315e7
version bump [ci skip]
2012-07-04 16:47:01 -07:00
Thomas Reynolds
54f796120f
Merge branch 'master' of github.com:middleman/middleman
2012-07-04 16:45:32 -07:00
Thomas Reynolds
63224639d9
Add tests for more implied extensions
2012-07-04 16:45:27 -07:00
Thomas Reynolds
d23a773491
Merge pull request #370 from bhollis/master
...
Syntax errors lock up Middleman
2012-07-04 16:24:42 -07:00
Thomas Reynolds
df31f65522
Make automatic helpers smarter. Fixes #510
2012-07-04 11:29:00 -07:00
Thomas Reynolds
be2589de0d
Merge pull request #284 from bhollis/layout
...
Bad error message for extensionless files
2012-07-03 13:30:38 -07:00
Ben Hollis
89afc86a5b
Friendlier error message when a non-default layout is not in the layouts directory.
2012-07-03 00:01:11 -07:00
Ben Hollis
1229a9991a
Prevent NoMethodError/NameError from hanging the server.
...
The fix is to work around this bug: http://bugs.ruby-lang.org/issues/4521 where Ruby will call to_s/inspect while printing exception messages, which can take a long time (minutes at full CPU) if the object is huge or has cyclic references, like Middleman::Application does. Defining #to_s short-circuits that. This fixes #370 .
2012-07-02 23:39:30 -07:00
Thomas Reynolds
a5a2e1568b
point to public repo
2012-07-02 21:46:17 -07:00
Thomas Reynolds
6791dc431c
Let travis know we're using submodules
2012-07-02 21:43:17 -07:00
Thomas Reynolds
d0cf90675a
Update changelog
2012-07-02 21:42:55 -07:00
Thomas Reynolds
cdca063fb8
Add middleman-sprockets as a gitmodule [no ci]
2012-07-02 21:32:08 -07:00
Thomas Reynolds
1c9a97990e
Update some gem requirements, lock Padrino
2012-07-02 16:35:53 -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
dad9b33174
Merge pull request #505 from dzubi/master
...
Fix build failure message, option --debug does not exist anymore
2012-06-28 21:58:52 -07:00
Daniel Zuberbühler
e9b996516b
Fix option in build failure help message
2012-06-28 14:57:35 +02:00
Thomas Reynolds
121715e2be
Merge pull request #503 from bhollis/master
...
Clean up listener handling in preview server
2012-06-28 01:07:31 -07:00
Ben Hollis
2bb47049c1
Clean up listener handling in preview server
2012-06-27 23:28:28 -07:00
Ben Hollis
702930484f
Update changelog
2012-06-27 23:28:27 -07:00
Thomas Reynolds
b5f6de980a
Merge pull request #500 from bhollis/http_prefix
...
Make :http_prefix work in link_to and asset helpers
2012-06-23 18:27:38 -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
Thomas Reynolds
f907f4acb4
Merge branch 'master' of github.com:middleman/middleman
2012-06-20 17:53:27 -07:00
Thomas Reynolds
8912d3627d
Update Padrino to 0.10.7 and Thor to 0.15.3. Closes #495
2012-06-20 17:53:14 -07:00
Thomas Reynolds
fbc4591922
bump listen dep
2012-06-20 09:51:19 -07:00
Thomas Reynolds
35ff2e0c48
bump version [no-ci]
2012-06-19 20:12:55 -07:00