rbbt-rest 1.8.49 → 1.8.50
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/entity/locate.rb +28 -7
- data/share/views/tools/nvd3/multibar.haml +0 -1
- 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: 2353b037a524b17202eeba541c81b11220769463
|
4
|
+
data.tar.gz: 83653dd0403aea86e2f04dbe69ea707d6b11a8f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed9395ef61e64290c4143ed93ccfd40a3e3904fba8947c8269440284cbc7f2d676dd1f0dcf075d70c1c1ca9f158dd4082e92dfe57f87777ce612cc36eb80a66
|
7
|
+
data.tar.gz: 796779a7265e0d94b15c5309c783a0c445a4df4be9f0d261d70b553910d231fe356add7b001ca37603c96d432b40c69d38ffe84b10ac3e986bcfaed52ec69381
|
@@ -150,7 +150,8 @@ module EntityRESTHelpers
|
|
150
150
|
types.each do |type|
|
151
151
|
next if path
|
152
152
|
path = locate_server_file(["entity_list", type, action]*"/", resources, 'haml')
|
153
|
-
|
153
|
+
check_file = locate_server_file(["entity_list", type, action]*"/", resources, 'check')
|
154
|
+
raise "This action was rejected: #{ action }" if reject?(check_file, binding)
|
154
155
|
end
|
155
156
|
|
156
157
|
raise TemplateMissing, "Template not found for entity list action #{action} (#{list.annotation_types * ", "})" if path.nil?
|
@@ -165,9 +166,18 @@ module EntityRESTHelpers
|
|
165
166
|
types << "Default"
|
166
167
|
|
167
168
|
paths = types.inject([]) do |acc,type|
|
168
|
-
|
169
|
-
|
169
|
+
all_files = glob_all_server_files(["entity_list", type, "*.haml"]*"/", resources)
|
170
|
+
all_checks = glob_all_server_files(["entity_list", type, "*.check"]*"/", resources)
|
171
|
+
rejected = []
|
172
|
+
all_checks.each do |check_file|
|
173
|
+
rejected << File.basename(check_file).sub('.check', '') if reject?(check_file, binding)
|
174
|
+
end
|
175
|
+
|
176
|
+
accepted = all_files.reject{|path|
|
177
|
+
rejected.include? File.basename(path).sub('.haml', '')
|
170
178
|
}
|
179
|
+
|
180
|
+
acc += accepted
|
171
181
|
end
|
172
182
|
|
173
183
|
if check
|
@@ -224,7 +234,8 @@ module EntityRESTHelpers
|
|
224
234
|
types.each do |type|
|
225
235
|
next if path
|
226
236
|
path = locate_server_file(["entity_map", type, action]*"/", resources, 'haml')
|
227
|
-
|
237
|
+
check_file = locate_server_file(["entity_map", type, action]*"/", resources, 'check')
|
238
|
+
raise "This action was rejected: #{ action }" if reject?(check_file, binding)
|
228
239
|
end
|
229
240
|
|
230
241
|
raise TemplateMissing, "Template not found for entity map action #{action} (#{field}--#{map.fields.first})" if path.nil?
|
@@ -245,9 +256,18 @@ module EntityRESTHelpers
|
|
245
256
|
types += ["Default"]
|
246
257
|
|
247
258
|
paths = types.inject([]) do |acc,type|
|
248
|
-
|
249
|
-
|
259
|
+
all_files = glob_all_server_files(["entity_map", type, "*.haml"]*"/", resources)
|
260
|
+
all_checks = glob_all_server_files(["entity_map", type, "*.check"]*"/", resources)
|
261
|
+
rejected = []
|
262
|
+
all_checks.each do |check_file|
|
263
|
+
rejected << File.basename(check_file).sub('.check', '') if reject?(check_file, binding)
|
264
|
+
end
|
265
|
+
|
266
|
+
accepted = all_files.reject{|path|
|
267
|
+
rejected.include? File.basename(path).sub('.haml', '')
|
250
268
|
}
|
269
|
+
|
270
|
+
acc += accepted
|
251
271
|
end
|
252
272
|
|
253
273
|
if check
|
@@ -260,8 +280,9 @@ module EntityRESTHelpers
|
|
260
280
|
|
261
281
|
actions.select! do |action|
|
262
282
|
begin
|
263
|
-
locate_entity_map_action_template(
|
283
|
+
locate_entity_map_action_template(map, action)
|
264
284
|
rescue Exception
|
285
|
+
Log.exception $!
|
265
286
|
false
|
266
287
|
end
|
267
288
|
end if check
|
@@ -13,7 +13,6 @@
|
|
13
13
|
.staggerLabels(true)
|
14
14
|
.rotateLabels(45) //Angle to rotate x-axis labels.
|
15
15
|
.reduceXTicks(false) //If 'false', every single x-axis tick label will be rendered.
|
16
|
-
// .rotateLabels(0) //Angle to rotate x-axis labels.
|
17
16
|
// .showControls(true) //Allow user to switch between 'Grouped' and 'Stacked' mode.
|
18
17
|
// .groupSpacing(0.1) //Distance between each group of bars.
|
19
18
|
//;
|
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.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|