dragonfly_libvips 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eaa493a04d09a02fff56c6ed9a96d244453142d
4
- data.tar.gz: ffc53d69657496a3413d6937715f35a3e261225c
3
+ metadata.gz: f4ef687552f3cb12bb5041712cae2f352adf1f98
4
+ data.tar.gz: 84b500cd5199712c4442394198c81cee0185e598
5
5
  SHA512:
6
- metadata.gz: 6278072c36ef32d7a2b96167b79dec82d92382c41c3aa83586da2b9e4d682a1fd9fdcd82f132b5fc669cba9274d90a488c1c1edc2042df0f99ffb14e09d72545
7
- data.tar.gz: 44824ca4a8057952278319e75b84c79546fa41f226fcab7758e58367fcb2b7521433ce6aaf2b07b81f29367ab6d0f9a36746aab659de7ad91b1e52f6e629cd77
6
+ metadata.gz: d94b3e1790b2abcbd8b0ae25d82611be63ac84e0db693d5c0dad08750edc15ed9b0ca36c72d7c64e776d8ef3d07ec7ecb5b8e8a19766e2794c5c3668e01cbe04
7
+ data.tar.gz: a12964f782048554deac97cd274f54ad89d8eeee435d89bd05f9afe93744f6cd2aeb9f09e107e629e031046c2cf14bf7839ea71486e31e97245e80202a5419cb
@@ -5,8 +5,16 @@ module DragonflyLibvips
5
5
  vipsthumbnail_command = content.env[:vipsthumbnail_command] || 'vipsthumbnail'
6
6
  format = opts['format']
7
7
 
8
+ if input_args = opts['input_args']
9
+ input_args = "[#{input_args}]"
10
+ end
11
+
12
+ if output_args = opts['output_args']
13
+ output_args = "[#{output_args}]"
14
+ end
15
+
8
16
  content.shell_update ext: format do |old_path, new_path|
9
- "#{vipsthumbnail_command} #{old_path} -o #{new_path} #{args}"
17
+ "#{vipsthumbnail_command} #{old_path}#{input_args} -o #{new_path}#{output_args} #{args}"
10
18
  end
11
19
 
12
20
  if format
@@ -1,3 +1,3 @@
1
1
  module DragonflyLibvips
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly_libvips
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna