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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d0517644891d1ef5faed2448e36d24f1f496a0fbd834cff6ec69187671d1b78
4
- data.tar.gz: 7d7222c6849bf4b7020d25ce09aae5e8309fa1d807fb102183ea485bca2ed6a4
3
+ metadata.gz: ca86ba095ca40693f44e3bada4d7e6e71ca2635a37ffdcb1a512cb3362987c8c
4
+ data.tar.gz: e036105e4aa2eac0a688e6beb05fb44321b05ecb7388e12fdc5c0aca120dc70e
5
5
  SHA512:
6
- metadata.gz: cddd52f93532330674451fe218530ed85c56c025f9823a98efd5b7af111a51395ce0480cf98a2e3de2da690f3e88aa2c11e758e6036259de2c9f14b2ed2c01c6
7
- data.tar.gz: 96695d0e66c9f90995b2674fb90ded64e10095dd0be9ce1260fb22bdc6d7ef620c3bf1db97880ed9f4a06d16b38440e16877d6026fb17753f46b506db395a883
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. If the file exists, the generator adds the plugin and keeps the rest.
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
- MARKETPLACE = { "source" => { "source" => "github", "repo" => "packratlabs/claude-plugin" } }.freeze
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
- settings["extraKnownMarketplaces"] = { "packrat" => MARKETPLACE }.merge(settings["extraKnownMarketplaces"] || {})
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
@@ -1,3 +1,3 @@
1
1
  module Packrat
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2026-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties