retina_rails 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +1 -1
- data/UPGRADING.md +1 -1
- data/lib/retina_rails/strategies/carrierwave.rb +5 -0
- data/lib/retina_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3348ab981ce8e305a3bc0d9f92f285db7a592050
|
4
|
+
data.tar.gz: c9b32df090ae747bf5a3815fbb66fe68bb463d87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0d266b80bb18106f0cb127e1fd8c8adc594307efb302269589bdc04b301a2199036765723ef4eb261820739b6bb3705564f992ca126cdcc8546a48b1f6a1ac
|
7
|
+
data.tar.gz: 34afe57cbfb49236c76c20aca3765d45bf3c3449d31d28845a4f56a379dd317d9baa1372d43ee813d03d19a3ee0182bee533bcf30a5bd60112b7dd19e5a190b2
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -118,7 +118,7 @@ Displaying a retina image
|
|
118
118
|
------------
|
119
119
|
|
120
120
|
```ruby
|
121
|
-
retina_image_tag(@user, :image, :small, :default => [50, 40)
|
121
|
+
retina_image_tag(@user, :image, :small, :default => [50, 40])
|
122
122
|
# or
|
123
123
|
retina_image_tag(@user, :image, :small, :default => { :width => 50, :height => 40 })
|
124
124
|
```
|
data/UPGRADING.md
CHANGED
@@ -32,7 +32,7 @@ image_tag(@user.image.url(:small), :retina => true)
|
|
32
32
|
|
33
33
|
**New way:**
|
34
34
|
```ruby
|
35
|
-
retina_image_tag(@user, :image, :small, :default => [50, 40)
|
35
|
+
retina_image_tag(@user, :image, :small, :default => [50, 40])
|
36
36
|
# or
|
37
37
|
retina_image_tag(@user, :image, :small, :default => { :width => 50, :height => 40 })
|
38
38
|
```
|
@@ -85,6 +85,9 @@ module RetinaRails
|
|
85
85
|
dimensions.insert(0, height)
|
86
86
|
dimensions.insert(0, width)
|
87
87
|
|
88
|
+
## Reset the processors
|
89
|
+
versions[name][:uploader].processors = []
|
90
|
+
|
88
91
|
## Override version with double height and width
|
89
92
|
version name, options do
|
90
93
|
process dimensions_processor[0] => dimensions
|
@@ -93,6 +96,8 @@ module RetinaRails
|
|
93
96
|
|
94
97
|
## Set other processors
|
95
98
|
processors.each do |processor|
|
99
|
+
process processor[0] => processor[1]
|
100
|
+
|
96
101
|
quality_processor = true if processor[0] == :retina_quality
|
97
102
|
end
|
98
103
|
|
data/lib/retina_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retina_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan van Zonneveld
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|