claude-worktree 0.1.2 → 0.1.3

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: f2342da43b068cb108e2d46b17561cb7c277d050802922c5d58c81236fdd95ea
4
- data.tar.gz: 2469d5abc245c02f69308f9830376f4e07ea4df9f846a36adff8de026ad66e21
3
+ metadata.gz: 8f961f02caebcef789ed77e043a5390b49c50397e87d21588e74e0c17417a6da
4
+ data.tar.gz: 91657ce429ea01a43424da72d87f71f9964a8da7e419ebb07fe59c30269c3a6d
5
5
  SHA512:
6
- metadata.gz: 2e06fc2776a422bb7b697fa2fe0169532eb0b48e967904f88b100365fcb27dc4c77f696d17ecc96c1b485b2d0d2c03c7ded13ea1d0f1b3abf87853320a0767a1
7
- data.tar.gz: 228e29e43f2156e5767746a6e399a67ab60c8a75c7780ba6a9339df5ea7e1dd2253d0c013a4a0323660bfa9355140172c44e1dec1a953beda895c98e6168f413
6
+ metadata.gz: a0b74a2251dc6c8ff2101179ce96d87045a86198065a86a90f8c14e6da2f86a75377824a6388c68cd20ecdb2330c25dc962d35557cce8c66b318ea329a9a0aaa
7
+ data.tar.gz: eb1e06bd91998c652e2694a42c3ae664fd0052c90a0587a84f8fe1fc636d232dcbef6b91d55a04fd2d2efff6c5ade71cff4851479d304388c8303b918770a89e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Claude
4
4
  module Worktree
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: claude-worktree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Garcia
@@ -35,8 +35,6 @@ files:
35
35
  - CODE_OF_CONDUCT.md
36
36
  - LICENSE.txt
37
37
  - README.md
38
- - Rakefile
39
- - assets/demo.gif
40
38
  - exe/cwt
41
39
  - lib/claude/worktree.rb
42
40
  - lib/claude/worktree/version.rb
@@ -45,7 +43,6 @@ files:
45
43
  - lib/cwt/model.rb
46
44
  - lib/cwt/update.rb
47
45
  - lib/cwt/view.rb
48
- - scripts/setup_demo.rb
49
46
  - sig/claude/worktree.rbs
50
47
  homepage: https://github.com/bengarcia/claude-worktree
51
48
  licenses:
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "minitest/test_task"
5
-
6
- Minitest::TestTask.create
7
-
8
- task default: :test
data/assets/demo.gif DELETED
Binary file
@@ -1,70 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- require 'open3'
4
-
5
- # Configuration
6
- DEMO_DIR = "cwt_demo_repo"
7
- WORKTREES_DIR = ".worktrees"
8
-
9
- # Funny session names (The Prototyper's chaos)
10
- SESSIONS = [
11
- "feature/add-lasers-to-ui",
12
- "fix/undefined-is-not-a-function-again",
13
- "chore/upgrade-everything-yolo",
14
- "experiment/rewrite-in-assembly",
15
- "refactor/rename-all-variables-to-emoji",
16
- "feature/dark-mode-for-logs",
17
- "bug/why-is-production-down",
18
- "wip/ai-will-fix-it-eventually",
19
- ]
20
-
21
- def run(cmd)
22
- stdout, stderr, status = Open3.capture3(cmd)
23
- unless status.success?
24
- puts "Error running: #{cmd}"
25
- puts stderr
26
- exit 1
27
- end
28
- stdout
29
- end
30
-
31
- puts "šŸš€ Setting up CWT Demo Environment..."
32
-
33
- # 1. Create and Init Repo
34
- if Dir.exist?(DEMO_DIR)
35
- puts "Cleaning up old demo..."
36
- FileUtils.rm_rf(DEMO_DIR)
37
- end
38
- FileUtils.mkdir_p(DEMO_DIR)
39
- Dir.chdir(DEMO_DIR)
40
-
41
- puts "šŸ“¦ Initializing git repo..."
42
- run "git init"
43
- run "git config user.email 'demo@example.com'"
44
- run "git config user.name 'Demo User'"
45
- run "touch README.md"
46
- run "git add README.md"
47
- run "git commit -m 'Initial commit'"
48
-
49
- # 2. Create Worktrees
50
- puts "🌳 Spawning worktrees..."
51
- SESSIONS.each do |session|
52
- # Create branch and worktree
53
- path = File.join(WORKTREES_DIR, session.gsub('/', '-'))
54
- run "git worktree add -b #{session} #{path}"
55
-
56
- # Add some "dirty" state to random sessions
57
- if rand < 0.4
58
- puts " - Making #{session} dirty..."
59
- File.write(File.join(path, "dirty_file.txt"), "This is uncommitted work")
60
- end
61
- end
62
-
63
- # 3. Create a fake .env to show off symlinking
64
- File.write(".env", "SECRET_KEY=12345\nAPI_HOST=localhost:3000")
65
- File.write("node_modules", "fake_node_modules") # Just a file for demo
66
-
67
- puts "\n✨ Demo Ready!"
68
- puts "To run the demo:"
69
- puts " cd #{DEMO_DIR}"
70
- puts " cwt"