Commit Graph

175 Commits

Author SHA1 Message Date
Joseph Wynn 893486fb45 Tidy up unused test cruft 2017-04-05 13:56:07 +01:00
Joseph Wynn 3e4fac4132 Merge pull request #55 from wildlyinaccurate/jameswood-exif-rotate
Rotate resized images based on EXIF data
2017-03-13 08:45:27 +00:00
Joseph Wynn a23bdf5895 Fix auto_rotate name in Jekyll::ResponsiveImage::Config#DEFAULTS 2017-03-13 08:41:37 +00:00
Joseph Wynn 98a3b143af Merge pull request #56 from wildlyinaccurate/update-dependencies
Update dependencies and run tests on latest Rubies
2017-03-12 15:05:06 +00:00
Joseph Wynn b16abdc43c Update dependencies and run tests on latest Rubies 2017-03-12 14:59:25 +00:00
Joseph Wynn 7ad3967c71 Minor version bump for new functionality 2017-03-12 14:16:20 +00:00
Joseph Wynn 73bd82d547 Write tests for auto_rotate option 2017-03-12 14:14:53 +00:00
Joseph Wynn ffc51f648b Rename auto rotate option to auto_rotate 2017-03-12 14:14:45 +00:00
jameswood db264444ac rotate resized images based on exif info
EXIF rotation information embedded by the capture device is now
respected when generating output images. Original images remain
untouched.
2017-03-10 16:03:03 +11:00
Joseph Wynn 0c342075c7 Set the linguist-vendored attribute on features/test-site/*
This prevents Linguist from including the directory in the GitHub language stats
2017-01-09 11:37:19 +13:00
Joseph Wynn 00ded027ad Tidy up tests 2016-12-29 22:19:48 +13:00
Joseph Wynn 85b56541fb Merge pull request #44 from wildlyinaccurate/remove-redundant-tests
Remove redundant tests
2016-12-29 22:08:24 +13:00
Joseph Wynn 746205e726 Consolidate some tests to reduce the test:code ratio 2016-12-29 22:04:49 +13:00
Joseph Wynn ba3db6eba7 Use SimpleCov directly so that coverage can be inspected locally 2016-12-29 22:00:36 +13:00
Joseph Wynn fd041dc44a 1.1.0 2016-12-28 23:19:25 +13:00
Joseph Wynn c8eb8c0c58 Merge pull request #42 from wildlyinaccurate/maintain-source-interlace
Maintain source image interlace mode
2016-12-28 23:18:58 +13:00
Joseph Wynn c2e3465a7e Fix `rake release` 2016-12-28 23:16:20 +13:00
Joseph Wynn 8fa0543494 Maintain source image interlace mode 2016-12-28 23:14:13 +13:00
Joseph Wynn 804d30dbb5 Merge pull request #41 from wildlyinaccurate/rename-gem
Rename gem to jekyll-responsive-image
2016-12-28 23:13:01 +13:00
Joseph Wynn d7451d2681 Typo 2016-12-28 22:58:04 +13:00
Joseph Wynn 03356da52d Rename gem to jekyll-responsive-image
This PR also drops support for Ruby <2.0
2016-12-28 22:56:27 +13:00
Joseph Wynn 8d962b2631 Merge pull request #39 from wildlyinaccurate/clean-up-tests
Remove some redundant test code
2016-10-18 22:13:44 +01:00
Joseph Wynn 39ee353912 Remove some redundant test code 2016-10-18 22:11:06 +01:00
Joseph Wynn dba32db868 v1.0.1 2016-10-16 18:08:07 +01:00
Joseph Wynn 9a4f6dc9d0 1.0.0 2016-10-14 21:21:20 +01:00
Joseph Wynn 1d7273ec5a Merge pull request #36 from wildlyinaccurate/source-directory-take-2
Take 2 of "treat paths as relative to Jekyll `source` directory"
2016-10-14 21:18:45 +01:00
Joseph Wynn 854aa4cf00 pre4 2016-10-11 23:25:43 +01:00
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