command_kit-completion 0.1.0 → 0.1.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: 3ed090b5e927e5c88118a00518943d89d5dc405896469291c0bcd50ec44ea243
4
- data.tar.gz: 3786b5ae7c7fa784ace3c2f173ce1b5121529674bbcb5899e45bf0bf5b6e79da
3
+ metadata.gz: 8d38eb48761e8c78265e4fe3de35b056a4b20a1c709ae92d1748b55bdaf26d78
4
+ data.tar.gz: 632bd4541f75fadeff3ecb7f754c865e387a2282c4329719e47fa628b049ebab
5
5
  SHA512:
6
- metadata.gz: e23917b5fb372dfaeed9316015b0e7a21f7e748c8afa8d8737e82008c8c8a45c365ae97dbf093537766bd67ce30a61487e9d062744b77ad1fcf72cf177a9f7db
7
- data.tar.gz: 8de5d327ece13f2c287663a18c62859635f5dd13ae29c5052f405898cafbacc17c2619d27e7d3877492f86b285c18274b5916b7c2005f7b88a6475faf261ced4
6
+ metadata.gz: 671fd188f0ba01c1a32bf02d3d06ed5e9fd2e9e78f7e055d0cde9f687bb732a1913bef999f9e15e2d8d29837db8e996ea40dd7e65891bad03e92440999ba2839
7
+ data.tar.gz: a4dd29acbf852ad3a746bb8ea47595a6b613ac8e12f407a1966165d3a3f86aadb7893295c743448574f12c9e417a7fef084845ceacac8f3782484fe33d7c1da6
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.1.1 / 2023-12-18
2
+
3
+ * Ensure that the parent directory of the output file exists before writing to
4
+ the output file.
5
+
1
6
  ### 0.1.0 / 2023-12-18
2
7
 
3
8
  * Initial release:
data/README.md CHANGED
@@ -31,6 +31,12 @@ CommandKit::Completion::Task.new(
31
31
  )
32
32
  ```
33
33
 
34
+ ## Synopsis
35
+
36
+ ```shell
37
+ rake command_kit:completion
38
+ ```
39
+
34
40
  ## Requirements
35
41
 
36
42
  * [Ruby] >= 3.0.0
@@ -6,6 +6,7 @@ require 'command_kit/options'
6
6
  require 'command_kit/commands'
7
7
  require 'completely'
8
8
  require 'yaml'
9
+ require 'fileutils'
9
10
 
10
11
  module CommandKit
11
12
  module Completion
@@ -89,6 +90,7 @@ module CommandKit
89
90
  completions.script
90
91
  end
91
92
 
93
+ FileUtils.mkdir_p(File.dirname(@output_file))
92
94
  File.write(@output_file,shell_script)
93
95
  end
94
96
 
@@ -3,6 +3,6 @@
3
3
  module CommandKit
4
4
  module Completion
5
5
  # command_kit-completion version
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command_kit-completion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern