lib/radiodan.rb in radiodan-0.0.1 vs lib/radiodan.rb in radiodan-0.0.2

- old
+ new

@@ -1,14 +1,14 @@ require 'eventmachine' require 'em-synchrony' -$: << './lib' +$: << File.dirname(__FILE__)+'/radiodan/' require 'em_additions' -require 'radiodan/logging' -require 'radiodan/builder' -require 'radiodan/version' +require 'logging' +require 'builder' +require 'version' class Radiodan include Logging def initialize(&blk) @@ -20,10 +20,10 @@ raise "no player set" unless player.adapter? EM.synchrony do trap_signals! - EM.next_tick do + EM::Synchrony.next_tick do @builder.call_middleware! end EM.now_and_every(seconds: 1) do logger.info "SYNC!"