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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c99c7f1c03fdf84c8e5180e9f3fe740a4712d16843b05a68be93c6e5f8d084cf
4
- data.tar.gz: 0f54279ed111c33b424579dfdfe1d913cd9e1a0956ef906a1e24f28b4bf23151
3
+ metadata.gz: ffa6c578fdc23554713097c2d1d3479696d09418ea30819bcdb910d71cee63b4
4
+ data.tar.gz: 5d5b7317673ba621a3b99c2aec7a69c4454c082294719adda58772bd07bcb15f
5
5
  SHA512:
6
- metadata.gz: 65973e9cc66580978399dc2dfed03dbea10c3c76837c04f37dd82aa32adeb77a7c86e9141b38fa7ce3a451cdab1ea7baf779f9e144fdd063f247e17493a78f6b
7
- data.tar.gz: c717b4c90d5e9fc3e07c7efaab0a78dc529799f0d7d4592d49405342380a39ac8a3ed97c1cd3813c9df462073f3b45fbc946f94bd04b790d1f4e437a7a2f413d
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
@@ -16,7 +16,7 @@ module TheLocal
16
16
  Sync.new(
17
17
  registry: TheLocal.registry,
18
18
  destination: destination,
19
- direct_dependencies: definition.dependencies.map(&:name) - [own_gem_name(definition, destination)],
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.own_gem_name(definition, destination)
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 }&.name
36
+ definition.specs.find { |spec| File.expand_path(spec.full_gem_path) == here }
31
37
  end
32
38
  end
33
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheLocal
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
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.1
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: 2026-07-31 00:00:00.000000000 Z
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: 3.5.16
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: []