image_optim_pack 0.5.0-x86-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rubocop.yml +79 -0
  4. data/.travis.yml +35 -0
  5. data/CHANGELOG.markdown +210 -0
  6. data/Gemfile +7 -0
  7. data/LICENSE.txt +27 -0
  8. data/Makefile +393 -0
  9. data/README.markdown +93 -0
  10. data/Vagrantfile +60 -0
  11. data/acknowledgements/7z.txt +56 -0
  12. data/acknowledgements/advancecomp.txt +674 -0
  13. data/acknowledgements/bmp2png.txt +8 -0
  14. data/acknowledgements/cexcept.txt +8 -0
  15. data/acknowledgements/gifread.txt +14 -0
  16. data/acknowledgements/gifsicle.txt +343 -0
  17. data/acknowledgements/iqa.txt +30 -0
  18. data/acknowledgements/jhead.txt +12 -0
  19. data/acknowledgements/jpeg-archive.txt +20 -0
  20. data/acknowledgements/jpegoptim.txt +339 -0
  21. data/acknowledgements/libjpeg-turbo.txt +27 -0
  22. data/acknowledgements/libjpeg-x86-simd.txt +17 -0
  23. data/acknowledgements/libjpeg.txt +64 -0
  24. data/acknowledgements/libpng.txt +90 -0
  25. data/acknowledgements/mozjpeg.txt +7 -0
  26. data/acknowledgements/optipng-authors.txt +26 -0
  27. data/acknowledgements/optipng.txt +21 -0
  28. data/acknowledgements/pngcrush.txt +35 -0
  29. data/acknowledgements/pngquant.txt +56 -0
  30. data/acknowledgements/smallfry.txt +13 -0
  31. data/acknowledgements/zlib.txt +34 -0
  32. data/acknowledgements/zopfli-contributors.txt +6 -0
  33. data/acknowledgements/zopfli.txt +201 -0
  34. data/boxes/.gitignore +3 -0
  35. data/boxes/.rubocop.yml +13 -0
  36. data/boxes/Gemfile +11 -0
  37. data/boxes/Rakefile +144 -0
  38. data/boxes/definitions/freebsd-amd64/definition.rb +38 -0
  39. data/boxes/definitions/freebsd-amd64/install.sh +66 -0
  40. data/boxes/definitions/freebsd-i386/definition.rb +38 -0
  41. data/boxes/definitions/freebsd-i386/install.sh +66 -0
  42. data/boxes/definitions/freebsd-postinstall.sh +38 -0
  43. data/boxes/definitions/openbsd-amd64/definition.rb +71 -0
  44. data/boxes/definitions/openbsd-i386/definition.rb +71 -0
  45. data/boxes/definitions/openbsd-postinstall.sh +29 -0
  46. data/image_optim_pack-darwin-x86.gemspec +3 -0
  47. data/image_optim_pack-darwin-x86_64.gemspec +3 -0
  48. data/image_optim_pack-freebsd-amd64.gemspec +3 -0
  49. data/image_optim_pack-freebsd-x86.gemspec +3 -0
  50. data/image_optim_pack-linux-x86.gemspec +3 -0
  51. data/image_optim_pack-linux-x86_64.gemspec +3 -0
  52. data/image_optim_pack-openbsd-x86.gemspec +3 -0
  53. data/image_optim_pack-openbsd-x86_64.gemspec +3 -0
  54. data/image_optim_pack.gemspec +41 -0
  55. data/lib/image_optim/pack.rb +117 -0
  56. data/lib/image_optim_pack.rb +1 -0
  57. data/script/livecheck +116 -0
  58. data/script/run +71 -0
  59. data/script/update_versions +22 -0
  60. data/spec/image_optim/pack_spec.rb +114 -0
  61. data/spec/image_optim_spec.rb +39 -0
  62. data/spec/spec_helper.rb +8 -0
  63. data/vendor/darwin-i386/advpng +0 -0
  64. data/vendor/darwin-i386/gifsicle +0 -0
  65. data/vendor/darwin-i386/jhead +0 -0
  66. data/vendor/darwin-i386/jpeg-recompress +0 -0
  67. data/vendor/darwin-i386/jpegoptim +0 -0
  68. data/vendor/darwin-i386/jpegtran +0 -0
  69. data/vendor/darwin-i386/libjpeg.dylib +0 -0
  70. data/vendor/darwin-i386/libpng.dylib +0 -0
  71. data/vendor/darwin-i386/libz.dylib +0 -0
  72. data/vendor/darwin-i386/optipng +0 -0
  73. data/vendor/darwin-i386/pngcrush +0 -0
  74. data/vendor/darwin-i386/pngquant +0 -0
  75. metadata +182 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 05c9602bd0a8266fb7e0b5d6e080e223c770b1c8
4
+ data.tar.gz: 9f7212eca02af5dbde89a5f0c8a25b83c7a2649a
5
+ SHA512:
6
+ metadata.gz: 4675a718b5b132b7ad38f92b4da5e0783a0318c12de6aa775d9bdac0ec965c7c0a0a2692d6b3fcb9a64ef46bd5c6e0cf4e8928df94bbdc29852a9386c04dcc34
7
+ data.tar.gz: 480e59eaa7c413b9e4bda6738a1b6ac9526dfbbc22b400daff592c9254a7294866eca32348a7d1143cc221e96a7228ea2302444c99216afeb610730c8497c295
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /build/
2
+ /download/
3
+ /.vagrant/
4
+
5
+ Gemfile.lock
6
+ /*.gem
7
+ /.bundle
8
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,79 @@
1
+ AllCops:
2
+ Exclude:
3
+ - '*.gemspec'
4
+ - 'build/**/*'
5
+ - 'download/**/*'
6
+ - Vagrantfile
7
+
8
+ Bundler/OrderedGems:
9
+ Enabled: false
10
+
11
+ Metrics/BlockLength:
12
+ Exclude:
13
+ - spec/**/*_spec.rb
14
+
15
+ Metrics/MethodLength:
16
+ Max: 15
17
+
18
+ Security/YAMLLoad:
19
+ Exclude:
20
+ - script/livecheck
21
+
22
+ Style/AccessModifierIndentation:
23
+ EnforcedStyle: outdent
24
+
25
+ Style/Alias:
26
+ EnforcedStyle: prefer_alias_method
27
+
28
+ Style/DotPosition:
29
+ EnforcedStyle: trailing
30
+
31
+ Style/DoubleNegation:
32
+ Enabled: false
33
+
34
+ Style/EmptyCaseCondition:
35
+ Enabled: false
36
+
37
+ Style/Encoding:
38
+ EnforcedStyle: when_needed
39
+
40
+ Style/HashSyntax:
41
+ EnforcedStyle: hash_rockets
42
+
43
+ Style/IfUnlessModifier:
44
+ MaxLineLength: 40
45
+
46
+ Style/IndentHash:
47
+ EnforcedStyle: consistent
48
+
49
+ Style/MultilineBlockChain:
50
+ Enabled: false
51
+
52
+ Style/PercentLiteralDelimiters:
53
+ PreferredDelimiters:
54
+ '%w': '[]'
55
+ '%W': '[]'
56
+
57
+ Style/Semicolon:
58
+ AllowAsExpressionSeparator: true
59
+
60
+ Style/SignalException:
61
+ EnforcedStyle: semantic
62
+
63
+ Style/SpaceBeforeBlockBraces:
64
+ EnforcedStyle: no_space
65
+
66
+ Style/SpaceInsideHashLiteralBraces:
67
+ EnforcedStyle: no_space
68
+
69
+ Style/SpecialGlobalVars:
70
+ Enabled: false
71
+
72
+ Style/SymbolArray:
73
+ Enabled: false
74
+
75
+ Style/TrailingCommaInArguments:
76
+ EnforcedStyleForMultiline: no_comma
77
+
78
+ Style/TrailingCommaInLiteral:
79
+ EnforcedStyleForMultiline: comma
data/.travis.yml ADDED
@@ -0,0 +1,35 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - '1.8.7-p371'
5
+ - '1.9.3-p551'
6
+ - '2.0.0-p648'
7
+ - '2.1.10'
8
+ - '2.2.7'
9
+ - '2.3.4'
10
+ - '2.4.1'
11
+ - 'jruby-1.7.26'
12
+ - 'jruby-9.0.5.0'
13
+ - 'jruby-9.1.5.0'
14
+ script:
15
+ - make test
16
+ - bundle exec image_optim --info
17
+ - bundle exec rspec
18
+ before_install:
19
+ if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install imagemagick; fi
20
+ matrix:
21
+ include:
22
+ - dist: trusty
23
+ rvm: default
24
+ - os: osx
25
+ rvm: default
26
+ osx_image: xcode7.3
27
+ - os: osx
28
+ rvm: default
29
+ osx_image: xcode8.3
30
+ - env: RUBOCOP=✓
31
+ rvm: '2.4.1'
32
+ script: bundle exec rubocop
33
+ - env: CHECK_RUBIES=✓
34
+ rvm: '2.4.1'
35
+ script: bundle exec travis_check_rubies
@@ -0,0 +1,210 @@
1
+ # ChangeLog
2
+
3
+ ## unreleased
4
+
5
+ ## v0.5.0 (2017-05-06)
6
+
7
+ * Add gemspec for each platform to also release per platform gems [@toy](https://github.com/toy)
8
+
9
+ ## v0.4.0 (2017-04-26)
10
+
11
+ * pngquant 2.9.1 [@toy](https://github.com/toy)
12
+ * Rebuild all binaries [@toy](https://github.com/toy)
13
+ * Update freebsd box definition to 10.3 [@toy](https://github.com/toy)
14
+ * Switching to ubuntu for linux as centos has outdated gcc, remove centos boxes definitions [@toy](https://github.com/toy)
15
+ * Fix pngcrush makefile variable overrides [@toy](https://github.com/toy)
16
+ * Allow custom structure of projects in Makefile which doesn't allow to put resulting binary in the root folder [@toy](https://github.com/toy)
17
+
18
+ ## v0.3.1.20170318 (2017-03-18)
19
+
20
+ * libpng 1.6.29 [@toy](https://github.com/toy)
21
+
22
+ ## v0.3.1.20170311 (2017-03-11)
23
+
24
+ * pngquant 2.9.0 [@toy](https://github.com/toy)
25
+
26
+ ## v0.3.1.20170121 (2017-01-21)
27
+
28
+ * libpng 1.6.28, libz 1.2.11 and pngcrush 1.8.11 [@toy](https://github.com/toy)
29
+
30
+ ## v0.3.1 (2016-12-30)
31
+
32
+ * libpng 1.6.27 and pngquant 2.8.2 [@toy](https://github.com/toy)
33
+ * Makefile cleanup [@toy](https://github.com/toy)
34
+
35
+ ## v0.3.0.20161206 (2016-12-06)
36
+
37
+ * pngquant 2.8.1 (resort to cloning due to submodule not in archive) [@toy](https://github.com/toy)
38
+ * advpng 1.23 [@toy](https://github.com/toy)
39
+ * advpng 1.22 (windows related change) [@toy](https://github.com/toy)
40
+
41
+ ## v0.3.0.20161108 (2016-11-08)
42
+
43
+ * advpng 1.21 [@toy](https://github.com/toy)
44
+ * pngcrush 1.8.10 [@toy](https://github.com/toy)
45
+
46
+ ## v0.3.0.20161021 (2016-10-21)
47
+
48
+ * libpng 1.6.26 [@toy](https://github.com/toy)
49
+ * pngcrush 1.8.8 [@toy](https://github.com/toy)
50
+
51
+ ## v0.3.0.20160927 (2016-09-27)
52
+
53
+ * pngcrush 1.8.7 [@toy](https://github.com/toy)
54
+
55
+ ## v0.3.0.20160905 (2016-09-05)
56
+
57
+ * libpng 1.6.25 and pngcrush 1.8.6 [@toy](https://github.com/toy)
58
+ * jpegoptim 1.4.4 [@toy](https://github.com/toy)
59
+
60
+ ## v0.3.0.20160812 (2016-08-12)
61
+
62
+ * pngcrush 1.8.4 [@toy](https://github.com/toy)
63
+
64
+ ## v0.3.0.20160806 (2016-08-06)
65
+
66
+ * libpng 1.6.24 [@toy](https://github.com/toy)
67
+
68
+ ## v0.3.0 (2016-07-27)
69
+
70
+ * Add FreeBSD and OpenBSD binaries [toy/image_optim#89](https://github.com/toy/image_optim/issues/89) [toy/image_optim#90](https://github.com/toy/image_optim/issues/90) [@toy](https://github.com/toy)
71
+ * Flatten vendor paths from os/arch to os-arch [@toy](https://github.com/toy)
72
+ * Add script for build build boxes using veewee [@toy](https://github.com/toy)
73
+ * pngcrush 1.8.2 [@toy](https://github.com/toy)
74
+
75
+ ## v0.2.3 (2016-07-09)
76
+
77
+ * Change dependency on fspath to allow versions 2.1...4 [@toy](https://github.com/toy)
78
+
79
+ ## v0.2.2 (2016-07-09)
80
+
81
+ * advancecomp 1.20 [@toy](https://github.com/toy)
82
+ * Rescue `Errno::ENOENT` on load when uname is not available [@toy](https://github.com/toy)
83
+
84
+ ## v0.2.1.20160610 (2016-06-10)
85
+
86
+ * libpng 1.6.23 and pngquant 2.7.1 [@toy](https://github.com/toy)
87
+
88
+ ## v0.2.1.20160510 (2016-05-10)
89
+
90
+ * pngquant 2.7.0 [@toy](https://github.com/toy)
91
+
92
+ ## v0.2.1.20160413 (2016-04-13)
93
+
94
+ * pngcrush 1.8.1 [@toy](https://github.com/toy)
95
+
96
+ ## v0.2.1.20160406 (2016-04-06)
97
+
98
+ * optipng 0.7.6 [@toy](https://github.com/toy)
99
+
100
+ ## v0.2.1.20160221 (2016-02-21)
101
+
102
+ * pngquant 2.6.0 [@toy](https://github.com/toy)
103
+
104
+ ## v0.2.1.20160119 (2016-01-19)
105
+
106
+ * libjpeg 9b [@toy](https://github.com/toy)
107
+
108
+ ## v0.2.1.20160117 (2016-01-17)
109
+
110
+ * pngcrush 1.8.0 [@toy](https://github.com/toy)
111
+ * libpng 1.6.21 [@toy](https://github.com/toy)
112
+
113
+ ## v0.2.1.20160103 (2016-01-03)
114
+
115
+ * libpng 1.6.20 and pngcrush 1.7.92 [@toy](https://github.com/toy)
116
+
117
+ ## v0.2.1.20151113 (2015-11-13)
118
+
119
+ * libpng 1.6.19 and pngcrush 1.7.88 [@toy](https://github.com/toy)
120
+
121
+ ## v0.2.1.20151012 (2015-10-12)
122
+
123
+ * pngcrush 1.7.87 [@toy](https://github.com/toy)
124
+
125
+ ## v0.2.1.20151002 (2015-10-02)
126
+
127
+ * pngquant 2.5.2 [@toy](https://github.com/toy)
128
+
129
+ ## v0.2.1.20150808 (2015-08-08)
130
+
131
+ * pngquant 2.5.1 [@toy](https://github.com/toy)
132
+
133
+ ## v0.2.1.20150802 (2015-08-02)
134
+
135
+ * libpng 1.6.18 and pngcrush 1.7.86 [@toy](https://github.com/toy)
136
+
137
+ ## v0.2.1.20150702 (2015-07-02)
138
+
139
+ * gifsicle 1.88 and pngquant 2.5.0 [@toy](https://github.com/toy)
140
+
141
+ ## v0.2.1.20150525 (2015-05-25)
142
+
143
+ * jpegoptim 1.4.2 and libmozjpeg 3.1 [@toy](https://github.com/toy)
144
+
145
+ ## v0.2.1.20150422 (2015-04-22)
146
+
147
+ * jpegarchive 2.1.1 [@toy](https://github.com/toy)
148
+ * pngquant 2.4.1 [@toy](https://github.com/toy)
149
+
150
+ ## v0.2.1.20150411 (2015-04-11)
151
+
152
+ * jpegarchive 2.1.0 using libmozjpeg 3.0 [@toy](https://github.com/toy)
153
+
154
+ ## v0.2.1.20150407 (2015-04-07)
155
+
156
+ * pngquant 2.3.6 [@toy](https://github.com/toy)
157
+
158
+ ## v0.2.1.20150327 (2015-03-27)
159
+
160
+ * libpng 1.6.17 [@toy](https://github.com/toy)
161
+
162
+ ## v0.2.1.20150310 (2015-03-10)
163
+
164
+ * pngcrush 1.7.85 and pngquant 2.3.5 [@toy](https://github.com/toy)
165
+
166
+ ## v0.2.1.20150305 (2015-03-05)
167
+
168
+ * pngcrush 1.7.84 [@toy](https://github.com/toy)
169
+
170
+ ## v0.2.1.20150203 (2015-02-03)
171
+
172
+ * jhead 3.00 [@toy](https://github.com/toy)
173
+
174
+ ## v0.2.1.20150201 (2015-02-01)
175
+
176
+ * pngquant 2.3.4 [@toy](https://github.com/toy)
177
+
178
+ ## v0.2.1.20150129 (2015-01-29)
179
+
180
+ * pngcrush 1.7.83 [@toy](https://github.com/toy)
181
+
182
+ ## v0.2.1.20150107 (2015-01-07)
183
+
184
+ * pngquant 2.3.3 (2.3.2 skipped due to [pornel/pngquant#133](https://github.com/pornel/pngquant/issues/133)) [@toy](https://github.com/toy)
185
+
186
+ ## v0.2.1 (2014-12-23)
187
+
188
+ * jpegoptim 1.4.1, libpng 1.6.16, pngcrush 1.7.82 [@toy](https://github.com/toy)
189
+
190
+ ## v0.2.0.20141210 (2014-12-10)
191
+
192
+ * gifsicle 1.87 [@toy](https://github.com/toy)
193
+
194
+ ## v0.2.0.20141122 (2014-11-22)
195
+
196
+ * libpng 1.6.15 [@toy](https://github.com/toy)
197
+ * pngcrush 1.7.81 [@toy](https://github.com/toy)
198
+ * pngcrush 1.7.80 [@toy](https://github.com/toy)
199
+
200
+ ## v0.2.0 (2014-11-08)
201
+
202
+ * Add `jpeg-recompress` from [jpeg-archive](https://github.com/danielgtaylor/jpeg-archive) [@toy](https://github.com/toy)
203
+
204
+ ## v0.1.0.20141104 (2014-11-04)
205
+
206
+ * pngcrush 1.7.79 [@toy](https://github.com/toy)
207
+
208
+ ## v0.1.0 (2014-11-01)
209
+
210
+ * Initial release [@toy](https://github.com/toy)
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :name => 'image_optim_pack'
4
+
5
+ if RUBY_VERSION >= '2.0'
6
+ gem 'travis_check_rubies', '~> 0.2'
7
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2014-2017 Ivan Kuchin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ ======================================================================
23
+
24
+ All binaries and libraries in vendor directory are written by
25
+ different authors. References can be found in README.markdown.
26
+ COPYRIGHTS, DISCLAIMERS, LICENSES and NOTES can be found in
27
+ acknowledgements directory.