coatepec 0.4.0 → 0.4.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: 503cdd08a244ae010df42c9698c214d4a1e916969bae0f96ddaa62dfed2c2157
4
- data.tar.gz: 54672230e5e1905f78f53d5614be4dccbcf0b5a9392fd3d0caae22dcf7d8c719
3
+ metadata.gz: c0db2635670e0fdfe695b2ba6b7fa8ffb6d1aa0400adf39eaee7bfc567e1c810
4
+ data.tar.gz: a236a2a6a096632f35d1442fad90656f3606389593b05baec61ad0c9dcbdf7ea
5
5
  SHA512:
6
- metadata.gz: f33a3b662004ab4aaba6d80ade9176952c90730ebe44a009f4f3443db5888c56b7fd8094b87c17b7be8a29519f7f067c2c6efcdb796249a4da3bc81945b236af
7
- data.tar.gz: 8bfe0dccc1861c8b8923a8e049898ad8ead99da9febc5b85274914dad61ac52f06c3d5726e14d05b097e425e9a6c98eba1e3bca3bc98a51b6ea1227fb4b96bf7
6
+ metadata.gz: 7cff582a4b6aa94543265820d79f28769e1a5f5cca3b121f68ce8493d6a08c6f472628e6a81ff15f69f75d9b1f547233010957264fadd86cb554c86d54796b74
7
+ data.tar.gz: 79e09341a8ae0780da47ec7ab12953fea0cb8eb912f18582e6c21c27f99161b1d1cd1f6881c4f8029c4611deab6df3b8193bd56a902bcc651a50e408b06f421e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ - Fix `exe/coatepec-worker` booting against a target app whose locally
6
+ installed default-gem versions (e.g. `json`) differ from what its
7
+ `Gemfile.lock` pins: `require "bundler/setup"` now runs before
8
+ `require "coatepec"` itself, so Bundler can pin default gems before
9
+ Ruby auto-activates a newer locally installed version and locks it in
10
+ for the rest of the process. Previously this broke every coatepec call
11
+ against such an app with `already activated X, but your Gemfile
12
+ requires Y`.
13
+
3
14
  ## 0.4.0
4
15
 
5
16
  - Add `enums` to `rails_model`'s output, sourced from ActiveRecord's own
data/exe/coatepec-worker CHANGED
@@ -1,6 +1,20 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
+ # Must run before any other require, including "coatepec" itself. Ruby
5
+ # auto-activates the newest installed version of a default gem (json,
6
+ # among others) the moment anything requires it, and a gem version can't
7
+ # be changed once activated -- so if that happens before Bundler pins
8
+ # versions to what the target app's Gemfile.lock actually specifies,
9
+ # Bundler.setup then fails with "already activated X, but your Gemfile
10
+ # requires Y" for any default gem that happens to have a newer version
11
+ # installed locally than what's locked. require "coatepec" below pulls in
12
+ # "json" (via protocol.rb) as its very first transitive require, so it's
13
+ # exactly the kind of require this has to run ahead of.
14
+ # Worker::Client#spawn_worker already sets BUNDLE_GEMFILE to the target
15
+ # app's Gemfile before this process starts.
16
+ require "bundler/setup"
17
+
4
18
  require "coatepec"
5
19
 
6
20
  # Preserve a real handle to the OS stdout fd for the private NDJSON
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coatepec
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coatepec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Mogollan
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-08-02 00:00:00.000000000 Z
10
+ date: 2026-08-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: mcp