markdowndocs 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 310be55d869a1dbc1399c9964424ce458494aca95a702272cd3529ae9a212f63
4
- data.tar.gz: a6f95d22f40b2385b92ab455b467fc271c22ba93449d7b07eafc34beaa5f37a8
3
+ metadata.gz: cbc24df1640795c80c5a97707ff06fa696df135596f5698a5148814f7321444e
4
+ data.tar.gz: 3374e07f7af7b08170034250b467929a8644a91e66cd7b514d54ea8afa598eb4
5
5
  SHA512:
6
- metadata.gz: f01d9eabec60ff72ff96dba5c4b03f270ab8087fe72d70f68ad405c15cb51645d341c10354156951bea744e0167242ecb0a739389cee986688a3eca7fa46dbff
7
- data.tar.gz: 67d251f7b2b0266dc6b6d71951f0cf11a4d243639b8f6e248385e165221d0f828a6723a207480165ad8c996577179b9ec4c1bbdcddaf289cebe893d010d3a579
6
+ metadata.gz: 8ecdbc6e6da6a6e2f787cd9063a57a1b6d4fdfd1e43c4836cdd5682eee5e7c5fc53929ac35b7cd91c05f00282c850bb62718dd4fdfc152b1d51c916483155665
7
+ data.tar.gz: 761c964f789ff77acae0451d0fec857a575fe79608ffa74313dcf5911c438f3bbffa55fc2a8eb750275b0aadcbbc314cbb704354a8ca3fc956a1caa2a7a5e753
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.1.2] - 2026-02-20
9
+
10
+ ### Fixed
11
+
12
+ - `root_path` in host app layouts now resolves to the host app's root (`/`) instead of the engine's root (`/docs/`). The engine defines its own `root` route, so the existing `method_missing` delegation couldn't intercept it. Added explicit `root_path`/`root_url` overrides that delegate to `main_app`.
13
+
8
14
  ## [0.1.1] - 2026-02-20
9
15
 
10
16
  ### Fixed
@@ -29,5 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
29
35
  - i18n support for all UI strings
30
36
  - Install generator (`rails generate markdowndocs:install`)
31
37
 
38
+ [0.1.2]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.2
32
39
  [0.1.1]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.1
33
40
  [0.1.0]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.0
@@ -11,6 +11,18 @@ module Markdowndocs
11
11
  # against the engine's catch-all :slug route instead. This delegation
12
12
  # ensures host app route helpers always work correctly in engine views.
13
13
  helper do
14
+ # Explicitly delegate root_path/root_url to the host app.
15
+ # The engine defines its own root route, so these helpers exist in the
16
+ # engine scope and method_missing won't intercept them — but they resolve
17
+ # to /docs/ instead of /. Engine views use markdowndocs.root_path directly.
18
+ def root_path(*args)
19
+ main_app.root_path(*args)
20
+ end
21
+
22
+ def root_url(*args)
23
+ main_app.root_url(*args)
24
+ end
25
+
14
26
  def method_missing(method, *args, &block)
15
27
  if main_app.respond_to?(method)
16
28
  main_app.send(method, *args, &block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Markdowndocs
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdowndocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Chmura