workspace-media 1.0.12 → 2.0.0

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 +5 -5
  2. data/workspace-media.rb +1 -0
  3. metadata +15 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 24cc0fab5ef5f0caa89c87425db667a5ab04ab3b
4
- data.tar.gz: 586c20c00bf27a46166d02a25aeaae9899448374
2
+ SHA256:
3
+ metadata.gz: a89a2c4ec5ad5060163cead9e3612c2c727e76fee2d5d1221fba6eb7fa7bacfd
4
+ data.tar.gz: 55a3220d841cb5b5fe39db0b329b00bb214e5776f7d7abd965856df347ba8681
5
5
  SHA512:
6
- metadata.gz: 0f6cea9171f4865f8591f631a0b8c5ac70c31702c63f3151b92151f6ed9d014d324d440ead1656e42db4e6fc38649a2137a4fb6994d50cc0b2677442e74bb906
7
- data.tar.gz: 4bf460c8cbae3fda9e591d1b01db1ba670183e84a363b419c38e24877ae463fd349ab7fbf1416a4472bf8e464159710daf69e0a01e7787f4d4501006e449acd4
6
+ metadata.gz: 5ebd755a4b79df7f21d71e13161043de9ddcfbc7b2204fee2f756d367206b84a1d67af69dca77d0c26c58bb71f7e74b87d181351c9a7594ac7948bd687ae4079
7
+ data.tar.gz: e7f0eb8a9abc2876b1a816f98cf89c49e92172d94625cf7117eeafd423e4669df690356ee9cd33d017767ea7bf781d83e293070abcb915ac651d4cb962c16344
@@ -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,57 +1,57 @@
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: 2.0.0
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: 2020-07-19 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
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.16'
33
+ version: '3.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.16'
40
+ version: '3.1'
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
@@ -70,17 +70,16 @@ require_paths:
70
70
  - "."
71
71
  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.4'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - "~>"
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: '2.4'
80
+ version: '0'
81
81
  requirements: []
82
- rubyforge_project:
83
- rubygems_version: 2.6.10
82
+ rubygems_version: 3.1.2
84
83
  signing_key:
85
84
  specification_version: 4
86
85
  summary: Workspace gem extension to allow transformation and optimization of media