Nathan Feaver
17df162e7b
consider all MS Office files to be binary
2016-01-10 06:28:18 -07:00
Ben Hollis
9311a72e4a
Use our relative_path_from_resource helper in asset_url.
2015-12-28 20:52:22 -08:00
Ben Hollis
412f6ac1fc
Fix #1721 by passing through options to url_for.
2015-12-28 20:52:22 -08:00
Thomas Reynolds
a5821bccec
Fix asset hash with query string or hash params. Closes #1411
2015-12-21 13:07:01 -08:00
Thomas Reynolds
9e5b137ed8
Really fix #1689
2015-12-15 09:58:22 -08:00
Thomas Reynolds
76f591788e
Change inline URL matcher to only match strings, not newlines. Fixes #1689
2015-12-13 13:06:05 -08:00
Thomas Reynolds
d3a5494062
Handle invalid URLs in rewriter. Fixed #1638
2015-12-13 12:32:21 -08:00
Thomas Reynolds
ae15d203a8
Fix some tests
2015-11-28 19:32:45 -08:00
Thomas Reynolds
e47b0ae29a
import_file and import_path APIs. Addresses #1632
2015-11-28 18:03:05 -08:00
Thomas Reynolds
16b997498b
Generic related files check
2015-11-28 16:48:08 -08:00
Steven Sloan
6ab6669456
fix(Util::asset_url): allow use without passing a current_resource
...
Most cases the current_resource isn’t actually needed, so calls could be made
from extensions and still get the correct path back.
An exception will be raised with a descriptive message if the current_resource
is needed but not given. (for example, if relative is true — it needs a resource
to base the url on)
2015-11-13 16:48:52 -05:00
Dan Allen
c48c81cbba
resolves #1656 don't mangle URL inside tag
2015-10-26 15:30:44 -06:00
Dan Allen
4995bd23d7
resolves #1653 don't rewrite paths that start with //
2015-10-26 00:39:48 -06:00
Thomas Reynolds
fdabd87957
merge in fixes from stable
2015-09-17 13:53:43 -07:00
Thomas Reynolds
3485f49f74
Use Hashie Mash for recursive indifferent
2015-08-18 16:22:32 -07:00
Thomas Reynolds
bb6b8c7f13
Replace Hamster hash for user-accessible data with Hashie Indifferent access
2015-08-12 15:29:06 -07:00
Todd Fisher
ae2d1487fa
Update util.rb
...
line 128, Float type is also not something that can be dup'ed, similar to Fixnum and friends
2015-06-11 15:24:19 -04:00
Thomas Reynolds
a25e9c6382
Normalize file path string encoding on darwin. For #1506
2015-05-17 12:25:17 -07:00
Thomas Reynolds
b127283040
Fix up inline url confusion
2015-04-26 13:01:19 -07:00
Thomas Reynolds
2403fa2d81
Merge stable
2015-04-26 11:32:47 -07:00
Thomas Reynolds
c87e2e026e
Rubocop tweaks
2015-04-26 11:13:29 -07:00
Thomas Reynolds
4be3fcfd31
Fix recursive enhance on nil values
2015-04-24 10:28:03 -07:00
Thomas Reynolds
c25229065a
Better indiff logic
2015-04-24 10:28:03 -07:00
Thomas Reynolds
22ce56492f
Experiment with Hamster
2015-04-24 10:28:03 -07:00
Thomas Reynolds
4740159a3a
Use Addressable to improve inline url detection and rewriting. Only rewrite relative paths. Closes #1499
2015-04-22 09:41:24 -07:00
Thomas Reynolds
7f2048b865
Don't lookup resource for path if the path is absolute. Fixes #1195
2015-03-03 13:09:46 -08:00
Thomas Reynolds
c94e5d0f4d
Merge from stable
2015-02-24 11:16:16 -08:00
Steven Sloan
14e1cb1cd6
move all HashWithIndifferentAccess recursive enhancement over to the Util class
...
TODO: moving this two a class method on HashWithIndifferentAccess would really make the most sense, but there are two blockers:
- historically the method has operated out of Util. While totally ok, simply dedeferring to HashWithIndifferentAccess feels a bit awkward
- the contracts gem doesn’t support class method at this time. the assurance of frozen output is important considering the uses of the recursively_enhance method
2015-01-15 03:30:26 -05:00
Thomas Reynolds
29693e4533
More URI encoding and decoding. Addresses #1406
2014-11-19 10:39:48 -08:00
Thomas Reynolds
d8e8b06cb6
merge v3
2014-11-19 09:04:56 -08:00
Thomas Reynolds
a95dbb6367
Collections
2014-10-15 14:34:53 -05:00
Thomas Reynolds
bedf235ff6
Multiple Source watchers
2014-07-20 18:57:22 -07:00
Ben Hollis
22dace72df
Upgrade url_for to search for resources relative to their destination paths as well as their source paths. This would fix #818 .
2014-07-19 16:40:53 -07:00
Thomas Reynolds
1f3e2043cb
Deep freeze IndifferentAccess.
2014-07-14 13:19:34 -07:00
Thomas Reynolds
332ce2bebc
slight util reorg
2014-07-14 09:50:44 -07:00
Thomas Reynolds
9ae8a3128b
Refactor FileWatcher
2014-07-10 12:38:38 -07:00
Thomas Reynolds
6ccab8e071
Name things :)
2014-07-10 12:35:47 -07:00
Thomas Reynolds
08b75f06ef
more generic duck-typed rack extractor
2014-07-09 10:59:00 -07:00
Thomas Reynolds
fafeea0857
Handle Rack responses from Sprockets
2014-07-09 10:46:03 -07:00
Thomas Reynolds
0185d37473
Experiment with Contracts
2014-07-08 18:18:17 -07:00
Thomas Reynolds
6bb9673630
final copping
2014-07-02 11:05:57 -07:00
Ben Hollis
ad4b441dc3
Fixed implementation of Middleman::Util#path_match, added tests for it
2014-06-16 21:44:19 -07:00
Thomas Reynolds
8989e27769
Rubocop auto fix
2014-06-16 09:05:24 -07:00
Thomas Reynolds
29bf25ace6
Extract compass support into extension, rewrite all features that rely on it to be pure Ruby
2014-06-03 09:01:46 -07:00
Thomas Reynolds
927a1758ba
Rack-based HTML rewriter
2014-05-30 14:48:34 -07:00
Thomas Reynolds
f513ab77b3
Rubocop'd
2014-04-29 11:43:05 -07:00
Thomas Reynolds
6760d855bc
hashrocket killa
2014-04-29 10:50:21 -07:00
Thomas Reynolds
04dc48f13d
Great rubocop-ing
2014-04-28 16:02:18 -07:00
Ben Hollis
10eca91311
Fix docs for HashWithIndifferentAccess
2014-03-25 22:43:43 -07:00
Ben Hollis
60f712e6ba
Merge branch 'v3-stable'
...
Conflicts:
.travis.yml
Gemfile
middleman-cli/lib/middleman-cli/build.rb
middleman-core/lib/middleman-core/core_extensions/file_watcher.rb
middleman-core/lib/middleman-core/templates.rb
middleman-core/lib/middleman-core/util.rb
middleman-core/middleman-core.gemspec
2014-03-25 22:35:19 -07:00