completion-kit 0.5.17 → 0.5.18
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/app/helpers/completion_kit/application_helper.rb +11 -3
- data/lib/completion_kit/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: 25e795a8d94b2f0984e65d312eb152ffabcda8e7929a52529906ff1fab6cfa4f
|
|
4
|
+
data.tar.gz: 91110f1c5736d0c6d3c12ef5aa5a75b66ffe0d565cf5777bd9f2d322936e01d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87678468d49193e088d4b1c6c28abe5a63ef67de679cfeb894dd64238810d456e7505bae78224e2c330860f177deff8bf834fab0a1c9abdca4e2cafd81e5463b
|
|
7
|
+
data.tar.gz: 2755a9885f3242017dce04a91680f4499b5cd8907f1043f9bab41d46651ec234ebe4c0f03886b72a0dac421a8787f56923da884b6d5112f85c409392dbfea969
|
|
@@ -180,15 +180,23 @@ module CompletionKit
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
def ck_run_path(run)
|
|
183
|
-
CompletionKit::Engine.routes.url_helpers.run_path(run, **
|
|
183
|
+
CompletionKit::Engine.routes.url_helpers.run_path(run, **ck_engine_path_options)
|
|
184
184
|
end
|
|
185
185
|
|
|
186
186
|
def ck_prompt_path(prompt)
|
|
187
|
-
CompletionKit::Engine.routes.url_helpers.prompt_path(prompt, **
|
|
187
|
+
CompletionKit::Engine.routes.url_helpers.prompt_path(prompt, **ck_engine_path_options)
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
def ck_dataset_path(dataset)
|
|
191
|
-
CompletionKit::Engine.routes.url_helpers.dataset_path(dataset, **
|
|
191
|
+
CompletionKit::Engine.routes.url_helpers.dataset_path(dataset, **ck_engine_path_options)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Dynamic route segments owned by the host's mount scope (e.g. an
|
|
195
|
+
# `org_slug` from `scope "/orgs/:org_slug"`) live in `url_options[:_recall]`.
|
|
196
|
+
# The engine's url_helpers won't read them out of the nested recall hash to
|
|
197
|
+
# satisfy a required segment — they have to arrive as explicit kwargs.
|
|
198
|
+
def ck_engine_path_options
|
|
199
|
+
(url_options[:_recall] || {}).except(:controller, :action)
|
|
192
200
|
end
|
|
193
201
|
|
|
194
202
|
def ck_format_maybe_json(text)
|