workspace-media 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/workspace-media.rb +1 -0
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24cc0fab5ef5f0caa89c87425db667a5ab04ab3b
4
- data.tar.gz: 586c20c00bf27a46166d02a25aeaae9899448374
3
+ metadata.gz: 20e69ff7c34b77de0a3971e35d30d81f021f9180
4
+ data.tar.gz: 2e6845f0ce8e4c66e39dc040277b036f9ca80af5
5
5
  SHA512:
6
- metadata.gz: 0f6cea9171f4865f8591f631a0b8c5ac70c31702c63f3151b92151f6ed9d014d324d440ead1656e42db4e6fc38649a2137a4fb6994d50cc0b2677442e74bb906
7
- data.tar.gz: 4bf460c8cbae3fda9e591d1b01db1ba670183e84a363b419c38e24877ae463fd349ab7fbf1416a4472bf8e464159710daf69e0a01e7787f4d4501006e449acd4
6
+ metadata.gz: b05e2a03ed7beb7ed5da41512f5f6b9ab5fd66eb5a61408466b618431ad0985f78492e5429906eb638217c8bdb094ed86fa9fdb6af1d1d2cd96223e8ac1e2d4a
7
+ data.tar.gz: 8392801fa0830d6a05272b2cb652b4a9a796d0813fc5f51da98dc56f083070c9144da606770ba4996b6cc6ecade3a97177f042b9c818569d61d89e99014e28f1
data/workspace-media.rb CHANGED
@@ -57,6 +57,7 @@ module Workspace
57
57
 
58
58
  def optimize!(image_max_width: nil, quality: 85, convert_jpg: true, optimize: true)
59
59
  return false if !exists? or !image?
60
+
60
61
  image = Magick::Image.read(to_s).first
61
62
  if !image_max_width.nil? and image.columns > image_max_width
62
63
  image.change_geometry!("#{image_max_width}>x") { |cols, rows, img| img.resize!(cols, rows) }
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspace-media
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-29 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: workspace
14
+ name: piet
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rmagick
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.16'
41
41
  - !ruby/object:Gem::Dependency
42
- name: piet
42
+ name: workspace
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.2'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.2'
54
+ version: '1.0'
55
55
  description: Workspace makes it a breeze to work with files and directories
56
56
  email:
57
57
  - tobias.strebitzer@magloft.com
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.0'
75
+ version: '2.3'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '2.4'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.6.10
83
+ rubygems_version: 2.5.2
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Workspace gem extension to allow transformation and optimization of media