imagetools 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76f5fa221bbd274c1ef8b9c54195abec9b2081b210355cf345ea7ea1dc047a35
4
- data.tar.gz: 4b59da67822eb56fbb35af75f9bf2fec12662147988b7a5f788231f8108ba305
3
+ metadata.gz: 0f730c14a7478df14386f50aeb978a3cb58f9e2c800c0f483c043b8edc80d0bc
4
+ data.tar.gz: 73664d7af84776da892acaea41d3c4c983971a4948828ae02e52a7406bdead98
5
5
  SHA512:
6
- metadata.gz: 12bfae8ed2f2b75d6d79180c15d50034a996d9c9492d0e4f495a0de615af2a76456e7bb0f5c073c3528aeb559f31777c4bce5c647ccd4a93964a4b69690b42b8
7
- data.tar.gz: ff5ef80f32291a7d9197e87ad000950e9136015e621735254d2d539c797e3f1c9b8680301610258388d473222a54110c8b68552ad8fb5a60d18f866806df124a
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.2.0)
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.0)
11
- rake (13.0.1)
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.0.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
 
@@ -1,3 +1,3 @@
1
1
  module Imagetools
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.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: 1.2.0
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: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick