the_local 0.4.1 → 0.4.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/the_local/refresh.rb +9 -3
- data/lib/the_local/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffa6c578fdc23554713097c2d1d3479696d09418ea30819bcdb910d71cee63b4
|
|
4
|
+
data.tar.gz: 5d5b7317673ba621a3b99c2aec7a69c4454c082294719adda58772bd07bcb15f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e669bb47d57ff08efeb1423f2c51de85dcae55aef857fbd638c249a96a4bc879e79b56ef7369553e48e11bd1ced12bf50ef746ce1f2ff36c7d6474bcfa0e7fd7
|
|
7
|
+
data.tar.gz: 66496f8d666b5be048cee491da08e167e5c29b18df1ffeb7ea562d82044ebae799093986dbb33ea32628787f055ad463b3efb3d54312ff374494597848a870e2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.4.2] - 2026-10-10
|
|
2
|
+
|
|
3
|
+
- Installing inside a gem now installs the locals of the runtime dependencies
|
|
4
|
+
declared in its gemspec, so a dependency no longer has to be listed in the
|
|
5
|
+
Gemfile as well. A host app still installs locals only for the gems in its
|
|
6
|
+
own Gemfile.
|
|
7
|
+
|
|
1
8
|
## [0.4.1] - 2026-07-31
|
|
2
9
|
|
|
3
10
|
- Installing no longer appends a blank line to the host's `CLAUDE.md` on every
|
data/lib/the_local/refresh.rb
CHANGED
|
@@ -16,7 +16,7 @@ module TheLocal
|
|
|
16
16
|
Sync.new(
|
|
17
17
|
registry: TheLocal.registry,
|
|
18
18
|
destination: destination,
|
|
19
|
-
direct_dependencies: definition
|
|
19
|
+
direct_dependencies: direct_dependencies(definition, own_spec(definition, destination)),
|
|
20
20
|
bundled_gems: definition.specs.map(&:name)
|
|
21
21
|
).call
|
|
22
22
|
end
|
|
@@ -25,9 +25,15 @@ module TheLocal
|
|
|
25
25
|
definition.specs.map { |spec| { name: spec.name, path: spec.full_gem_path } }
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def self.
|
|
28
|
+
def self.direct_dependencies(definition, own_spec)
|
|
29
|
+
return definition.dependencies.map(&:name) unless own_spec
|
|
30
|
+
|
|
31
|
+
(definition.dependencies + own_spec.runtime_dependencies).map(&:name) - [own_spec.name]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.own_spec(definition, destination)
|
|
29
35
|
here = File.expand_path(destination)
|
|
30
|
-
definition.specs.find { |spec| File.expand_path(spec.full_gem_path) == here }
|
|
36
|
+
definition.specs.find { |spec| File.expand_path(spec.full_gem_path) == here }
|
|
31
37
|
end
|
|
32
38
|
end
|
|
33
39
|
end
|
data/lib/the_local/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: the_local
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tylercschneider
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: the_local lets any gem or app declare Claude Code subagents ("locals")
|
|
14
13
|
that know its conventions, and installs the aggregated set from every installed
|
|
@@ -89,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
88
|
- !ruby/object:Gem::Version
|
|
90
89
|
version: '0'
|
|
91
90
|
requirements: []
|
|
92
|
-
rubygems_version:
|
|
93
|
-
signing_key:
|
|
91
|
+
rubygems_version: 4.0.20
|
|
94
92
|
specification_version: 4
|
|
95
93
|
summary: Resident Claude Code expert subagents, contributed by the gems an app uses.
|
|
96
94
|
test_files: []
|