flight-control-tower 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flight-control-tower/parser.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abefe4008d14698d5de752d7485d42be2f622500
|
4
|
+
data.tar.gz: e4a0b8f8a22d95a68be7ee4bb0bc0bcbb797236b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87db56dd815dbb76e55b5c942eb43879097c023d77d8b7848bd89729c9f9f099e110b37033b2eda9cfcb6ad1ad6f082a842efad6650a8d4b757d54b83ad14224
|
7
|
+
data.tar.gz: 6590b10b8e331ffe3a29b560e62449022c847445535dba3f83af2c8d170c43feed31f4117ddaa35993cb2d8622aa1af5cc8ac5fdc4fab376c22518dfcae37131
|
@@ -20,14 +20,15 @@ module FlightControlTower
|
|
20
20
|
|
21
21
|
inbound = content.scan(/this.on\((.+?)\)/).map{|e| e[0].split(',').map(&:strip) }
|
22
22
|
inbound.each do |args|
|
23
|
+
next if args.include?('click')
|
23
24
|
results[component_name][:inbound] << args[0] if args.length == 2
|
24
25
|
results[component_name][:inbound] << args[1] if args.length == 3
|
25
26
|
end
|
26
27
|
|
27
28
|
outbound = content.scan(/this.trigger\((.+?)\)/).map{|e| e[0].split(',').map(&:strip) }
|
28
29
|
outbound.each do |args|
|
29
|
-
|
30
|
-
results[component_name][:outbound] << args
|
30
|
+
args.shift if args[0] == 'document'
|
31
|
+
results[component_name][:outbound] << args.first
|
31
32
|
end
|
32
33
|
results[component_name][:inbound].uniq!
|
33
34
|
results[component_name][:outbound].uniq!
|
@@ -53,7 +54,7 @@ module FlightControlTower
|
|
53
54
|
results.each_pair do |next_component_name, next_component_events|
|
54
55
|
next if component_name == next_component_name
|
55
56
|
if results[next_component_name][:inbound].include?(event)
|
56
|
-
graph << { source: component_name,
|
57
|
+
graph << { source: component_name, target: next_component_name, eventName: event }
|
57
58
|
end
|
58
59
|
end
|
59
60
|
end
|