piet 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.travis.yml +23 -4
- data/Gemfile.lock +36 -35
- data/README.md +17 -0
- data/gemfiles/activesupport-4.gemfile +5 -0
- data/lib/piet/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c74e6469f1fb95b0a29b5d90025bc46532576e04
|
4
|
+
data.tar.gz: 2e5b56d9ebeb82dc2a482ca29cfc0b48fb93ed88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1717c5974aa29fc69b8291626ef16bf222c99ccf4f60ea3af8ab50980c481159a78ce334283e301127b61413e809ed55b5742b2fa6fff4c8bf346023f508bb5
|
7
|
+
data.tar.gz: d2b16863605a39c77e144648776622bf8f7dae3f8a6fec4612f96603a2f44690a26b57467ece82c238004c39cc5921da45474c523d515eb93774fa603d4ff5b7
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,7 +1,26 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
cache: bundler
|
4
|
+
|
1
5
|
rvm:
|
2
|
-
-
|
3
|
-
-
|
4
|
-
-
|
5
|
-
|
6
|
+
- 2.0.0
|
7
|
+
- 2.1.5
|
8
|
+
- 2.2.6
|
9
|
+
- 2.3.3
|
10
|
+
- 2.4.0
|
11
|
+
|
12
|
+
gemfile:
|
13
|
+
- Gemfile
|
14
|
+
- gemfiles/activesupport-4.gemfile
|
15
|
+
|
16
|
+
matrix:
|
17
|
+
exclude:
|
18
|
+
- rvm: 2.0.0
|
19
|
+
gemfile: Gemfile
|
20
|
+
- rvm: 2.1.5
|
21
|
+
gemfile: Gemfile
|
22
|
+
- rvm: 2.4.0
|
23
|
+
gemfile: gemfiles/activesupport-4.gemfile
|
24
|
+
|
6
25
|
before_install:
|
7
26
|
- gem update bundler
|
data/Gemfile.lock
CHANGED
@@ -1,49 +1,50 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
piet (0.2.
|
4
|
+
piet (0.2.5)
|
5
5
|
png_quantizator
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ZenTest (4.
|
11
|
-
activemodel (
|
12
|
-
activesupport (=
|
13
|
-
|
14
|
-
|
15
|
-
i18n (~> 0.
|
16
|
-
json (~> 1.7, >= 1.7.7)
|
10
|
+
ZenTest (4.11.1)
|
11
|
+
activemodel (5.0.1)
|
12
|
+
activesupport (= 5.0.1)
|
13
|
+
activesupport (5.0.1)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (~> 0.7)
|
17
16
|
minitest (~> 5.1)
|
18
|
-
thread_safe (~> 0.1)
|
19
17
|
tzinfo (~> 1.1)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
activesupport (>= 3.2.0)
|
24
|
-
json (>= 1.7)
|
18
|
+
carrierwave (1.0.0)
|
19
|
+
activemodel (>= 4.0.0)
|
20
|
+
activesupport (>= 4.0.0)
|
25
21
|
mime-types (>= 1.16)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
mime-types (
|
30
|
-
|
31
|
-
|
32
|
-
|
22
|
+
concurrent-ruby (1.0.4)
|
23
|
+
diff-lcs (1.3)
|
24
|
+
i18n (0.7.0)
|
25
|
+
mime-types (3.1)
|
26
|
+
mime-types-data (~> 3.2015)
|
27
|
+
mime-types-data (3.2016.0521)
|
28
|
+
mini_magick (4.6.0)
|
29
|
+
minitest (5.10.1)
|
33
30
|
png_quantizator (0.2.1)
|
34
|
-
rake (
|
35
|
-
rmagick (2.
|
36
|
-
rspec (
|
37
|
-
rspec-core (~>
|
38
|
-
rspec-expectations (~>
|
39
|
-
rspec-mocks (~>
|
40
|
-
rspec-core (
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
31
|
+
rake (12.0.0)
|
32
|
+
rmagick (2.16.0)
|
33
|
+
rspec (3.5.0)
|
34
|
+
rspec-core (~> 3.5.0)
|
35
|
+
rspec-expectations (~> 3.5.0)
|
36
|
+
rspec-mocks (~> 3.5.0)
|
37
|
+
rspec-core (3.5.4)
|
38
|
+
rspec-support (~> 3.5.0)
|
39
|
+
rspec-expectations (3.5.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.5.0)
|
42
|
+
rspec-mocks (3.5.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.5.0)
|
45
|
+
rspec-support (3.5.0)
|
46
|
+
thread_safe (0.3.5)
|
47
|
+
tzinfo (1.2.2)
|
47
48
|
thread_safe (~> 0.1)
|
48
49
|
|
49
50
|
PLATFORMS
|
@@ -59,4 +60,4 @@ DEPENDENCIES
|
|
59
60
|
rspec
|
60
61
|
|
61
62
|
BUNDLED WITH
|
62
|
-
1.
|
63
|
+
1.13.7
|
data/README.md
CHANGED
@@ -120,6 +120,22 @@ class ImageUploader < CarrierWave::Uploader::Base
|
|
120
120
|
end
|
121
121
|
```
|
122
122
|
|
123
|
+
To use custom options in the optimization:
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
class ImageUploader < CarrierWave::Uploader::Base
|
127
|
+
...
|
128
|
+
# To pass 1 hash as 1 argument
|
129
|
+
# It needs to be put in an array
|
130
|
+
# So in this example the actual call will look like:
|
131
|
+
# ```
|
132
|
+
# optimize({quality: 90, level: 7})
|
133
|
+
# ```
|
134
|
+
process optimize: [{quality: 90, level: 7}]
|
135
|
+
...
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
123
139
|
Examples
|
124
140
|
--------
|
125
141
|
|
@@ -190,6 +206,7 @@ TODO
|
|
190
206
|
Changelog
|
191
207
|
---------
|
192
208
|
|
209
|
+
* v.0.2.5 Improved CI coverage & dropped support for Ruby 1.9
|
193
210
|
* v.0.2.4 Fixed Gemfile issues!
|
194
211
|
* v.0.2.3 More efficient treatment of open files thanks to @lavrovdv.
|
195
212
|
* v.0.2.2 Lighter gem weight (to be improved in the future).
|
data/lib/piet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Bellonch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: png_quantizator
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- Gemfile.lock
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
|
+
- gemfiles/activesupport-4.gemfile
|
124
125
|
- lib/piet.rb
|
125
126
|
- lib/piet/carrierwave_extension.rb
|
126
127
|
- lib/piet/version.rb
|
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
152
|
version: '0'
|
152
153
|
requirements: []
|
153
154
|
rubyforge_project: piet
|
154
|
-
rubygems_version: 2.4.5
|
155
|
+
rubygems_version: 2.4.5
|
155
156
|
signing_key:
|
156
157
|
specification_version: 4
|
157
158
|
summary: An image optimizer
|