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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dacc657349179f650885694deae7f7179881340b7bebb842877477397dd82687
4
- data.tar.gz: 896e1e50581d8347e755f7510d3108574fd6fd51a08fab28573ca97d0f707687
3
+ metadata.gz: 9c21a07b5d979cd091a90a29e3460526519cc47622102cd528541fc86d8ff9ff
4
+ data.tar.gz: 7ece060d75568180c8d6f7ae5996c994b9c0932e1fa2614843e3b2977310595b
5
5
  SHA512:
6
- metadata.gz: a708bd3fe03e1476d1a6dbbcab252af4b57053fb273f232d43e0d194054e538c42ce64473ff427bee2e419d9f86fa8a053041b210b97882b3b73642efd2e4125
7
- data.tar.gz: 8fa0116b5949dfe223e3f715dba221b18f390009aa5b36ea7c3207a6735cb32568f34afdbaff3e6cb993317684b124abaf1dce6da9d50f9aa29b2b02a1a6088f
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.2
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: 2019-10-14 00:00:00.000000000 Z
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