imagetools 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +4 -4
- data/imagetools.gemspec +1 -1
- data/lib/imagetools/imagefilter.rb +3 -2
- data/lib/imagetools/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ff1f2f85b91da3ff4348eebce3f2157c7d9f8216afee1c3c8a8264428a390a
|
4
|
+
data.tar.gz: 8905d951157a918fa7cdd83a33eaf9607423f722dc129bb3f33e888b25697a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35738982bdb2a55638a975b761973bb04118e80837e0f2850332e5c670ced1d3dd75f1a6079af452e1855d5897ba11b38dcce9f7d97c91e50d513f9fc8ea3dab
|
7
|
+
data.tar.gz: e4a5b065b76bf44e8ca52480a076364cf37c503d38964d54b9d682395293892243c6fb3d193560ef5c7323288977b87446d0ea879ba302064655dcf2d2cf6219
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
imagetools (0.
|
4
|
+
imagetools (0.8.0)
|
5
5
|
rmagick
|
6
6
|
|
7
7
|
GEM
|
@@ -9,16 +9,16 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
minitest (5.11.3)
|
11
11
|
rake (10.5.0)
|
12
|
-
rmagick (
|
12
|
+
rmagick (3.1.0)
|
13
13
|
|
14
14
|
PLATFORMS
|
15
15
|
ruby
|
16
16
|
|
17
17
|
DEPENDENCIES
|
18
|
-
bundler (~>
|
18
|
+
bundler (~> 2.0)
|
19
19
|
imagetools!
|
20
20
|
minitest (~> 5.0)
|
21
21
|
rake (~> 10.0)
|
22
22
|
|
23
23
|
BUNDLED WITH
|
24
|
-
|
24
|
+
2.0.1
|
data/imagetools.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
spec.add_dependency "rmagick"
|
33
|
-
spec.add_development_dependency "bundler", "~>
|
33
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
35
35
|
spec.add_development_dependency "minitest", "~> 5.0"
|
36
36
|
end
|
@@ -7,8 +7,8 @@ require 'optparse'
|
|
7
7
|
module Imagetools
|
8
8
|
class Imagefilter
|
9
9
|
|
10
|
-
SCREENSHOT_SEARCH = /s (\d+)-(\d+)-(\d+) (\d+)\.(\d+)\.(\d+)
|
11
|
-
SCREENSHOT_REPLACE = 's_\1\2\3_\4\5\6
|
10
|
+
SCREENSHOT_SEARCH = /s (\d+)-(\d+)-(\d+) (\d+)\.(\d+)\.(\d+)/
|
11
|
+
SCREENSHOT_REPLACE = 's_\1\2\3_\4\5\6'
|
12
12
|
RESIZE_CMD = "mogrify -resize 1280x\\> "
|
13
13
|
COMPRESS_CMD = "jpegoptim --strip-all --max=90 "
|
14
14
|
EXTERNAL_CMDS = [RESIZE_CMD, COMPRESS_CMD]
|
@@ -105,6 +105,7 @@ EOM
|
|
105
105
|
if exclude_image?(filepath)
|
106
106
|
return
|
107
107
|
end
|
108
|
+
|
108
109
|
filepath = rename_screenshot(filepath)
|
109
110
|
filepath = png2jpg(filepath)
|
110
111
|
filepath = resize_jpg(filepath)
|
data/lib/imagetools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagetools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
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: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.7.6
|
175
|
+
rubygems_version: 2.7.6.2
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Image Tools.
|