Sha256: 166fa1b408c75e55f9cd3f72eb0e1e97c4a826813adba4242c01d49a0d48ba7e
Contents?: true
Size: 640 Bytes
Versions: 5
Compression:
Stored size: 640 Bytes
Contents
module Gametime module Helper class VerifyObservers def verify puts 'Verifying all observers are deinit on the view'.colorize(:blue) valid_event = true files_with_observers = `grep 'addObserver' -R Classes/ -l`.split("\n") files_with_observers.each do |file| search_results = `grep removeObserver "#{file}"` if search_results == "" valid_event = false puts "missing remove #{file}".colorize(:red) end end valid_event ? (puts 'All Good'.colorize(:green)) : (puts 'Errors Occured'.colorize(:red)) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems