relaton-cli 1.15.0 → 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: e7479f58a241a95900e466b93b7a06de85b8fbd873abe772e0bf2df61d7ee495
4
- data.tar.gz: eb2079fe309bc8ea980bbafd429e2efbb7fa58a85c344e13cf72e8c9c0afb496
3
+ metadata.gz: 80ad3622150e550c62b07b8ee857064b5f70458ed7816dff686e8e5432d62fb9
4
+ data.tar.gz: 9496b7bdd788d6c8c04b531c348024174fdbd734ce1871375dc80c07131c43c0
5
5
  SHA512:
6
- metadata.gz: a58db7a08e33c2acf98015aeb907aba3179ff5624095f63e32a1965aa1ed33951d36caff5ae4d91b87a31b14c360ff2ad1815423fd2d125f96d927e66d8ce7fb
7
- data.tar.gz: 154f9a931bd0de3c8e3404fd432517eb506e6b5276cdc92a0e990fdb12e6058839b4febecd173a6ee889bee73a073d7cc62122950a55b785d48e66b890b4da9a
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.15.0".freeze
3
+ VERSION = "1.15.1".freeze
4
4
  end
5
5
  end
data/relaton-cli.gemspec CHANGED
@@ -35,7 +35,7 @@ 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"
38
+ spec.add_runtime_dependency "liquid", "~> 5"
39
39
  spec.add_runtime_dependency "relaton", "~> 1.15.0"
40
40
  spec.add_runtime_dependency "thor"
41
41
  spec.add_runtime_dependency "thor-hollaback"
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.15.0
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: 2023-02-04 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,14 +156,14 @@ 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