rbbt-rest 1.8.104 → 1.8.105
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/lib/rbbt/rest/common/cache.rb +2 -2
- data/lib/rbbt/rest/entity/render.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d11bfe208d9a196f44cc549e6f42d9ec676b3923
|
4
|
+
data.tar.gz: b9e2e77dfe0ea5cd8137041a9c340b263009a241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0885effb5745601fbd6690d65c8ba79bdd4ff4fab82ba2093ce8f8cb459e28336a57d433650d3b34e26528138a571bb2433bf0b256fce985aced91ec75c31d
|
7
|
+
data.tar.gz: 7f529e8d1b77c34b3e4b3ae10bdcda740f3a8f8deba2f4443a035bc06141272ce1673bd5c002c98ac7a02027e119565f479dc0b49b2b31286afee39796282847
|
@@ -94,10 +94,10 @@ module RbbtRESTHelpers
|
|
94
94
|
if cache_type == :synchronous or cache_type == :sync
|
95
95
|
step.run
|
96
96
|
else
|
97
|
-
step.fork
|
97
|
+
step.fork(true, $rest_cache_semaphore)
|
98
98
|
step.soft_grace
|
99
99
|
end
|
100
|
-
step.set_info :template_file, params[:_template_file]
|
100
|
+
step.set_info :template_file, params[:_template_file].to_s
|
101
101
|
end
|
102
102
|
|
103
103
|
# Return fragment
|
@@ -47,7 +47,7 @@ module EntityRESTHelpers
|
|
47
47
|
Log.low "Rendering #{ entity }: #{ template_file }"
|
48
48
|
layout_file = layout ? locate_template("layout") : nil
|
49
49
|
|
50
|
-
render(template_file, locals, layout_file, "Entity: #{ entity }")
|
50
|
+
render(template_file, locals, layout_file, "Entity: #{ entity }".gsub(/\s/,'_'))
|
51
51
|
end
|
52
52
|
|
53
53
|
def entity_action_render(entity, action, params = {})
|
@@ -61,7 +61,7 @@ module EntityRESTHelpers
|
|
61
61
|
Log.low "Rendering #{ entity } #{ action }: #{ template_file }"
|
62
62
|
layout_file = layout ? locate_template("layout") : nil
|
63
63
|
|
64
|
-
render(template_file, locals, layout_file, "Action #{ action }: #{ entity }")
|
64
|
+
render(template_file, locals, layout_file, "Action #{ action }: #{ entity }".gsub(/\s/,'_'))
|
65
65
|
end
|
66
66
|
|
67
67
|
def entity_list_render(list, id)
|
@@ -75,7 +75,7 @@ module EntityRESTHelpers
|
|
75
75
|
Log.low "Rendering #{list.base_type.to_s} list: #{ template_file }"
|
76
76
|
layout_file = layout ? locate_template("layout") : nil
|
77
77
|
|
78
|
-
render(template_file, locals, layout_file, "Entity list: #{ id }")
|
78
|
+
render(template_file, locals, layout_file, "Entity list: #{ id }".gsub(/\s/,'_'))
|
79
79
|
end
|
80
80
|
|
81
81
|
def entity_list_action_render(list, action, id, params = {})
|
@@ -89,7 +89,7 @@ module EntityRESTHelpers
|
|
89
89
|
Log.low "Rendering #{list.base_type.to_s} list #{ action }: #{ template_file }"
|
90
90
|
layout_file = layout ? locate_template("layout") : nil
|
91
91
|
|
92
|
-
render(template_file, locals, layout_file, "Action #{ action } for list: #{ id }")
|
92
|
+
render(template_file, locals, layout_file, "Action #{ action } for list: #{ id }".gsub(/\s/,'_'))
|
93
93
|
end
|
94
94
|
|
95
95
|
def entity_map_render(map_id, type, column)
|
@@ -104,7 +104,7 @@ module EntityRESTHelpers
|
|
104
104
|
Log.low "Rendering #{type} map: #{ template_file }"
|
105
105
|
layout_file = layout ? locate_template("layout") : nil
|
106
106
|
|
107
|
-
render(template_file, locals, layout_file, "Entity map: #{ map_id }")
|
107
|
+
render(template_file, locals, layout_file, "Entity map: #{ map_id }".gsub(/\s/,'_'))
|
108
108
|
end
|
109
109
|
|
110
110
|
def entity_map_action_render(map, action, id, params = {})
|
@@ -118,7 +118,7 @@ module EntityRESTHelpers
|
|
118
118
|
Log.low "Rendering '#{map.key_field} - #{map.fields.first}' map #{ action }: #{ template_file }"
|
119
119
|
layout_file = layout ? locate_template("layout") : nil
|
120
120
|
|
121
|
-
render(template_file, locals, layout_file, "Action #{ action } for map: #{ id }")
|
121
|
+
render(template_file, locals, layout_file, "Action #{ action } for map: #{ id }".gsub(/\s/,'_'))
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.105
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|