kt-paperclip-mozjpeg 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/README.md +5 -1
- data/lib/kt-paperclip-mozjpeg.rb +1 -0
- data/lib/paperclip-mozjpeg/version.rb +1 -1
- data/lib/paperclip-mozjpeg.rb +2 -2
- data/paperclip-mozjpeg.gemspec +5 -8
- metadata +3 -4
- data/bin/console +0 -14
- data/bin/setup +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef6da8edece9374b38f1e39426d2320369abee25c625af3cad48fe43c3490ee
|
4
|
+
data.tar.gz: 9edbb9927ff6ed73c75d50b76fcc6f53ae4795c7f73a181e03857a3d4a220e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba7164dd5ce4e295debaf67c49f70d1e1d232f8aff68d5a05b6241de03b1d6a52794ee06ba74e0ac6712fef5f673c1a1b223a311d4118dbd4ed094a139ed345
|
7
|
+
data.tar.gz: 8d18daa247430133304b838411de546eb089a14e44fcbd2ef3dda188fe54f3cfe353d581fd69bee3eae9630b09eb5811e89b1651f5cd7ba97361ebf2431710a5
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# About
|
2
2
|
|
3
|
-
This repository contains the ruby library which adds file processor to compress JPEG images uploaded using the [paperclip](https://github.com/thoughtbot/paperclip) gem.
|
3
|
+
This repository contains the ruby library which adds file processor to compress JPEG images uploaded using the [paperclip](https://github.com/thoughtbot/paperclip) and [kt-paperclip](https://github.com/kreeti/kt-paperclip) gem.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -8,6 +8,8 @@ Add this line to your application's Gemfile:
|
|
8
8
|
|
9
9
|
```ruby
|
10
10
|
gem 'paperclip-mozjpeg'
|
11
|
+
# or
|
12
|
+
gem 'kt-paperclip-mozjpeg'
|
11
13
|
|
12
14
|
# To use bundled binaries of MozJPEG 3.0 for Mac OS X, Linux and Windows add:
|
13
15
|
gem 'mozjpeg'
|
@@ -20,6 +22,8 @@ And then execute:
|
|
20
22
|
Or install it yourself as:
|
21
23
|
|
22
24
|
$ gem install paperclip-mozjpeg
|
25
|
+
# or
|
26
|
+
$ gem install kt-paperclip-mozjpeg
|
23
27
|
|
24
28
|
To install bundled binaries (must `require 'mozjpeg'` if not using bundler):
|
25
29
|
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative "paperclip-mozjpeg"
|
data/lib/paperclip-mozjpeg.rb
CHANGED
data/paperclip-mozjpeg.gemspec
CHANGED
@@ -1,16 +1,13 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'paperclip-mozjpeg/version'
|
1
|
+
require_relative "lib/paperclip-mozjpeg/version"
|
5
2
|
|
6
3
|
Gem::Specification.new do |spec|
|
7
4
|
spec.name = "#{ENV["GEM_NAME_PREFIX"]+"-" if ENV["GEM_NAME_PREFIX"]}paperclip-mozjpeg"
|
8
5
|
spec.version = PaperclipMozjpeg::VERSION
|
9
|
-
spec.authors = ["Jan Svoboda"]
|
10
|
-
spec.email = ["jan@mluv.cz"]
|
6
|
+
spec.authors = [ "Jan Svoboda" ]
|
7
|
+
spec.email = [ "jan@mluv.cz" ]
|
11
8
|
|
12
|
-
spec.summary = %
|
13
|
-
spec.description = %
|
9
|
+
spec.summary = %Q[JPEG and PNG compression processor for paperclip using MozJPEG.]
|
10
|
+
spec.description = %Q[JPEG and PNG compression processor for paperclip using MozJPEG.]
|
14
11
|
spec.homepage = "https://github.com/svoboda-jan/paperclip-mozjpeg"
|
15
12
|
|
16
13
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kt-paperclip-mozjpeg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Svoboda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,8 +78,7 @@ files:
|
|
78
78
|
- Gemfile
|
79
79
|
- README.md
|
80
80
|
- Rakefile
|
81
|
-
-
|
82
|
-
- bin/setup
|
81
|
+
- lib/kt-paperclip-mozjpeg.rb
|
83
82
|
- lib/paperclip-mozjpeg.rb
|
84
83
|
- lib/paperclip-mozjpeg/version.rb
|
85
84
|
- paperclip-mozjpeg.gemspec
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "paperclip/mozjpeg"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|