relaton-cli 1.14.1 → 1.15.1

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: 2ce962bd33e29dc88c310af3cf05bccd843c57a8b729f1579d3d965cf221ce37
4
- data.tar.gz: e3168dee95d3efe4ac61678ec2fa29b8a073d19a44a97958c0043bf3047e43e4
3
+ metadata.gz: 80ad3622150e550c62b07b8ee857064b5f70458ed7816dff686e8e5432d62fb9
4
+ data.tar.gz: 9496b7bdd788d6c8c04b531c348024174fdbd734ce1871375dc80c07131c43c0
5
5
  SHA512:
6
- metadata.gz: 6c46aba4bfd39f2006b69634dad27bc434ef669cfca55f831a2fa75de5b62a50d67a96fb514be124931a8e8fe3004027e506a01efa70aceccee503501f2f910d
7
- data.tar.gz: b670592e721a5b98e077dcb49c3f0fa3c22c1984246fea09541c713a2888a283bd88ddc2d26c499398cadc86dc10c294b6ba81814a8286e613065e8133490e56
6
+ metadata.gz: 296915977cf46838689006fcd68b1d04d4a71659af1c81552846b92b3ea573e7c9f36d9cb93b0812dcfa1b0514475be03238b8e05be88d85fc935d34e447922e
7
+ data.tar.gz: 9a2e9abff86487398a72faa1bc6069928531887da0e4a2defa0cc0cf336ee616eee71cf6b3fa26f996a3cd347e52c84e47a39964f37f50ae7de19c83067c4386
@@ -83,7 +83,7 @@ module Relaton
83
83
  def write_to_a_file(content, outfile = nil)
84
84
  outfile ||= Pathname.new(file).sub_ext(extension).to_s
85
85
 
86
- if !File.exists?(outfile) || overwrite
86
+ if !File.exist?(outfile) || overwrite
87
87
  File.open(outfile, "w:utf-8") do |file|
88
88
  file.write(content)
89
89
  end
@@ -252,7 +252,7 @@ module Relaton
252
252
  def build_dirname(filename)
253
253
  basename = File.basename(filename)&.gsub(/.(xml|rxl)/, "")
254
254
  directory_name = sanitize_string(basename)
255
- Dir.mkdir(directory_name) unless File.exists?(directory_name)
255
+ FileUtils.mkdir_p(directory_name) # unless File.exists?(directory_name)
256
256
 
257
257
  directory_name
258
258
  end
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Cli
3
- VERSION = "1.14.1".freeze
3
+ VERSION = "1.15.1".freeze
4
4
  end
5
5
  end
data/relaton-cli.gemspec CHANGED
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "vcr"
36
36
  spec.add_development_dependency "webmock"
37
37
 
38
- spec.add_runtime_dependency "liquid", "~> 4"
39
- spec.add_runtime_dependency "relaton", "~> 1.14.0"
38
+ spec.add_runtime_dependency "liquid", "~> 5"
39
+ spec.add_runtime_dependency "relaton", "~> 1.15.0"
40
40
  spec.add_runtime_dependency "thor"
41
41
  spec.add_runtime_dependency "thor-hollaback"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -156,28 +156,28 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '4'
159
+ version: '5'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '4'
166
+ version: '5'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: relaton
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.14.0
173
+ version: 1.15.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.14.0
180
+ version: 1.15.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: thor
183
183
  requirement: !ruby/object:Gem::Requirement