smp_tool-cli 0.2.1 → 0.2.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: 3149aa9dc1f632c851d3eb26f0a7789a793915fade6999067efa2869b2190e38
4
- data.tar.gz: 71b57cabecc20c1a3ef3f45f69a44a908349ee3a91783d54f911a42c3c10f58a
3
+ metadata.gz: adad055504c98f44f46fe53874716c77d1a568b71e38900a21a06840468cff02
4
+ data.tar.gz: e1ea094b6e8fb72e20c7d2319179917d15db6b1107fdb77a59a2270f11eda2aa
5
5
  SHA512:
6
- metadata.gz: e558d4ce08db06194481a202b21e42b9e350a346f4c0819dfa493d25e1b06dbf3ed3ce83934c6aff390210d81465c8a3e3f37bde6ede2079cd1fa87f859d3efe
7
- data.tar.gz: 60fca9c7337d7934b8b8f9270d8e9db3cdd57b2fe04eb48f133b91a2564cfb75cbe935a16597c17ffe9c5f13fca47dc0f933002ed5cafbf2f340807162832099
6
+ metadata.gz: badab3dbd9301537f6125e403985e1a416d7ce6b878238ae9c9c8436ba4bf5443359024cdd1ca7b8668a40f3044f670218dd7bb78ccfe8e1df23a0eb0ed16c2b
7
+ data.tar.gz: 2f893c57d253516e3ba72ba75e2042ba94d5c4faa1ff4e91eedd9f01a065755cef99a09b0309d7e8da897f980dc83fad9e918dccf055c806501482ee62a631ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.2.2] - 2024-03-18
2
+
3
+ * bug fix: directory creation
4
+
1
5
  ## [0.2.1] - 2024-03-18
2
6
 
3
7
  * bug fix: file read/write on MS Windows
@@ -47,6 +47,7 @@ module SMPTool
47
47
  # @param [Object] bin_obj
48
48
  #
49
49
  def _write_bin_file(path, bin_obj)
50
+ Dry::Files.new.mkdir_p(path)
50
51
  File.open(path, "wb") { |file| bin_obj.write(file) }
51
52
  end
52
53
  end
@@ -17,6 +17,8 @@ module SMPTool
17
17
  def _output(f_arr)
18
18
  dry_files = Dry::Files.new
19
19
 
20
+ dry_files.mkdir(@options[:dir])
21
+
20
22
  f_arr.each do |f|
21
23
  path = dry_files.join(@options[:dir], _filter_filename(f.filename))
22
24
  _save_file(path, f)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SMPTool
4
4
  module CLI
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smp_tool-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 8bit-m8