cmt 0.0.2 → 0.0.4

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: d8a9562284819480fc462bedeca790f97c9583f8a100560b4cfcb64cfb5f7fbf
4
- data.tar.gz: fca40eb657310a8f824da003cb2126ee9798fbaf628d8fe11d2f28adc8b59043
3
+ metadata.gz: 1229896c4197b67c41c64fe2c898e620adfe16c3b7f1ce73c49895ad4932df2c
4
+ data.tar.gz: 1ed6a854c9fc5327e3886dd0146aaa25d3865e8ce340532a9fd499faa6a74fe0
5
5
  SHA512:
6
- metadata.gz: 5f8329b3f7b97400c08fc4f18effba5d7caa9ae5f38492b731712c2d8a9564bca66a6e6773e6d8827e1c2caa0a9b01992b712b660d221af0df1a6c59c3b9d5f2
7
- data.tar.gz: 6bd12d08de30bf9f0577bbef609627068a92350969a456ad56923436c7bcc29cf15831699a63805af70fcbeee80a7325af8a2de3b80108668e870ecefa499ed6
6
+ metadata.gz: c59e660257922f1249819a2ba04c67ca0c59d4333170745437cdd404e83ee088f75823dbc0422d2b901a085fc23a3d007c3a2bc57cacde642c30f3ed8cbe7fc1
7
+ data.tar.gz: d8c503eb326f7c57c302fca0565b78fe0e46203b4a295fe31a6cd2bfd770ac7534a8d0f26c47f6a4ea7f9f34f7521bf9df6593872d5e9fe7e525ff6609abcef9
@@ -60,4 +60,12 @@ class GitConfig < Thor
60
60
  system 'git', *args
61
61
  end
62
62
  end
63
+
64
+ desc "code", "Open '#{$CONFIG_DIR}' in code"
65
+ def code(*args)
66
+ $logger.info("Open '#{$CONFIG_DIR}' in code")
67
+ Dir.chdir($CONFIG_DIR) do
68
+ system 'code', '.', *args
69
+ end
70
+ end
63
71
  end
@@ -35,7 +35,7 @@ class PkgConfig
35
35
  end
36
36
 
37
37
  def self.get_config_file(pkgm)
38
- pkgm = pkgm.downcase
38
+ pkgm = pkgm.to_s.downcase
39
39
  File.join(ROOT_PATH, "#{pkgm}.json")
40
40
  end
41
41
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  # module Cmt
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.4".freeze
3
3
  # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - simon.schuster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor