packrat-rails 0.3.0 → 0.3.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 +4 -4
- data/README.md +2 -1
- data/lib/generators/packrat/packrat_generator.rb +5 -3
- data/lib/packrat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca86ba095ca40693f44e3bada4d7e6e71ca2635a37ffdcb1a512cb3362987c8c
|
|
4
|
+
data.tar.gz: e036105e4aa2eac0a688e6beb05fb44321b05ecb7388e12fdc5c0aca120dc70e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '027381b226d874c0c6789aea42795698790e6dd995c8d67ba1551e3de79b9a283055dd8b67df38ce4ca57cc4e46cd827c3247be27e03870e412e9a33dc0afb31'
|
|
7
|
+
data.tar.gz: fbe00857f15e3aedc41db727dc22c5da574adddc1dfe648400fac289847f672c8f8707a50623d029b3250d08c8c477fa3fbed2346bfb2cfcd3d0bf59eb8b08ce
|
data/README.md
CHANGED
|
@@ -27,7 +27,8 @@ run the generator without `--ingest-key` and set `PACKRAT_INGEST_KEY` where the
|
|
|
27
27
|
|
|
28
28
|
The generator also turns on the [Packrat plugin for Claude Code](https://packrat.sh/docs/claude-code-plugin)
|
|
29
29
|
in `.claude/settings.json`. Commit the file, and everyone who opens Claude Code in the repository and
|
|
30
|
-
trusts the folder gets the plugin
|
|
30
|
+
trusts the folder gets the plugin, and Claude Code keeps it up to date (`"autoUpdate": true` on the
|
|
31
|
+
`packrat` marketplace). If the file exists, the generator adds the plugin and keeps the rest.
|
|
31
32
|
To leave the file alone, pass `--no-claude-code`.
|
|
32
33
|
|
|
33
34
|
To start with [strict privacy](#privacy), pass `--strict`.
|
|
@@ -18,7 +18,8 @@ module Packrat
|
|
|
18
18
|
desc: "Turn on the Packrat plugin for Claude Code in .claude/settings.json"
|
|
19
19
|
|
|
20
20
|
CLAUDE_SETTINGS = ".claude/settings.json"
|
|
21
|
-
|
|
21
|
+
# Claude Code leaves a marketplace that is not Anthropic's off auto-update, and says nothing when it has a newer plugin.
|
|
22
|
+
MARKETPLACE = { "source" => { "source" => "github", "repo" => "packratlabs/claude-plugin" }, "autoUpdate" => true }.freeze
|
|
22
23
|
PLUGIN = "packrat@packrat"
|
|
23
24
|
|
|
24
25
|
def create_initializer
|
|
@@ -26,7 +27,7 @@ module Packrat
|
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
# Everyone who opens Claude Code in the repository and trusts the folder gets the plugin. Other
|
|
29
|
-
# settings in the file are kept, and so is a plugin someone turned off on purpose.
|
|
30
|
+
# settings in the file are kept, and so is a plugin someone turned off on purpose, or auto-update turned off.
|
|
30
31
|
def enable_claude_code_plugin
|
|
31
32
|
return unless options[:claude_code]
|
|
32
33
|
|
|
@@ -59,7 +60,8 @@ module Packrat
|
|
|
59
60
|
|
|
60
61
|
def settings_json(settings)
|
|
61
62
|
settings = settings.dup
|
|
62
|
-
|
|
63
|
+
known = settings["extraKnownMarketplaces"] || {}
|
|
64
|
+
settings["extraKnownMarketplaces"] = known.merge("packrat" => MARKETPLACE.merge(known["packrat"] || {}))
|
|
63
65
|
settings["enabledPlugins"] = { PLUGIN => true }.merge(settings["enabledPlugins"] || {})
|
|
64
66
|
"#{JSON.pretty_generate(settings)}\n"
|
|
65
67
|
end
|
data/lib/packrat/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: packrat-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Packrat Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|