paperclip-compression 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/osx/{jpegtran → 32bit/jpegtran} +0 -0
- data/bin/osx/{optipng → 32bit/optipng} +0 -0
- data/bin/osx/64bit/jpegtran +0 -0
- data/bin/osx/64bit/optipng +0 -0
- data/lib/paperclip-compression/base.rb +6 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c21a07b5d979cd091a90a29e3460526519cc47622102cd528541fc86d8ff9ff
|
4
|
+
data.tar.gz: 7ece060d75568180c8d6f7ae5996c994b9c0932e1fa2614843e3b2977310595b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f1f567632593404d222b9b6787c90b70b0c7d7fd05054165d12a0e56a1f6539f91da7bca2856fb95bb09c6ad48d30e676af551eab4371c295a31c20157cf2b
|
7
|
+
data.tar.gz: 5f2736cbc2296c8aba1ebc0cc6e4cf267ffd3555ea6182fadc63693dda54a83345d7ed931c144617d216263a639447016c40d663c222d8a59a001acfd458c4b8
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
@@ -49,7 +49,7 @@ module PaperclipCompression
|
|
49
49
|
|
50
50
|
def command_path(command)
|
51
51
|
folder = if OS.osx?
|
52
|
-
'osx'
|
52
|
+
File.join('osx', catalina? ? '64bit' : '32bit')
|
53
53
|
elsif OS.linux?
|
54
54
|
File.join('linux', OS.bits.eql?(64) ? 'x64' : 'x86')
|
55
55
|
elsif OS.windows?
|
@@ -73,6 +73,11 @@ module PaperclipCompression
|
|
73
73
|
def copy_to_tempfile
|
74
74
|
FileUtils.cp(@src_path, @dst_path)
|
75
75
|
end
|
76
|
+
|
77
|
+
def catalina?
|
78
|
+
major = OS.host_os.match(/darwin(\d+)\./)[1].to_i
|
79
|
+
major >= 19
|
80
|
+
end
|
76
81
|
end
|
77
82
|
|
78
83
|
# Informs developers when a method is intended to be defined in # sub-classes.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-compression
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- İ. Emre Kutlu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|
@@ -104,8 +104,10 @@ files:
|
|
104
104
|
- bin/linux/x64/optipng
|
105
105
|
- bin/linux/x86/jpegtran
|
106
106
|
- bin/linux/x86/optipng
|
107
|
-
- bin/osx/jpegtran
|
108
|
-
- bin/osx/optipng
|
107
|
+
- bin/osx/32bit/jpegtran
|
108
|
+
- bin/osx/32bit/optipng
|
109
|
+
- bin/osx/64bit/jpegtran
|
110
|
+
- bin/osx/64bit/optipng
|
109
111
|
- bin/win32/jpegtran.exe
|
110
112
|
- bin/win32/libjpeg-62.dll
|
111
113
|
- bin/win32/optipng.exe
|