command_kit-completion 0.1.0 → 0.1.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: 3ed090b5e927e5c88118a00518943d89d5dc405896469291c0bcd50ec44ea243
4
- data.tar.gz: 3786b5ae7c7fa784ace3c2f173ce1b5121529674bbcb5899e45bf0bf5b6e79da
3
+ metadata.gz: 6343bf279d86678a0eac134a712bc744b35a94d6617cc7dea0e59320944045d6
4
+ data.tar.gz: cc386bf43b827a6519a3d8bea67e0d34814a3db32ce7d95bcfedcf8b191b07c7
5
5
  SHA512:
6
- metadata.gz: e23917b5fb372dfaeed9316015b0e7a21f7e748c8afa8d8737e82008c8c8a45c365ae97dbf093537766bd67ce30a61487e9d062744b77ad1fcf72cf177a9f7db
7
- data.tar.gz: 8de5d327ece13f2c287663a18c62859635f5dd13ae29c5052f405898cafbacc17c2619d27e7d3877492f86b285c18274b5916b7c2005f7b88a6475faf261ced4
6
+ metadata.gz: e82a669753b335696e1789ce4c5c6f2fba4927013b9595a04c7716a37d3c9442e803d0a6f1e6e1dadc0d47070a4d495b991bd91c87d32c8fa12637e75dd1a02f
7
+ data.tar.gz: 3369ee61c1735f75b5db0a3c99ed84eac634a242aabac0470d7b575c2e52e604351b7ee0c1fa592d5b176810976f4a7a1836670373de02a777a8ebdb297bcf17
data/ChangeLog.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### 0.1.2 / 2023-12-18
2
+
3
+ * Fix namespace conflict between `FileUtils` and `CommandKit::FileUtils`.
4
+
5
+ ### 0.1.1 / 2023-12-18
6
+
7
+ * Ensure that the parent directory of the output file exists before writing to
8
+ the output file.
9
+
1
10
  ### 0.1.0 / 2023-12-18
2
11
 
3
12
  * 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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern