relaton-cli 1.15.0 → 1.15.2

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: 60a5cab8f89618d327bdf12dfc09d787fbaff5286ef6b61639a9b402f108c192
4
+ data.tar.gz: 34cda184e5665bdb1c4898f186b2ef81a41703941b1b83e6b337c48a2c54683a
5
5
  SHA512:
6
- metadata.gz: a58db7a08e33c2acf98015aeb907aba3179ff5624095f63e32a1965aa1ed33951d36caff5ae4d91b87a31b14c360ff2ad1815423fd2d125f96d927e66d8ce7fb
7
- data.tar.gz: 154f9a931bd0de3c8e3404fd432517eb506e6b5276cdc92a0e990fdb12e6058839b4febecd173a6ee889bee73a073d7cc62122950a55b785d48e66b890b4da9a
6
+ metadata.gz: 3ebfbac95794d111b76022ec507be96002b925dd74e896e073d96f915eb294082c494e3582d974af01ca52158ee0fe1b0372dc6748d837a829e073b8de2d5f23
7
+ data.tar.gz: 80ead81db9a8393a615817828139488fc91189a2c2423a260690d2fe31379aa21138629f8d857781c62dcb5df86c50cd763f097b10fc2f222e88072133982476
data/Gemfile CHANGED
@@ -2,3 +2,9 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in gemspec
4
4
  gemspec
5
+
6
+ gem "pry"
7
+ gem "rake"
8
+ gem "simplecov"
9
+ gem "vcr"
10
+ gem "webmock"
@@ -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.2".freeze
4
4
  end
5
5
  end
data/relaton-cli.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Ribose Inc."]
9
9
  spec.email = ["open.source@ribose.com"]
10
10
 
11
- spec.summary = %q{Relaton Command-line Interface}
12
- spec.description = %q{Relaton Command-line Interface}
11
+ spec.summary = "Relaton Command-line Interface"
12
+ spec.description = "Relaton Command-line Interface"
13
13
  spec.homepage = "https://github.com/metanorma/relaton-cli"
14
14
  spec.license = "BSD-2-Clause"
15
15
 
@@ -23,20 +23,13 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = ">= 2.6.0"
24
24
 
25
25
  spec.add_development_dependency "byebug", "~> 11.0"
26
- # spec.add_development_dependency "debase"
27
26
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
28
- spec.add_development_dependency "pry"
29
- spec.add_development_dependency "rake"
30
27
  spec.add_development_dependency "rspec", "~> 3.0"
31
28
  spec.add_development_dependency "rspec-command", "~> 1.0.3"
32
29
  spec.add_development_dependency "rspec-core", "~> 3.4"
33
- # spec.add_development_dependency "ruby-debug-ide"
34
- spec.add_development_dependency "simplecov"
35
- spec.add_development_dependency "vcr"
36
- spec.add_development_dependency "webmock"
37
30
 
38
- spec.add_runtime_dependency "liquid", "~> 4"
39
- spec.add_runtime_dependency "relaton", "~> 1.15.0"
31
+ spec.add_runtime_dependency "liquid", "~> 5"
32
+ spec.add_runtime_dependency "relaton", "~> 1.15.1"
40
33
  spec.add_runtime_dependency "thor"
41
34
  spec.add_runtime_dependency "thor-hollaback"
42
35
  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.15.0
4
+ version: 1.15.2
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-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.6'
41
- - !ruby/object:Gem::Dependency
42
- name: pry
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: rspec
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,76 +80,34 @@ dependencies:
108
80
  - - "~>"
109
81
  - !ruby/object:Gem::Version
110
82
  version: '3.4'
111
- - !ruby/object:Gem::Dependency
112
- name: simplecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: vcr
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: webmock
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
83
  - !ruby/object:Gem::Dependency
154
84
  name: liquid
155
85
  requirement: !ruby/object:Gem::Requirement
156
86
  requirements:
157
87
  - - "~>"
158
88
  - !ruby/object:Gem::Version
159
- version: '4'
89
+ version: '5'
160
90
  type: :runtime
161
91
  prerelease: false
162
92
  version_requirements: !ruby/object:Gem::Requirement
163
93
  requirements:
164
94
  - - "~>"
165
95
  - !ruby/object:Gem::Version
166
- version: '4'
96
+ version: '5'
167
97
  - !ruby/object:Gem::Dependency
168
98
  name: relaton
169
99
  requirement: !ruby/object:Gem::Requirement
170
100
  requirements:
171
101
  - - "~>"
172
102
  - !ruby/object:Gem::Version
173
- version: 1.15.0
103
+ version: 1.15.1
174
104
  type: :runtime
175
105
  prerelease: false
176
106
  version_requirements: !ruby/object:Gem::Requirement
177
107
  requirements:
178
108
  - - "~>"
179
109
  - !ruby/object:Gem::Version
180
- version: 1.15.0
110
+ version: 1.15.1
181
111
  - !ruby/object:Gem::Dependency
182
112
  name: thor
183
113
  requirement: !ruby/object:Gem::Requirement