twenty-cli 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1380e3c739f1a0bcc6c283d2c322c03c0db423f72db9ebbc8c6953bfb53d703
4
- data.tar.gz: edff147dee77f5402313fa24d24408019615ddf7d761de0a2020ad85d1d977c3
3
+ metadata.gz: '08816071c7fdf13b9fa30368166faed5b81068e40a4d3ab61b1dc6415b792abd'
4
+ data.tar.gz: 2d80a0d01150117f75b1d4fdddb33c0e9cb2f1883f4e9e515040f64b5ea6ecba
5
5
  SHA512:
6
- metadata.gz: bcd4ef4cacfd3f3b159e88609fb69f569722130354eaf4fa0acaec4a8db116a63db9fc5808b155c60278ec5e6c370833d79bdcfdcfc5033f20961e08218fdaab
7
- data.tar.gz: fc367f2389e2931337d9b9f9c31de3ff39d9335c9a05ab6fe08bd1f82160c24cb27938c8bdc2f7daab2614fa1babe6c8caf7bc7ffd64c5589e5ad9113481a53b
6
+ metadata.gz: 8ab048a4537e3fae04a81e786d942c7f3aae0a01f6f58a9b11a3bf0d88236815440cce89fbd99a51229d3ca2dac1c876acb01d0a62eb0258d4e06d5d19ea9f9c
7
+ data.tar.gz: bbdd4d0d283ddb6c76bed8c18dabb12782adb2c84aa96e8129241805f3e458f60d642fa5ac9110208d5523c2d1b9bead7bc70a183dcc087dc17628f8cce122db
@@ -17,7 +17,7 @@ class Twenty::Command::Connect < Twenty::Command
17
17
  private
18
18
 
19
19
  def run_command(options)
20
- path = options.path ? File.expand_path(options.path) : Dir.getwd
20
+ path = File.realpath(options.path ? options.path : Dir.getwd)
21
21
  if File.exist?(path)
22
22
  project = Twenty::Project.create(
23
23
  name: File.basename(path),
@@ -16,7 +16,7 @@ class Twenty::Command::Disconnect < Twenty::Command
16
16
  private
17
17
 
18
18
  def run_command(options)
19
- path = options.path ? File.expand_path(options.path) : Dir.getwd
19
+ path = File.reapath(options.path ? options.path : Dir.getwd)
20
20
  Twenty::Project
21
21
  .where(path:)
22
22
  .first!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twenty-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-26 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmd.rb