rails_tool_views 1.0.1 → 1.0.2
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 +8 -0
- data/lib/generators/rails_tool_views/install/install_generator.rb +13 -1
- data/lib/rails_tool_views/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6370bbf5b917ca2fac410cd0816320bf6a2f6b0ed5356ccf8e87e76f0626fe84
|
|
4
|
+
data.tar.gz: 65d0feb4d651e5eb3513658b1f58da40ff9ef78e04bf0375332ca29df9f54652
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fac18779f6c0d183831e4e8a76f21911975693a76d7513b6f0ba4a526db8054467635441f26ddbdbd10e2a4328f1e9aeff3f9cae62eae6c7359f7a198a5b7762
|
|
7
|
+
data.tar.gz: e8608bb85af862ef6004e4839bebca0a5c5927934a544f1cbbeefb1e26371045062d88a774ef25cd4c50ab0b8ac5899fab858ef72bf8ae130210499d0087d8e3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.2] - 2026-10-30
|
|
4
|
+
|
|
5
|
+
No migration or runtime dependency. Data saved by 0.1.0 through 1.0.1 upgrades unchanged.
|
|
6
|
+
|
|
7
|
+
- Fix: `rails_tool_views:install` added a second `:rails_tool_views` mount when `config/routes.rb` already mounted the Engine at another path, and the host's routes then failed to load with `Invalid route name, already in use`. The installer now leaves an existing mount alone and reports that it skipped the route.
|
|
8
|
+
- Docs: Configuration explains that the configuration, the registry and the mount are shared by every gem in the process, and what a gem that registers components should leave to the host.
|
|
9
|
+
- Tests: the upgrade check starts from every release through 1.0.1.
|
|
10
|
+
|
|
3
11
|
## [1.0.1] - 2026-10-28
|
|
4
12
|
|
|
5
13
|
No migration or runtime dependency. Data saved by 0.1.0 through 1.0.0 upgrades unchanged. Hosts that load the RubyLLM adapter need RubyLLM 2.0 or later; see the Upgrading guide.
|
|
@@ -14,7 +14,19 @@ module RailsToolViews
|
|
|
14
14
|
migration_template "create_rails_tool_views.rb", "db/migrate/create_rails_tool_views.rb"
|
|
15
15
|
migration_template "add_rails_tool_views_lifecycle.rb", "db/migrate/add_rails_tool_views_lifecycle.rb"
|
|
16
16
|
template "rails_tool_views.rb", "config/initializers/rails_tool_views.rb"
|
|
17
|
-
|
|
17
|
+
if behavior == :invoke && engine_mounted?
|
|
18
|
+
say_status :skip, "config/routes.rb already mounts RailsToolViews::Engine", :yellow
|
|
19
|
+
else
|
|
20
|
+
route 'mount RailsToolViews::Engine => "/rails_tool_views", as: :rails_tool_views'
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
private
|
|
25
|
+
# A host may keep the :rails_tool_views name under its own path; a second
|
|
26
|
+
# mount with that name stops the routes from loading.
|
|
27
|
+
def engine_mounted?
|
|
28
|
+
routes = File.join(destination_root, "config/routes.rb")
|
|
29
|
+
File.file?(routes) && File.read(routes).match?(/^\s*mount\s+(::)?RailsToolViews::Engine\b/)
|
|
18
30
|
end
|
|
19
31
|
end
|
|
20
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_tool_views
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Wang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|