lib/playa.rb in playa-0.0.12 vs lib/playa.rb in playa-0.0.13
- old
+ new
@@ -1,63 +1,19 @@
+module Playa
+end
+
require 'bundler/setup'
+require 'audite'
+require 'mp3info'
require 'vedeu'
-require 'playa/track'
-require 'playa/track_collection'
-require 'playa/player'
-require 'playa/controller'
-
-module Playa
- class Application
- include Vedeu
-
- interface 'help' do
- centred true
- colour foreground: '#ffffff', background: '#000000'
- cursor false
- group 'help'
- height 9
- width 60
- end
-
- interface 'playlist' do
- colour foreground: '#afd700', background: '#000000'
- cursor false
- width 60
- height 5
- centred true
- group 'player'
- end
-
- interface 'progress' do
- colour foreground: '#005aff', background: '#000000'
- cursor false
- width 60
- height 1
- y use('playlist').north(2)
- x use('playlist').left
- centred false
- delay 1.0
- group 'player'
- end
-
- interface 'status' do
- colour foreground: '#d70000', background: '#000000'
- cursor false
- width 60
- height 1
- y use('playlist').south(1)
- x use('playlist').left
- centred false
- group 'player'
- end
-
- def self.start(args = [])
- Controller.new(args)
-
- Vedeu::Launcher.new(args).execute!
- rescue Errno::EMFILE
- puts "Playa does not support this number of files."
- puts "Please see https://github.com/gavinlaking/playa/issues/11"
- end
- end
-end
+require 'playa/models/track'
+require 'playa/models/track_collection'
+require 'playa/models/player'
+require 'playa/helpers/helpers'
+require 'playa/views/help_view'
+require 'playa/views/playlist_view'
+require 'playa/views/progress_view'
+require 'playa/views/status_view'
+require 'playa/views/startup_view'
+require 'playa/controllers/controller'
+require 'playa/application'