git-jump 0.1.0 → 0.1.1

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: 880531bf60be8fc8c6ec01873f77a37681d077384f7f7ad1f161a26b3644298c
4
- data.tar.gz: 427e6a3ca62fcf5f073dc14fc74cf9fb6bb2e6e066888d491ac5643c7a44d2c7
3
+ metadata.gz: dfb31c6068e94ef82538f0df322527fec4cd32b1458cf7dd2f62bba076b0371a
4
+ data.tar.gz: 46d4763ee56a9b588a96000980f32ec6f828185feaf83ec0ad3f6c5e9c683981
5
5
  SHA512:
6
- metadata.gz: bb3594881a0ec21a4e449ae69f4ce7650fc0938ee076aabfedf8b09ad9bbd6d20ee4db34582cf9c4db853a7e97d85a8ce9f3d2c663ab4d3ea81d1f28687115c2
7
- data.tar.gz: cd11e8e1ca1d54787e7ecc394ea6f4c8aaf409f0e135d68443e36816ce6bcd5e37a6c67a070c277ec6305582ece96954fbc2e4b626f5be4bc99979582b3aed4e
6
+ metadata.gz: 40ad5bdd5b4ba6f5dcbc9f6d51de60e8ebde83fdf58cd8296f95824e64a701be70af974029d9aeed1b3e5073ab2260a8b65a32c8a20cf376d34c560f4ac6fc83
7
+ data.tar.gz: 93927a1d2ea2ea154fc051cbef01a7f50926668557a8b083f76c18a942c43d0c87cb8d9c0708e499d4e1cfeb090e04a72fa2b046fe08e9b58e24b9ecb35dcd59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2025-11-16
4
+
5
+ ### Changed
6
+ - Replaced Thor with OptionParser for CLI parsing
7
+ - Reduced runtime dependencies from 4 to 3
8
+ - Improved CLI startup time by 56% (from ~1.6s to ~0.7s)
9
+ - Eliminated 296KB Thor gem dependency
10
+ - All commands and options remain fully functional
11
+
3
12
  ## [0.1.0] - 2025-11-03
4
13
 
5
14
  - Initial release
data/lib/git_jump/cli.rb CHANGED
@@ -12,13 +12,20 @@ module GitJump
12
12
  def run(argv)
13
13
  @global_options = { config: nil, quiet: false, verbose: false }
14
14
 
15
- if argv.empty?
16
- print_help
17
- exit(0)
18
- end
15
+ return print_help_and_exit if argv.empty?
19
16
 
20
17
  command = argv.shift
18
+ dispatch_command(command, argv)
19
+ end
20
+
21
+ private
21
22
 
23
+ def print_help_and_exit
24
+ print_help
25
+ exit(0)
26
+ end
27
+
28
+ def dispatch_command(command, argv)
22
29
  case command
23
30
  when "setup"
24
31
  setup_command(argv)
@@ -39,13 +46,15 @@ module GitJump
39
46
  when "help", "-h", "--help"
40
47
  print_help
41
48
  else
42
- warn "Unknown command: #{command}"
43
- warn "Run 'git-jump help' for usage information."
44
- exit(1)
49
+ handle_unknown_command(command)
45
50
  end
46
51
  end
47
52
 
48
- private
53
+ def handle_unknown_command(command)
54
+ warn "Unknown command: #{command}"
55
+ warn "Run 'git-jump help' for usage information."
56
+ exit(1)
57
+ end
49
58
 
50
59
  def setup_command(argv)
51
60
  parse_global_options(argv)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitJump
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-jump
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
  - David Sáenz