paperclip-optimizer 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/README.md +9 -1
- data/lib/paperclip-optimizer/version.rb +1 -1
- data/paperclip-optimizer.gemspec +6 -6
- metadata +30 -41
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDQwNjZmMDVkM2ViYTc0MTIzOGI4ZjAyMWNlYTdlMDI0MjBhY2ZiZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZmI1ZWE0NzliZWQ0ZmZjNmY2MWRmM2RkYWMxNzRiNGM5ZDIwZDI2OQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OThlODBmMWVkNDdiZmY5NGRhNzhkM2RkNzIyMDI1MjVmODQ4MDU4ZmY5MTA5
|
10
|
+
M2EyNDM2ODIzZWY2OTZmZDhiODBkMGFlN2JmODIyZGRhYWUzYTg3OGQzYmFj
|
11
|
+
NDQ1NTlkMWE0NWIwNTgyODBkZDBkYmFmYzc3MjFmYTBjMmRkMTI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZDJhNmI3MmY0MGY3MWI1ZmMwMDRmMmNiNmU0MDAzNTE2OWRmMDFlODZlMGI1
|
14
|
+
NDc5OWRlOThhNDdjMGE1YjkwNGYzNTRhNmNhY2Y3MGY0MzM4ODMxNmJjMWZl
|
15
|
+
NzA1NDRiZmI2Nzg3ODM1YWZjYzViMmJiOThmNDFiYWE4ZGNlMWQ=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-1.9.3
|
1
|
+
ruby-1.9.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 1.0.0
|
4
|
+
|
5
|
+
* we're going to 1.0.0 after six months in production
|
6
|
+
* use image_optim 0.9 and upwards
|
7
|
+
* use Paperclip 3.5.2 and upwards
|
8
|
+
* document image_optim_bin for use on Heroku
|
9
|
+
* add a CHANGELOG
|
10
|
+
|
11
|
+
## 0.2.0
|
12
|
+
|
13
|
+
* initial release
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/janfoeh/paperclip-optimizer.png)](https://travis-ci.org/janfoeh/paperclip-optimizer)
|
4
4
|
[![Dependency Status](https://gemnasium.com/janfoeh/paperclip-optimizer.png)](https://gemnasium.com/janfoeh/paperclip-optimizer)
|
5
5
|
|
6
|
-
|
6
|
+
PaperclipOptimizer is a processor for [Paperclip](https://github.com/thoughtbot/paperclip) that allows
|
7
7
|
you to optimize and minify uploaded JPG, PNG or GIF images.
|
8
8
|
|
9
9
|
It is just a thin wrapper around [ImageOptim](https://github.com/toy/image_optim),
|
@@ -31,6 +31,14 @@ And then execute:
|
|
31
31
|
See [ImageOptims README](https://github.com/toy/image_optim#binaries-location)
|
32
32
|
on how to install the various optimization libraries.
|
33
33
|
|
34
|
+
### Deployment on Heroku
|
35
|
+
|
36
|
+
If you deploy to Heroku, take a look at the [image_optim_bin](https://github.com/mooktakim/image_optim_bin) gem. It supplies the necessary
|
37
|
+
optimization binaries, compiled and ready for Herokus environment.
|
38
|
+
|
39
|
+
gem "image_optim_bin", group: :production
|
40
|
+
gem "paperclip-optimizer"
|
41
|
+
|
34
42
|
## Usage
|
35
43
|
|
36
44
|
Just add ```:paperclip_optimizer``` to Paperclips ```:processors``` - setting:
|
data/paperclip-optimizer.gemspec
CHANGED
@@ -13,14 +13,14 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/janfoeh/paperclip-optimizer"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.add_dependency "paperclip", "~> 3.
|
17
|
-
spec.add_dependency "image_optim", "~> 0.
|
16
|
+
spec.add_dependency "paperclip", "~> 3.5.2"
|
17
|
+
spec.add_dependency "image_optim", "~> 0.9"
|
18
18
|
|
19
19
|
spec.add_development_dependency "bundler", "~> 1.3"
|
20
|
-
spec.add_development_dependency "rake"
|
21
|
-
spec.add_development_dependency 'rspec'
|
22
|
-
spec.add_development_dependency 'rails'
|
23
|
-
spec.add_development_dependency 'sqlite3'
|
20
|
+
spec.add_development_dependency "rake", "~> 10.1"
|
21
|
+
spec.add_development_dependency 'rspec', "~> 2.13"
|
22
|
+
spec.add_development_dependency 'rails', ">= 3.2.13", "< 4.1.0"
|
23
|
+
spec.add_development_dependency 'sqlite3', "~> 1.3.7"
|
24
24
|
|
25
25
|
spec.add_runtime_dependency "paperclip"
|
26
26
|
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-optimizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jan-Christian Föh
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: paperclip
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
19
|
+
version: 3.5.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.
|
26
|
+
version: 3.5.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: image_optim
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '0.
|
33
|
+
version: '0.9'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '0.
|
40
|
+
version: '0.9'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: bundler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,71 +55,68 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rake
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
61
|
+
version: '10.1'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
68
|
+
version: '10.1'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rspec
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
75
|
+
version: '2.13'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
82
|
+
version: '2.13'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rails
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
89
|
+
version: 3.2.13
|
90
|
+
- - <
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 4.1.0
|
102
93
|
type: :development
|
103
94
|
prerelease: false
|
104
95
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
96
|
requirements:
|
107
97
|
- - ! '>='
|
108
98
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
99
|
+
version: 3.2.13
|
100
|
+
- - <
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 4.1.0
|
110
103
|
- !ruby/object:Gem::Dependency
|
111
104
|
name: sqlite3
|
112
105
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
106
|
requirements:
|
115
|
-
- -
|
107
|
+
- - ~>
|
116
108
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
109
|
+
version: 1.3.7
|
118
110
|
type: :development
|
119
111
|
prerelease: false
|
120
112
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
113
|
requirements:
|
123
|
-
- -
|
114
|
+
- - ~>
|
124
115
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
116
|
+
version: 1.3.7
|
126
117
|
- !ruby/object:Gem::Dependency
|
127
118
|
name: paperclip
|
128
119
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
120
|
requirements:
|
131
121
|
- - ! '>='
|
132
122
|
- !ruby/object:Gem::Version
|
@@ -134,7 +124,6 @@ dependencies:
|
|
134
124
|
type: :runtime
|
135
125
|
prerelease: false
|
136
126
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
127
|
requirements:
|
139
128
|
- - ! '>='
|
140
129
|
- !ruby/object:Gem::Version
|
@@ -152,6 +141,7 @@ files:
|
|
152
141
|
- .ruby-gemset
|
153
142
|
- .ruby-version
|
154
143
|
- .travis.yml
|
144
|
+
- CHANGELOG.md
|
155
145
|
- Gemfile
|
156
146
|
- LICENSE.txt
|
157
147
|
- README.md
|
@@ -170,27 +160,26 @@ files:
|
|
170
160
|
homepage: https://github.com/janfoeh/paperclip-optimizer
|
171
161
|
licenses:
|
172
162
|
- MIT
|
163
|
+
metadata: {}
|
173
164
|
post_install_message:
|
174
165
|
rdoc_options: []
|
175
166
|
require_paths:
|
176
167
|
- lib
|
177
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
169
|
requirements:
|
180
170
|
- - ! '>='
|
181
171
|
- !ruby/object:Gem::Version
|
182
172
|
version: '0'
|
183
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
174
|
requirements:
|
186
175
|
- - ! '>='
|
187
176
|
- !ruby/object:Gem::Version
|
188
177
|
version: '0'
|
189
178
|
requirements: []
|
190
179
|
rubyforge_project:
|
191
|
-
rubygems_version:
|
180
|
+
rubygems_version: 2.0.5
|
192
181
|
signing_key:
|
193
|
-
specification_version:
|
182
|
+
specification_version: 4
|
194
183
|
summary: Minify Paperclip JPEG and PNG attachments
|
195
184
|
test_files:
|
196
185
|
- spec/paperclip-optimizer_spec.rb
|