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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ff77e43632ab3cee6e00728ddb4990d5bace85b
4
- data.tar.gz: 2dc85203164407617485aeb0b25922662e4e0fc0
3
+ metadata.gz: abefe4008d14698d5de752d7485d42be2f622500
4
+ data.tar.gz: e4a0b8f8a22d95a68be7ee4bb0bc0bcbb797236b
5
5
  SHA512:
6
- metadata.gz: 7e66c3002098f0172db37a52020358426ad43c4af0fb623277bd02b26973c155896dc77e3eda581029ede47cb7b59e03f4bdfef7ad3c3009983685c6f2c0e4e1
7
- data.tar.gz: a482d508ba75af0165c0facdd96fee482f6bd3544d261b06a07081129eb92fd4f0d30257ea6c18b1eb6bed8a1eb7d76298db7d161c77a56f3ea61a666e3d0fcf
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
- results['document'][:outbound] << args[1] if args[0] == 'document'
30
- results[component_name][:outbound] << args[1]
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, dest: next_component_name, type: event }
57
+ graph << { source: component_name, target: next_component_name, eventName: event }
57
58
  end
58
59
  end
59
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flight-control-tower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duda Dornelles