glib-web 6.8.0 → 6.8.1
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/glib/json_ui/abstract_builder.rb +1 -1
- data/lib/glib/json_crawler/router.rb +5 -1
- data/lib/glib/test_helpers.rb +3 -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: 4a632657e59d940a2691d9793e2f9859c423b9ea344fa5b1f67f47d66c4a28c8
|
|
4
|
+
data.tar.gz: 44f187b5d84c31e7727b838dfddfe0ba654171d0375973042313c4f53b310f85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aea444e0d5996db47728356004ad47fea27fd945e446edafa01de8332f4d92ed618c4b9cf29cd01212854d88b13d71ee0aa21958304e39a28d7bb2ef49616a2a
|
|
7
|
+
data.tar.gz: 2e89f1c25abc1760d65beb70eb89d1b1a5562d4b286922e6c5b9fd97817b008f16d2e5f8c6658cefad32d1b0c9e430733102ee87024f0199dace2f5561cc6a5e
|
|
@@ -15,7 +15,7 @@ module Glib
|
|
|
15
15
|
|
|
16
16
|
def add_singleton_element(type, name, *args)
|
|
17
17
|
name_components = name.to_s.split('_')
|
|
18
|
-
json.set! type, Name.join(name_components) if type
|
|
18
|
+
json.set! type, Glib::JsonUi::Name.join(name_components) if type
|
|
19
19
|
args = [yield] if block_given?
|
|
20
20
|
|
|
21
21
|
# TODO: consider caching these instances
|
|
@@ -111,7 +111,11 @@ module Glib
|
|
|
111
111
|
|
|
112
112
|
@depth += 1
|
|
113
113
|
case action
|
|
114
|
-
|
|
114
|
+
# Canonical slash spelling: the old 'initiate_navigation' pseudo-action
|
|
115
|
+
# read as separator form under Name.normalize (its underscore is part
|
|
116
|
+
# of the word, not a separator), so the normalized name missed this
|
|
117
|
+
# branch and the crawl logged the entry without ever executing it.
|
|
118
|
+
when 'initiate/navigation'
|
|
115
119
|
# @read_only_actions.add([action, params['url']])
|
|
116
120
|
http_actions.add([action, params['url']])
|
|
117
121
|
JsonCrawler::NavInitiate.new(http, params, action)
|
data/lib/glib/test_helpers.rb
CHANGED
|
@@ -60,7 +60,9 @@ module Glib
|
|
|
60
60
|
router.step(
|
|
61
61
|
http,
|
|
62
62
|
'onClick' => {
|
|
63
|
-
|
|
63
|
+
# Canonical slash spelling (see router.rb's initiate/navigation
|
|
64
|
+
# branch: the underscore spelling collides with Name.normalize).
|
|
65
|
+
'action' => user[:action] || 'initiate/navigation',
|
|
64
66
|
'url' => user[:url] || "http://#{HOST}#{path}"
|
|
65
67
|
}
|
|
66
68
|
)
|