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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfac86e4f981cac7a5315792851b00929b4d36d7d85ce42d3e09d6e9acfeb91b
4
- data.tar.gz: bc72a7079d91f6fa31503d9bf6ed04cc4fd82b078a5d53eb5c03b3cd450432d0
3
+ metadata.gz: 21ff1f2f85b91da3ff4348eebce3f2157c7d9f8216afee1c3c8a8264428a390a
4
+ data.tar.gz: 8905d951157a918fa7cdd83a33eaf9607423f722dc129bb3f33e888b25697a73
5
5
  SHA512:
6
- metadata.gz: 158b2146ff16f2db7185b409784c168a28a71df3ba2146e890c1a77185fecc6d41ac6ef8488f76984b701b3a06414a447e23f066c0f7071e34d5830c9ecfb934
7
- data.tar.gz: 9c43a8f7a4dedd66c6e4ca1a3be412e799cb2dde18c3ae7916899e114305009a154e506dddf7483603051a065450a8c86b119950a40c806e42db759367e127aa
6
+ metadata.gz: 35738982bdb2a55638a975b761973bb04118e80837e0f2850332e5c670ced1d3dd75f1a6079af452e1855d5897ba11b38dcce9f7d97c91e50d513f9fc8ea3dab
7
+ data.tar.gz: e4a5b065b76bf44e8ca52480a076364cf37c503d38964d54b9d682395293892243c6fb3d193560ef5c7323288977b87446d0ea879ba302064655dcf2d2cf6219
data/.gitignore CHANGED
@@ -8,3 +8,5 @@
8
8
  /tmp/
9
9
  /out/
10
10
  /vendor/
11
+ .DS_Store
12
+
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.5.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagetools (0.7.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 (2.16.0)
12
+ rmagick (3.1.0)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
16
16
 
17
17
  DEPENDENCIES
18
- bundler (~> 1.16)
18
+ bundler (~> 2.0)
19
19
  imagetools!
20
20
  minitest (~> 5.0)
21
21
  rake (~> 10.0)
22
22
 
23
23
  BUNDLED WITH
24
- 1.17.1
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", "~> 1.16"
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+).jpg/
11
- SCREENSHOT_REPLACE = 's_\1\2\3_\4\5\6.jpg'
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)
@@ -1,3 +1,3 @@
1
1
  module Imagetools
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.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: 2018-12-26 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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.