islandjs-rails 0.3.0 → 0.4.0

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: 80cf07099fd7b856ce591b2307d517d97660dd2b4fadbcbc277985a08a719699
4
- data.tar.gz: 07a42108fc92d6a21f65e2c3b6149ec61af7cfc08f85ea15efc86cb519c07551
3
+ metadata.gz: 3efc622c722a226faf6ab715f92302e3476aa46be3c186dabd7ec8e51cf49166
4
+ data.tar.gz: 5c6fa3546df97f4c8430e6b9c06b320a6cd06432b6493025bc05a5c4242f88e9
5
5
  SHA512:
6
- metadata.gz: e33bfd8d2c20f5f84ab296c6745bcbcdd942b7a81575d484ed5ebe724fc693707033a5cdd72d2b2aad52bba55eca73ff30d7e81227f94d740088e8e7c703e604
7
- data.tar.gz: bdbfd552e3934c08e1ebfce0cca422cc065affafc61adb46b21c57c63c1c645198a354ee41ff0ffd9938f6a6bdd248f96ba32928f5015d997f9dd91899314a39
6
+ metadata.gz: ec382c1d892648a353afed3dec2420b895bf14eae349f3b4a2877aade87bcf8dd2954f3bf1715aa93c6e9fd1f4b3ffed2089c86c356957b0b830aca71387fa03
7
+ data.tar.gz: 6fd2a2440a750bf0b284452b6faf5835d6a5635e5fef7e4213eb439d77ae95d7667e934eec36e5ff077ea7f1e58d9fbe2d60c140d49ec3c795eae7fe429fe9ad
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.0] - 2025-08-10
9
+
10
+ ### Added
11
+ - Add ENV flag to control the dev UMD bundle info footer. The floating footer is now disabled by default and only shows in development when `ISLANDJS_RAILS_SHOW_UMD_DEBUG` is truthy.
12
+
8
13
  ## [0.3.0] - 2025-08-09
9
14
 
10
15
  ### Added
@@ -5,7 +5,7 @@ module IslandjsRails
5
5
  output = []
6
6
  output << island_partials # Now uses vendor UMD partial
7
7
  output << island_bundle_script
8
- output << umd_versions_debug if Rails.env.development?
8
+ output << umd_versions_debug if umd_debug_enabled?
9
9
  output.compact.join("\n").html_safe
10
10
  end
11
11
 
@@ -181,7 +181,7 @@ module IslandjsRails
181
181
 
182
182
  # Legacy UMD helper methods for backward compatibility with tests
183
183
  def umd_versions_debug
184
- return unless Rails.env.development?
184
+ return unless umd_debug_enabled?
185
185
 
186
186
  begin
187
187
  installed = IslandjsRails.core.send(:installed_packages)
@@ -237,6 +237,16 @@ module IslandjsRails
237
237
 
238
238
  private
239
239
 
240
+ # Whether the floating UMD versions debug footer should render
241
+ def umd_debug_enabled?
242
+ return false unless Rails.env.development?
243
+
244
+ env_value = ENV['ISLANDJS_RAILS_SHOW_UMD_DEBUG']
245
+ return false if env_value.nil?
246
+
247
+ %w[1 true yes on].include?(env_value.to_s.strip.downcase)
248
+ end
249
+
240
250
  # Find the bundle file path (with manifest support)
241
251
  def find_bundle_path
242
252
  # Try manifest first (production)
@@ -1,3 +1,3 @@
1
1
  module IslandjsRails
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: islandjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Arnold