Sha256: c184c74f9b99340657509c8d7091190da46aab24e69cf7e8bb8678d1280d3e7c

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

## v0.7.3

- Paperclip is no longer a dependency
- Change a little the `auto_height` option of `artwork_tag`

## v0.7.2

- Use `Artwork.current_resolution` instead of `Artwork.actual_resolution` in
  `artwork_thumb_for` when evaluating the alternative sizes. This is to allow
  page and fragment caching where `Artwork.current_resolution` is in the cache
  key.

## v0.7.1

- Hotfix for the new alternative sizes when additional non-numeric option keys
  are being passed to `artwork_thumb_for()` (such as `auto_height: true`).

## v0.7.0

**Backwards-incompatible changes**

- Renamed `Artwork.default_resolution` to `Artwork.base_resolution`
- Renamed `Artwork.actual_resolution_for` to `Artwork.actual_resolution_from`
  and is now private

**Other changes**

- Added support for custom base resolutions via the following syntax:
  `<%= artwork_tag @record, :cover, '800x@1200' %>`
- Added `Artwork.actual_resolution` (set via `Artwork.configure_for(request)`)
- Added support for responsive image sizes via the alternative sizes parameter
  of `Artwork::Model.artwork_thumb_for(name, size, alternative_sizes = nil)`
  Example usage:

    Request full-width images if the current browser's viewport is 480 px or
    less wide:

    ```ruby
    <%= artwork_tag @recrod, :cover, '800x', {480 => '320x@320'} %>
    ```

## v0.6.1

- Added `Artwork.actual_resolution_for(request)` which returns the current
  client's browser width, in pixels.

## v0.6.0

- Don't change viewport width & retina cookies when loaded in an iframe.

## v0.5.0

No changes.

## v0.4.2

- Set the cookies with `path=/`.

## v0.4.1

- Compatibility with newer versions of the Paperclip gem.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
artwork-0.7.3 CHANGELOG.md