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 +4 -4
- data/lib/claude/worktree/version.rb +1 -1
- metadata +1 -4
- data/Rakefile +0 -8
- data/assets/demo.gif +0 -0
- data/scripts/setup_demo.rb +0 -70
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f961f02caebcef789ed77e043a5390b49c50397e87d21588e74e0c17417a6da
|
|
4
|
+
data.tar.gz: 91657ce429ea01a43424da72d87f71f9964a8da7e419ebb07fe59c30269c3a6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0b74a2251dc6c8ff2101179ce96d87045a86198065a86a90f8c14e6da2f86a75377824a6388c68cd20ecdb2330c25dc962d35557cce8c66b318ea329a9a0aaa
|
|
7
|
+
data.tar.gz: eb1e06bd91998c652e2694a42c3ae664fd0052c90a0587a84f8fe1fc636d232dcbef6b91d55a04fd2d2efff6c5ade71cff4851479d304388c8303b918770a89e
|
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.
|
|
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
data/assets/demo.gif
DELETED
|
Binary file
|
data/scripts/setup_demo.rb
DELETED
|
@@ -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"
|