mozjpeg 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +5 -3
- data/lib/mozjpeg.rb +1 -1
- data/lib/mozjpeg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5c2c2d287a4272e5e9d30f17516d42270b1b5bc
|
|
4
|
+
data.tar.gz: 7cca1369dfc955c4da8ee073d5b900d6c25055e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e01d7cec845cbad8c15983aadcea945e27a61619f45f687ce74c19aad1abe1839b73e5f29b5f0dcf0038f05b8e7215abc347e9e1114f622f571bfc693e13910
|
|
7
|
+
data.tar.gz: febef914fd2e345aa6ad9b8dfc11be89ebc9169926b9955e04992ae270233fe5a2bf8884addf4a3b052f53b38d3cb682c813790c33881d6cbe0d300237c79cbb
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ This gem was successfully tested on the following systems: (test for binaries in
|
|
|
10
10
|
* Linux CentOS 6 - ruby 2.2.2
|
|
11
11
|
* Windows XP - ruby 2.0.0p645
|
|
12
12
|
|
|
13
|
-
Please report other systems that work, any problems or questions opening
|
|
13
|
+
Please report other systems that work, any problems or questions opening an issue on GitHub.
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -39,7 +39,7 @@ Mozjpeg.cjpeg_path
|
|
|
39
39
|
# => /path/to/gems/bundled/cjpeg
|
|
40
40
|
# raises error if not supported
|
|
41
41
|
|
|
42
|
-
# compress JPEG file (accepts instances of
|
|
42
|
+
# compress JPEG file (accepts instances of File)
|
|
43
43
|
large_image = File.new('large.jpeg')
|
|
44
44
|
tiny_image = File.new('tiny.jpeg')
|
|
45
45
|
|
|
@@ -52,12 +52,14 @@ Mozjpeg.compress large_image, tiny_image, arguments: '-quality 70 -quant-table 2
|
|
|
52
52
|
|
|
53
53
|
## [Paperclip](https://github.com/thoughtbot/paperclip)
|
|
54
54
|
|
|
55
|
-
This gem was made to be used with the `paperclip-mozjpeg` gem, which adds file processor to compress JPEG images uploaded using the [paperclip](https://github.com/thoughtbot/paperclip) gem.
|
|
55
|
+
This gem was made to be used with the [`paperclip-mozjpeg`](https://github.com/svoboda-jan/paperclip-mozjpeg) gem, which adds file processor to compress JPEG images uploaded using the [`paperclip`](https://github.com/thoughtbot/paperclip) gem.
|
|
56
56
|
|
|
57
57
|
## License
|
|
58
58
|
|
|
59
59
|
This gem is licensed under the MIT license.
|
|
60
|
+
|
|
60
61
|
[MozJPEG license](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.txt)
|
|
62
|
+
|
|
61
63
|
The included JPEG fixture photo for tests is licenced under Creative Commons - CC0.
|
|
62
64
|
|
|
63
65
|
## Contributing
|
data/lib/mozjpeg.rb
CHANGED
data/lib/mozjpeg/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mozjpeg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Svoboda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|