piet 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9db25bd2d01d18f9cdd9060a7e568718549f6849
4
- data.tar.gz: fbeb26da84033f3762b04afeb800f26d56c68f3a
3
+ metadata.gz: c74e6469f1fb95b0a29b5d90025bc46532576e04
4
+ data.tar.gz: 2e5b56d9ebeb82dc2a482ca29cfc0b48fb93ed88
5
5
  SHA512:
6
- metadata.gz: 033465370957a9500280c49449e7cc118cd9dd6866564744ddcd2a48bca3f233dbd23402bc7fa311f5bd908d890f86938bb98ccbf0f1200994e3ec87d892b79d
7
- data.tar.gz: fc0a1c1a13b5d8f3e2fa66d4f528b343d51502db356296a7dc5a660066573f37fb82f41daf3e1beb05599f67c5ba9dd139f04267e66abb7bf85ad0250e00ab63
6
+ metadata.gz: d1717c5974aa29fc69b8291626ef16bf222c99ccf4f60ea3af8ab50980c481159a78ce334283e301127b61413e809ed55b5742b2fa6fff4c8bf346023f508bb5
7
+ data.tar.gz: d2b16863605a39c77e144648776622bf8f7dae3f8a6fec4612f96603a2f44690a26b57467ece82c238004c39cc5921da45474c523d515eb93774fa603d4ff5b7
data/.gitignore CHANGED
@@ -6,3 +6,7 @@ uploads
6
6
  # RVM configuration files
7
7
  .ruby-gemset
8
8
  .ruby-version
9
+
10
+ # RubyMine project files
11
+ # https://www.jetbrains.com/ruby/help/project.html
12
+ .idea/*
data/.travis.yml CHANGED
@@ -1,7 +1,26 @@
1
+ language: ruby
2
+
3
+ cache: bundler
4
+
1
5
  rvm:
2
- - "1.9.3"
3
- - "2.0.0"
4
- - "2.1.5"
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)
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.10.0)
11
- activemodel (4.1.1)
12
- activesupport (= 4.1.1)
13
- builder (~> 3.1)
14
- activesupport (4.1.1)
15
- i18n (~> 0.6, >= 0.6.9)
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
- builder (3.2.2)
21
- carrierwave (0.10.0)
22
- activemodel (>= 3.2.0)
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
- diff-lcs (1.2.5)
27
- i18n (0.6.9)
28
- json (1.8.1)
29
- mime-types (2.2)
30
- mini_magick (3.7.0)
31
- subexec (~> 0.2.1)
32
- minitest (5.3.3)
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 (10.3.2)
35
- rmagick (2.13.2)
36
- rspec (2.14.1)
37
- rspec-core (~> 2.14.0)
38
- rspec-expectations (~> 2.14.0)
39
- rspec-mocks (~> 2.14.0)
40
- rspec-core (2.14.8)
41
- rspec-expectations (2.14.5)
42
- diff-lcs (>= 1.1.3, < 2.0)
43
- rspec-mocks (2.14.6)
44
- subexec (0.2.3)
45
- thread_safe (0.3.3)
46
- tzinfo (1.1.0)
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.10.6
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).
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 4.1"
4
+
5
+ gemspec :path => "../"
data/lib/piet/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Piet
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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: 2016-02-23 00:00:00.000000000 Z
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.1
155
+ rubygems_version: 2.4.5
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: An image optimizer