From 60ba4df45785aaf4caba1f44c1adf62a84bb825c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Sep 2026 02:19:44 +0000 Subject: [PATCH] Depend on ember-cli-rails 1.x The helpers call `EmberCli::App#vite?`, `#startup_tags`, `#javascript_assets` and `#stylesheet_assets`, which no published release exposes, and every release up to 0.14.2 depends on this gem in turn, which Bundler refuses to resolve. `1.0.0` is the release that both adds those readers and drops that dependency, so require it, and stop short of the next major release, which is free to change what the helpers read. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- README.md | 2 +- ember-cli-rails-assets.gemspec | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3181fc..702e9c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ main ------ * Render what `ember-cli-rails` reports about a built application instead of deriving it here. This removes `EmberCli::Assets::Paths`, `EmberCli::Assets::Lookup`, `EmberCli::Assets::AssetMap`, `EmberCli::Assets::DirectoryAssetMap` and `EmberCli::Assets::Url`, and a missing or unresolvable asset now raises `EmberCli::BuildError` rather than `EmberCli::Assets::BuildError` -* Declare the dependency on `ember-cli-rails`, which the helpers have always needed at runtime. `ember-cli-rails` no longer depends on this gem, so an application that renders the helpers adds both to its `Gemfile` +* Declare the dependency on `ember-cli-rails` 1.x, which the helpers have always needed at runtime. `ember-cli-rails` no longer depends on this gem, so an application that renders the helpers adds both to its `Gemfile` 0.9.2 ------ diff --git a/README.md b/README.md index 4ef6643..80f2e4f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ $ bundle install ``` The helpers render what [`ember-cli-rails`][ember-cli-rails] reports about a -built application, so they require the release of it that reports that. +built application, so they require `ember-cli-rails` 1.x. ## Setup diff --git a/ember-cli-rails-assets.gemspec b/ember-cli-rails-assets.gemspec index 227d02d..cf364b0 100644 --- a/ember-cli-rails-assets.gemspec +++ b/ember-cli-rails-assets.gemspec @@ -16,8 +16,5 @@ Gem::Specification.new do |s| s.files = Dir["{app,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"] - # The helpers render what ember-cli-rails reports about a built application. - # Constrain this to the release that reports it once that release is - # published. - s.add_dependency "ember-cli-rails" + s.add_dependency "ember-cli-rails", "~> 1.0" end