public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-importmap-rails] rawhide: Update to Importmap for Rails 2.2.3
Date: Wed, 15 Jul 2026 12:08:46 GMT	[thread overview]
Message-ID: <178411732662.1.16541126533164868607.rpms-rubygem-importmap-rails-5b6953c3ac6c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rubygem-importmap-rails
Branch : rawhide
Commit : 5b6953c3ac6c1f064d6cc98ceb49f68934255893
Author : Vít Ondruch <vondruch@redhat.com>
Date   : 2026-07-15T12:32:27+02:00
Stats  : +29/-25 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-importmap-rails/c/5b6953c3ac6c1f064d6cc98ceb49f68934255893?branch=rawhide

Log:
Update to Importmap for Rails 2.2.3

---
diff --git a/.gitignore b/.gitignore
index 73e012a..47b8eed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 /importmap-rails-*.gem
-/importmap-rails-*-tests.txz
+/importmap-rails-*-tests.tar.gz

diff --git a/rubygem-importmap-rails.spec b/rubygem-importmap-rails.spec
index 3200cf0..6364c9c 100644
--- a/rubygem-importmap-rails.spec
+++ b/rubygem-importmap-rails.spec
@@ -2,30 +2,25 @@
 %global gem_name importmap-rails
 
 Name: rubygem-%{gem_name}
-Version: 1.0.3
-Release: 12%{?dist}
+Version: 2.2.3
+Release: 1%{?dist}
 Summary: Manage modern JavaScript in Rails without transpiling or bundling
 License: MIT
 URL: https://github.com/rails/importmap-rails
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# To get the test suite:
-# git clone https://github.com/rails/importmap-rails.git --no-checkout
-# git -C importmap-rails archive -v -o importmap-rails-1.0.3-tests.txz v1.0.3 test/
-Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz
+# git clone https://github.com/rails/importmap-rails.git
+# git -C importmap-rails archive -v -o importmap-rails-2.2.3-tests.tar.gz v2.2.3 test/
+Source1: %{gem_name}-%{version}%{?prerelease}-tests.tar.gz
 
-BuildRequires: ruby
 BuildRequires: ruby(release)
-# Used for sample app
+BuildRequires: rubygems-devel
+BuildRequires: ruby >= 3.1.0
 BuildRequires: rubygem(bundler)
 BuildRequires: rubygem(minitest-mock)
-BuildRequires: rubygem(mutex_m)
 BuildRequires: rubygem(rails)
 BuildRequires: rubygem(sqlite3)
-BuildRequires: rubygems-devel
+BuildRequires: rubygem(propshaft)
 BuildArch: noarch
-# Bundles ES Module Shims
-# app/assets/javascripts/es-module-shims.js
-Provides: bundled(es-module-shims) = 1.4.1
 
 %description
 Use ESM with importmap to manage modern JavaScript in Rails without
@@ -53,25 +48,31 @@ cp -a .%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
 %check
-pushd .%{gem_instdir}
-ln -s %{_builddir}/test
+( cd .%{gem_instdir}
+ln -s %{builddir}/test .
 
-echo 'gem "minitest-mock"' >> Gemfile
-echo 'gem "mutex_m"' >> Gemfile
+echo 'gem "propshaft"' >> Gemfile
 echo 'gem "rails"' >> Gemfile
 echo 'gem "sqlite3"' >> Gemfile
 
 # Test requires network access
 mv test/packager_integration_test.rb{,.disable}
+# NPM test requires network connecton.
+mv test/npm_integration_test.rb{,.disable}
+
 
 export BUNDLE_GEMFILE="$(pwd)/Gemfile"
 
-# Tests require building rails app (currently fails)
-echo > test/dummy/config/initializers/assets.rb
-mv test/importmap_test.rb{,.disable}
+# The `update` / `pin` commands needs network connection.
+sed -i '/def run_importmap_command/a \
+      skip if ["update", "pin"].include? command' test/commands_test.rb
 
-ruby -Ilib:test -rbundler -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
-popd
+# This relies too heavily on the original Gemfile and so on.
+mv test/installer_test.rb{,.disable}
+
+# The RUBYOPT is needed so `bin/importmaps` called by the test can properly load the library.
+RUBYOPT="-I$(pwd)/lib" ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
+)
 
 %files
 %dir %{gem_instdir}
@@ -87,6 +88,9 @@ popd
 %{gem_instdir}/Rakefile
 
 %changelog
+* Tue Jul 14 2026 Vít Ondruch <vondruch@redhat.com> - 2.2.3-1
+- Update to Importmap for Rails 2.2.3
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/sources b/sources
index 209bda3..d667d55 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (importmap-rails-1.0.3.gem) = df4c8495cb4bcf44d56ca6cdaca531b6dfb0f7f9affbd5275dcd491a8ee392ed8224991503cef48c45e6d82fa16e71e523f095dbd123b620c47bf46b2440b61f
-SHA512 (importmap-rails-1.0.3-tests.txz) = 67e0c5dbd96fd8c3404a969cc11525134a0037303736d17a5c6f6c7e2923749c0d9b7d551ae637230a9d6aeb915f148a775efdd1d49f90128a42a2bda52d2050
+SHA512 (importmap-rails-2.2.3-tests.tar.gz) = 9cda660707956c257a555201f292e58abc06adf86fefcc660d0aa9bf3ae6b07aa9d40ae36eb77276a0d7978f2f28060a6fe4bf2428be1ef93e959d18773bdaa1
+SHA512 (importmap-rails-2.2.3.gem) = a48acf6184d22b98c93c52ee4ab4bdf089475db87abaea87262ef893ece3c18a1cd7cf10ffd79df2d4b44f3827fcddbdb60be2b0fe20a8a1664f2a21def014af

                 reply	other threads:[~2026-07-15 12:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178411732662.1.16541126533164868607.rpms-rubygem-importmap-rails-5b6953c3ac6c@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox