carrierwave-imageoptimizer 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +17 -9
- data/carrierwave-imageoptimizer.gemspec +1 -1
- data/certs/jtescher.pem +23 -19
- data/checksum/carrierwave-imageoptimizer-1.4.1.gem.sha512 +1 -0
- data/lib/carrierwave-imageoptimizer/version.rb +1 -1
- metadata +29 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4c1de6fad5debab1b57d8efaede300ae5646fefd06e2c6f18abed811e550dc85
|
4
|
+
data.tar.gz: 0d00b2938a7621535b8bc0e646e208644bc465b82756e00543c74cac0f301ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef2fb21cd7eef220218ba9367b017cd4cc6ccded3da5e96a5c3f573c8507a1fd3e2729c5dc14377b7d9c831fbd19282f87f08ec70ee3e21a4dd416e3fe65ac04
|
7
|
+
data.tar.gz: 6ee66d8d80d4982319431baa7574fa1dcc24f966060183374c4c638aabbf9847026d22215d1a19fbf7755bda47547270e95ceecf25f9738a1c31cf5942b29741
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
# CarrierWave ImageOptimizer
|
2
2
|
|
3
|
-
This gem allows you to simply optimize CarrierWave images via jpegoptim or optipng using the image_optimizer gem.
|
3
|
+
This gem allows you to simply optimize CarrierWave images via jpegoptim or optipng using the [image_optimizer](https://github.com/jtescher/image_optimizer) gem.
|
4
4
|
|
5
5
|
Tested against 2.2.x, 2.3.x, and ruby-head
|
6
6
|
|
7
|
-
[![Build Status](https://secure.travis-ci.org/jtescher/carrierwave-imageoptimizer.svg)]
|
8
|
-
(
|
9
|
-
[![
|
10
|
-
(https://
|
11
|
-
[![Code Climate](https://codeclimate.com/github/jtescher/carrierwave-imageoptimizer.svg)]
|
12
|
-
(https://codeclimate.com/github/jtescher/carrierwave-imageoptimizer)
|
13
|
-
[![Coverage Status](https://coveralls.io/repos/jtescher/carrierwave-imageoptimizer/badge.svg)]
|
14
|
-
(https://coveralls.io/r/jtescher/carrierwave-imageoptimizer)
|
7
|
+
[![Build Status](https://secure.travis-ci.org/jtescher/carrierwave-imageoptimizer.svg)](http://travis-ci.org/jtescher/carrierwave-imageoptimizer)
|
8
|
+
[![Dependency Status](https://gemnasium.com/jtescher/carrierwave-imageoptimizer.svg)](https://gemnasium.com/jtescher/carrierwave-imageoptimizer)
|
9
|
+
[![Code Climate](https://codeclimate.com/github/jtescher/carrierwave-imageoptimizer.svg)](https://codeclimate.com/github/jtescher/carrierwave-imageoptimizer)
|
10
|
+
[![Coverage Status](https://coveralls.io/repos/jtescher/carrierwave-imageoptimizer/badge.svg)](https://coveralls.io/r/jtescher/carrierwave-imageoptimizer)
|
15
11
|
[![Gem Version](https://badge.fury.io/rb/carrierwave-imageoptimizer.svg)](http://badge.fury.io/rb/carrierwave-imageoptimizer)
|
16
12
|
|
17
13
|
## Installation
|
@@ -40,6 +36,18 @@ Or install it yourself as:
|
|
40
36
|
|
41
37
|
$ gem install carrierwave-imageoptimizer
|
42
38
|
|
39
|
+
### Installation on Heroku
|
40
|
+
If you are using Heroku for your production you must use [heroku buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) in order to install `optipng` and `jpegoptim`. [jayzes](https://github.com/jayzes?tab=repositories) has some plug and play buildpacks to get you going in no time.
|
41
|
+
|
42
|
+
__On an existing Heroku app and using the Heroku CLI__
|
43
|
+
|
44
|
+
1. Add this gem to your gemfile.
|
45
|
+
2. Modify your code following the instrunctions on the [usage](#usage) section.
|
46
|
+
3. `heroku buildpacks:add --index 1 https://github.com/jayzes/heroku-buildpack-optipng`
|
47
|
+
4. `heroku buildpacks:add --index 1 https://github.com/jayzes/heroku-buildpack-jpegoptim`
|
48
|
+
5. `git push heroku`
|
49
|
+
* _It is important to do a push to heroku __after__ the buildpacks have been declared._
|
50
|
+
|
43
51
|
## Usage
|
44
52
|
|
45
53
|
To add image optimization to your CarrierWave uploader, first include the module:
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $0 =~ /gem\z/
|
21
21
|
gem.cert_chain = ['certs/jtescher.pem']
|
22
22
|
|
23
|
-
gem.add_dependency "carrierwave", [">= 0.8", "< 2.
|
23
|
+
gem.add_dependency "carrierwave", [">= 0.8", "< 2.1"]
|
24
24
|
gem.add_dependency "image_optimizer", ["~> 1.6"]
|
25
25
|
|
26
26
|
gem.add_development_dependency "rspec", "~> 2.14.1"
|
data/certs/jtescher.pem
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
MIIEPDCCAqSgAwIBAgIBATANBgkqhkiG9w0BAQsFADAkMSIwIAYDVQQDDBlqYXRl
|
3
|
+
c2NoZXIvREM9Z21haWwvREM9Y29tMB4XDTE5MTExOTAwMTExNVoXDTIwMTExODAw
|
4
|
+
MTExNVowJDEiMCAGA1UEAwwZamF0ZXNjaGVyL0RDPWdtYWlsL0RDPWNvbTCCAaIw
|
5
|
+
DQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAKae/k7+RzIczSqFo63V1N8NVVOn
|
6
|
+
4qySy8ing+EbHQbnsMU0Hgab4SOGVaSaPkDTxLgUmmUaKH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OH/Zm496CLwJZQuUVezq2CkZ0elVzSmYaEEXXbi
|
22
|
+
eZmWfzyS8juTTbHzxiNKX7NM5+tmOGxcvD1ltp4QRr8hwU+2/YwiOLwrnLpS1+z6
|
23
|
+
rqTmM8KP5XFYd1DTsua3iTymDKIoyeUKzFvnLKyxZ3Vb1PcJ3ruNse01KvDi7JSK
|
24
|
+
Ev6CJNgZUdHN6CK10T1JEcWvyfWvA9r5BARL800mMq0=
|
21
25
|
-----END CERTIFICATE-----
|
@@ -0,0 +1 @@
|
|
1
|
+
da215d983974b9d716b437ef8bfdef81704e95fbbc09df1e30bdf7448aa18f5d9811d72b993d5de51b606362bde2414605ca9a4d21ac2e087679195a83baa0ee
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-imageoptimizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Tescher
|
@@ -10,27 +10,31 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEPDCCAqSgAwIBAgIBATANBgkqhkiG9w0BAQsFADAkMSIwIAYDVQQDDBlqYXRl
|
14
|
+
c2NoZXIvREM9Z21haWwvREM9Y29tMB4XDTE5MTExOTAwMTExNVoXDTIwMTExODAw
|
15
|
+
MTExNVowJDEiMCAGA1UEAwwZamF0ZXNjaGVyL0RDPWdtYWlsL0RDPWNvbTCCAaIw
|
16
|
+
DQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAKae/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sHo4w9fyfR+PmxCm0o3RujZN0rsUlXx+IgO/AGkJOT+
|
32
|
+
fBT9/VvNGT16dHg3h+aX0fs99OH/Zm496CLwJZQuUVezq2CkZ0elVzSmYaEEXXbi
|
33
|
+
eZmWfzyS8juTTbHzxiNKX7NM5+tmOGxcvD1ltp4QRr8hwU+2/YwiOLwrnLpS1+z6
|
34
|
+
rqTmM8KP5XFYd1DTsua3iTymDKIoyeUKzFvnLKyxZ3Vb1PcJ3ruNse01KvDi7JSK
|
35
|
+
Ev6CJNgZUdHN6CK10T1JEcWvyfWvA9r5BARL800mMq0=
|
32
36
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
37
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
34
38
|
dependencies:
|
35
39
|
- !ruby/object:Gem::Dependency
|
36
40
|
name: carrierwave
|
@@ -41,7 +45,7 @@ dependencies:
|
|
41
45
|
version: '0.8'
|
42
46
|
- - "<"
|
43
47
|
- !ruby/object:Gem::Version
|
44
|
-
version: '2.
|
48
|
+
version: '2.1'
|
45
49
|
type: :runtime
|
46
50
|
prerelease: false
|
47
51
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +55,7 @@ dependencies:
|
|
51
55
|
version: '0.8'
|
52
56
|
- - "<"
|
53
57
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
58
|
+
version: '2.1'
|
55
59
|
- !ruby/object:Gem::Dependency
|
56
60
|
name: image_optimizer
|
57
61
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +143,7 @@ files:
|
|
139
143
|
- certs/jtescher.pem
|
140
144
|
- checksum/carrierwave-imageoptimizer-1.3.0.gem.sha512
|
141
145
|
- checksum/carrierwave-imageoptimizer-1.4.0.gem.sha512
|
146
|
+
- checksum/carrierwave-imageoptimizer-1.4.1.gem.sha512
|
142
147
|
- lib/carrierwave-imageoptimizer.rb
|
143
148
|
- lib/carrierwave-imageoptimizer/version.rb
|
144
149
|
- spec/carrierwave-imageoptimizer/version_spec.rb
|
@@ -163,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
168
|
- !ruby/object:Gem::Version
|
164
169
|
version: '0'
|
165
170
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.5.1
|
171
|
+
rubygems_version: 3.0.6
|
168
172
|
signing_key:
|
169
173
|
specification_version: 4
|
170
174
|
summary: Simply optimize CarrierWave images via jpegoptim or optipng
|
metadata.gz.sig
CHANGED
Binary file
|