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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/islandjs_rails/rails_helpers.rb +12 -2
- data/lib/islandjs_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3efc622c722a226faf6ab715f92302e3476aa46be3c186dabd7ec8e51cf49166
|
4
|
+
data.tar.gz: 5c6fa3546df97f4c8430e6b9c06b320a6cd06432b6493025bc05a5c4242f88e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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)
|