Commit Graph

148 Commits

Author SHA1 Message Date
Joseph Wynn 0d3f099057 Fix for using a custom `source` directory
Paths are still passed around as relative. Code which needs to read files
(images, templates) and code which needs to manipulate paths
(Jekyll::ResponsiveImage::Utils#image_hash) has to be aware of the site source
path.

This got a bit messy in the end, but I couldn't find a better way without doing
a big refactor of the entire plugin.
2016-10-11 23:25:43 +01:00
Joseph Wynn 83358e79b5 Resize handler tweaks 2016-10-11 23:25:43 +01:00
Joseph Wynn 4de5db835d Refactor to config class 2016-10-11 23:25:43 +01:00
Joseph Wynn 6d569710b9 More test improvements 2016-10-11 23:25:43 +01:00
Joseph Wynn b47f12a1db An actual failing test now 2016-10-11 23:25:43 +01:00
Joseph Wynn 354f693afc Another refactor to try and avoid `include` 2016-10-11 23:25:43 +01:00
Joseph Wynn a1a183c3d4 More Ruby 1.9 fixes (#37)
* Pin terminal-ansicolor to 1.3.0

* Pin mime-types to <3

* Pin rest-client to <2

* Pin tins to 1.6.0
2016-10-11 23:25:33 +01:00
Joseph Wynn 06d34e09d2 1.0.0.pre3 2016-09-25 21:41:19 +01:00
Joseph Wynn bd336070e1 Fix absolute path bug (#35)
* Fix file contents test

* Fix tests to catch the bug

* Fix bug where `original.path` was absolute
2016-09-25 21:37:10 +01:00
Joseph Wynn 707b1078c5 1.0.0.pre 2016-09-25 20:30:45 +01:00
Joseph Wynn 098b3117a8 Add missing documentation for `extra_images` config 2016-09-25 20:30:39 +01:00
Joseph Wynn efeb87a032 Treat paths as relative to Jekyll `source` directory (#34)
* Move 'fixtures' to 'test-site' because, like, that's what it is

* Refactor to make reasoning about file paths easier

* Write a failing test

* Conventions, conventions

* Always treat paths as relative to the Jekyll site source
2016-09-25 20:23:06 +01:00
Joseph Wynn 6c8e02bb11 Update compositor.json 2016-09-04 18:43:38 +01:00
Joseph Wynn 3383c75f53 Gemspec cleanup
- Remove test_files
 - Only include files from lib/
 - Use the `z` flag with git-ls-files for UTF-8 support
2016-09-02 22:48:11 +01:00
Joseph Wynn a7d96b2bf8 0.18.0 2016-09-02 22:06:45 +01:00
Joseph Wynn 7aded68117 UTF-8 support (#31)
* Create failing test case

* Force image filename encoding to UTF-8. Fixes #30
2016-09-02 08:53:29 +01:00
Joseph Wynn 40cc9cbad7 Lock to earlier version of simplecov for older Ruby platforms (#32)
* Lock to earlier version of simplecov for older Ruby platforms

Necessary due to the loose json dependency detailed in colszowka/simplecov#511

* Stop running tests on Rubinius (I'm sorry, rbx users!)
2016-09-02 08:41:42 +01:00
Joseph Wynn 4ca0a40486 Nope, it's definitely jekyll/responsive_image 2016-07-23 11:16:38 +01:00
Kevin Funk 25b2308bd6 update README.md to include brace expansion option (#27) 2016-07-08 09:03:26 +01:00
Nathan Arthur 8b642d4b2a Add option alt support into srcset template (#24) 2016-06-08 09:50:23 +01:00
Joseph Wynn 7f53f3a25a 0.17.0 2016-06-05 22:33:13 +01:00
Joseph Wynn 08bdd3b1f6 Resize extra images (#23)
* Switch deprecated {File,Dir}#exists? for #exist?

* Implement extra_images configuration.

Closes #21.
2016-06-05 22:32:13 +01:00
Joseph Wynn f63b5002dd Trigger RenderCache#get by including an image twice (#22) 2016-06-05 22:30:45 +01:00
Joseph Wynn 794f1c619a Everything is nicer with square badges 2016-03-17 08:45:02 +00:00
Joseph Wynn cd790993d3 0.16.0 2016-03-17 08:27:20 +00:00
Joseph Wynn e6fc2bc3bd Merge pull request #19 from padenot/patch-1
Destroy the original image when done with resizing
2016-03-17 08:26:34 +00:00
Paul Adenot a9cf918103 Destroy the original image when done with resizing
When re-sizing a bunch of 24 megapixels image (direct from a digital camera) into responsive images, not destroying the `img` member made my server OOM (it does not have a lot of RAM, it's a cheap VPS).

Additionally, when re-generating the site, although there was no need to re-generate the images, it looked like it was still loading them up, and the GC was not kicking in so it was OOM-ing (or close to OOM-ing) as well.

This fixes both issues.
2016-03-16 18:35:34 +01:00
Joseph Wynn 936dfc2abe Merge pull request #16 from wildlyinaccurate/only-build-on-rubinius-2
Restrict Rubinius versions to 2.x
2016-02-26 12:30:40 +00:00
Joseph Wynn a3fbe0ade1 Restrict Rubinius versions to 2.x 2016-02-26 12:20:50 +00:00
Joseph Wynn 23e5a79d81 Improve installation instructions. Closes #14. 2016-02-25 09:03:51 +00:00
Joseph Wynn 4c238e6314 v0.15.0 2016-02-02 20:58:18 +00:00
Joseph Wynn af0188140f Merge pull request #12 from wildlyinaccurate/experimental-result-caching
[Experimental] enable internal caching of responsive_image tag results
2016-02-02 20:52:31 +00:00
Joseph Wynn b77d0b83d0 [Experimental] enable internal caching of responsive_image_block tag results 2016-02-02 20:46:22 +00:00
Joseph Wynn ecdbbfd2b0 [Experimental] enable internal caching of responsive_image tag results 2016-02-02 20:33:24 +00:00
Joseph Wynn 204f732d71 v0.14.0 2016-01-12 08:17:20 +00:00
Joseph Wynn e020f93ab3 Merge pull request #9 from wildlyinaccurate/dirname-in-image-hash
Add `dirname` to image hashes
2016-01-11 09:12:23 +00:00
Joseph Wynn c523b100cc Modify `dirname` to be relative to `base_path` 2015-12-27 22:41:04 +00:00
Joseph Wynn 64f86bd6da Add `dirname` to image hashes. Closes #5. 2015-12-27 21:14:24 +00:00
Joseph Wynn aeee7700a2 Merge pull request #11 from wildlyinaccurate/output-jekyll-version-on-build
Output Jekyll version on build
2015-12-26 18:46:03 +00:00
Joseph Wynn 79bbc59434 Output Jekyll version on build 2015-12-26 18:40:15 +00:00
Joseph Wynn 748083c906 Merge pull request #10 from wildlyinaccurate/update-dependencies
Restrain rmagick to 2.x
2015-12-26 18:39:48 +00:00
Joseph Wynn 6af90d39a4 Tweak README 2015-12-26 18:34:45 +00:00
Joseph Wynn cc99c75d7a Restrain rmagick to 2.x 2015-12-26 18:24:00 +00:00
Joseph Wynn 6be6e182d9 Merge pull request #8 from wildlyinaccurate/update-travis-build
Run on container infra; run against latest patch versions and jruby
2015-12-26 18:07:36 +00:00
Joseph Wynn 47d8b3fd70 Run on container infra; run against latest patch versions and jruby 2015-12-26 17:27:13 +00:00
Joseph Wynn 759058dc26 0.13.0 2015-11-05 09:24:24 +00:00
Joseph Wynn cff8621990 Merge pull request #3 from wildlyinaccurate/inject-jekyll-payload-into-liquid-attributes
Inject the Jekyll Site payload into the Liquid render attributes
2015-11-05 09:24:02 +00:00
Joseph Wynn 4a1e36f2d2 Add global variable test for block tag 2015-11-05 09:18:53 +00:00
Joseph Wynn 04eb007f18 Inject the Jekyll Site payload into the Liquid render attributes
This enables the use of `site` and `jekyll` variables.

Closes #1.
2015-11-05 09:03:44 +00:00
Joseph Wynn 7b12cb6eea 0.12.0 2015-11-04 23:23:36 +00:00