retina_rails 2.0.1 → 2.0.2
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 +13 -2
- data/lib/retina_rails/processors/carrierwave.rb +1 -1
- data/lib/retina_rails/processors/paperclip.rb +1 -1
- 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: 19b12db19242f41e40ec3ae029cf09e707b22ade
|
4
|
+
data.tar.gz: f77693ce7344bbf1f739242195ea610f800c7705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff59dafed1acbbd754f7f8512654bfbe038e3af447d4d4f535dde47eb4350b35861f1bb9bbce540269a5101943ec92de5a5e1dd2d8aadf7bd90e612f9a7a3ceb
|
7
|
+
data.tar.gz: 3c90e7297088d37efe5977b6da46990235784efaa38165513cddae5005517c7bab7b67e81b8bf3965514d93badfccba70074f6213e1a6a71be5cc0d7a8c68b05
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
## Retina Rails
|
2
2
|
|
3
|
-
[![Gem Version](
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/retina_rails.svg?style=flat)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/jhnvz/retina_rails.svg?style=flat)][travis]
|
5
|
+
[![Coverage Status](http://img.shields.io/coveralls/jhnvz/retina_rails.svg?style=flat)][coveralls]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/jhnvz/retina_rails.svg?style=flat)][codeclimate]
|
7
|
+
[![Dependency Status](http://img.shields.io/gemnasium/jhnvz/retina_rails.svg?style=flat)][gemnasium]
|
8
|
+
|
9
|
+
[gem]: https://rubygems.org/gems/retina_rails
|
10
|
+
[travis]: http://travis-ci.org/jhnvz/retina_rails
|
11
|
+
[coveralls]: https://coveralls.io/r/jhnvz/retina_rails
|
12
|
+
[codeclimate]: https://codeclimate.com/github/jhnvz/retina_rails
|
13
|
+
[gemnasium]: https://gemnasium.com/jhnvz/retina_rails
|
4
14
|
|
5
15
|
Makes your life easier optimizing an application for retina displays.
|
6
16
|
|
@@ -27,7 +37,7 @@ Resources
|
|
27
37
|
- [Carrierwave](#carrierwave)
|
28
38
|
- [Paperclip](#paperclip)
|
29
39
|
- [Displaying a retina image](#displaying-a-retina-image)
|
30
|
-
- [Upgrading](https://github.com/jhnvz/retina_rails/blob/master/UPGRADING.md)
|
40
|
+
- [Upgrading](https://github.com/jhnvz/retina_rails/blob/master/UPGRADING.md)
|
31
41
|
|
32
42
|
Installation
|
33
43
|
------------
|
@@ -137,6 +147,7 @@ implementations:
|
|
137
147
|
* Ruby 1.9.3
|
138
148
|
* Ruby 2.0.0
|
139
149
|
* Ruby 2.1.1
|
150
|
+
* Ruby 2.1.3
|
140
151
|
|
141
152
|
Contributing
|
142
153
|
------------
|
@@ -9,7 +9,7 @@ module RetinaRails
|
|
9
9
|
#
|
10
10
|
def store_retina_dimensions
|
11
11
|
if model
|
12
|
-
width, height = `identify -format "%wx%h" #{file.path}`.split(/x/) ## Read dimensions
|
12
|
+
width, height = `identify -format "%wx%h" '#{file.path}'`.split(/x/) ## Read dimensions
|
13
13
|
|
14
14
|
## Set original height and width attributes on model
|
15
15
|
|
@@ -10,7 +10,7 @@ module Paperclip
|
|
10
10
|
style = options[:style]
|
11
11
|
|
12
12
|
if file_path
|
13
|
-
width, height = `identify -format "%wx%h" #{file_path}`.split(/x/) ## Read dimensions
|
13
|
+
width, height = `identify -format "%wx%h" '#{file_path}'`.split(/x/) ## Read dimensions
|
14
14
|
|
15
15
|
## Set original height and width attributes on model
|
16
16
|
model.retina_dimensions = (model.retina_dimensions || {}).deep_merge!(
|
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.2
|
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-
|
12
|
+
date: 2014-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|