imagetools 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/imagetools/imagefilter.rb +5 -2
- data/lib/imagetools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f730c14a7478df14386f50aeb978a3cb58f9e2c800c0f483c043b8edc80d0bc
|
4
|
+
data.tar.gz: 73664d7af84776da892acaea41d3c4c983971a4948828ae02e52a7406bdead98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de65041bf1503e972d7f4606c5257dc60ced6fd597416f513be651cff307ea45d888bed257d5b74506da391a6bbd88be08ab6560beb76746eb3f4dcf2a72c17c
|
7
|
+
data.tar.gz: 2e9911cdd9f4e0e33c6939a6358c2262a0fb7c626ebc68ee4d4f2811f8fa621c6bb6ad291651171564259d5308d8712a75f863b3d4a0e712ad0bb639fddb673c
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
imagetools (1.
|
4
|
+
imagetools (1.3.0)
|
5
5
|
rmagick (= 3.2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
minitest (5.14.
|
11
|
-
rake (13.0.
|
10
|
+
minitest (5.14.4)
|
11
|
+
rake (13.0.6)
|
12
12
|
rmagick (3.2.0)
|
13
13
|
|
14
14
|
PLATFORMS
|
@@ -21,4 +21,4 @@ DEPENDENCIES
|
|
21
21
|
rake (~> 13.0)
|
22
22
|
|
23
23
|
BUNDLED WITH
|
24
|
-
2.
|
24
|
+
2.1.4
|
@@ -44,7 +44,7 @@ module Imagetools
|
|
44
44
|
end
|
45
45
|
|
46
46
|
class Imagefilter
|
47
|
-
OTHER_JPG_SEARCH = /\.(large|huge|jpg_large)$/i
|
47
|
+
OTHER_JPG_SEARCH = /\.(large|huge|jpg_large|JPG)$/i
|
48
48
|
OTHER_JPG_REPLACE = '.jpg'
|
49
49
|
|
50
50
|
CONVERT_CMD = "convert"
|
@@ -200,7 +200,10 @@ EOM
|
|
200
200
|
dir = File.dirname(filepath)
|
201
201
|
topath = File.join(dir, toname)
|
202
202
|
puts "rename: #{filepath} => #{topath}"
|
203
|
-
FileUtils.mv(filepath, topath) unless @opts[:n]
|
203
|
+
# FileUtils.mv(filepath, topath, :force => true) unless @opts[:n]
|
204
|
+
# aaa.JPG => aaa.jpgを成功させるためにFIleUtils.mv(same fileエラーがでる)ではなくmvを使う
|
205
|
+
cmd = "mv #{filepath} #{topath}"
|
206
|
+
system(cmd)
|
204
207
|
return topath
|
205
208
|
end
|
206
209
|
|
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: 1.
|
4
|
+
version: 1.3.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: 2021-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|