artwork 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -5,6 +5,8 @@ done at the backend. Works for any browser. Delivers the information needed for
5
5
  the calculations (browser window's dimentions and device's pixel ratio) via a
6
6
  cookie. Supports only Paperclip attachments.
7
7
 
8
+ The gem should be thread-safe and should work with Rails 2.3 or newer.
9
+
8
10
  ## An example
9
11
 
10
12
  Say you've declared a default (base) resolution of 1440px. You design based on
@@ -29,6 +31,13 @@ You don't have that exact size on the server, so the helper will choose the
29
31
  If the user's screen is retina (ie. with a device-to-pixel ratio > 1.0) and if
30
32
  you have a _2x versions of your thumbs, the helper will choose the _2x one.
31
33
 
34
+ ## Requirements
35
+
36
+ - Rails 2.3 or newer
37
+ - Paperclip 2.3 or newer
38
+ - jQuery
39
+ - The jQuery.cookie plugin
40
+
32
41
  ## Installation
33
42
 
34
43
  Add this line to your application's Gemfile:
data/lib/artwork/model.rb CHANGED
@@ -50,7 +50,7 @@ module Artwork
50
50
 
51
51
  def artwork_url(attachment_name, size, options = {})
52
52
  thumb_name = artwork_thumb_for(attachment_name, size)
53
- send(attachment_name).url(size, options)
53
+ send(attachment_name).url(thumb_name, options)
54
54
  end
55
55
 
56
56
  def attachment_styles_for(attachment_name)
@@ -1,3 +1,3 @@
1
1
  module Artwork
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artwork
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dimitar Dimitrov