playa 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/playa/controller.rb +2 -1
- data/lib/playa/views/playlist_view.rb +1 -11
- data/lib/playa/views/progress_view.rb +3 -11
- data/lib/playa/views/status_view.rb +1 -11
- data/lib/playa.rb +4 -5
- data/playa.gemspec +1 -1
- metadata +2 -3
- data/lib/playa/view.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41fc80a18e93a859e9f9221df9a3a9f65d6b5cda
|
4
|
+
data.tar.gz: 042ef6c6eb0883feb60ee44d84e23231151fb6d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293c17584453ed20368f5aa828913843182564d0202c064d1a60b5e899b46c4581e79abc074543513433a9f3eb13e41c8f6a2aa453202bdf5212c9fae8941f56
|
7
|
+
data.tar.gz: 0054741fc230d61cd994c81c3d4303d999493f8dedc9390981982c6a2edb03f14d23ba797457a628c2542512bd1808341fc04c900fa7a62eb85455ebadb2f1f4
|
data/lib/playa/controller.rb
CHANGED
@@ -11,11 +11,12 @@ module Playa
|
|
11
11
|
|
12
12
|
event :update do
|
13
13
|
PlaylistView.render(menu)
|
14
|
+
trigger(:_refresh_playlist_)
|
14
15
|
end
|
15
16
|
|
16
17
|
event :progress_update, 0.5 do
|
17
18
|
ProgressView.render(@player)
|
18
|
-
trigger(:
|
19
|
+
trigger(:_refresh_progress_)
|
19
20
|
end
|
20
21
|
|
21
22
|
event :select do |track|
|
@@ -1,15 +1,5 @@
|
|
1
|
-
require 'playa/view'
|
2
|
-
|
3
1
|
module Playa
|
4
|
-
class ProgressView < View
|
5
|
-
include Vedeu
|
6
|
-
|
7
|
-
private
|
8
|
-
|
9
|
-
def type
|
10
|
-
:dsl
|
11
|
-
end
|
12
|
-
|
2
|
+
class ProgressView < Vedeu::View
|
13
3
|
def output
|
14
4
|
if object.track
|
15
5
|
track_loaded
|
@@ -20,6 +10,8 @@ module Playa
|
|
20
10
|
end
|
21
11
|
end
|
22
12
|
|
13
|
+
private
|
14
|
+
|
23
15
|
def track_loaded
|
24
16
|
view 'progress' do
|
25
17
|
line do
|
data/lib/playa.rb
CHANGED
@@ -4,7 +4,6 @@ require 'vedeu'
|
|
4
4
|
require 'playa/track'
|
5
5
|
require 'playa/track_collection'
|
6
6
|
require 'playa/player'
|
7
|
-
require 'playa/view'
|
8
7
|
require 'playa/controller'
|
9
8
|
|
10
9
|
module Playa
|
@@ -24,8 +23,8 @@ module Playa
|
|
24
23
|
cursor false
|
25
24
|
width 60
|
26
25
|
height 1
|
27
|
-
y playlist.
|
28
|
-
x playlist.
|
26
|
+
y playlist.north(2)
|
27
|
+
x playlist.left
|
29
28
|
centred false
|
30
29
|
delay 1.0
|
31
30
|
end
|
@@ -35,8 +34,8 @@ module Playa
|
|
35
34
|
cursor false
|
36
35
|
width 60
|
37
36
|
height 1
|
38
|
-
y playlist.
|
39
|
-
x playlist.
|
37
|
+
y playlist.south(1)
|
38
|
+
x playlist.left
|
40
39
|
centred false
|
41
40
|
end
|
42
41
|
|
data/playa.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'playa'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.11'
|
8
8
|
spec.authors = ['Gavin Laking']
|
9
9
|
spec.email = ['gavinlaking@gmail.com']
|
10
10
|
spec.summary = 'Plays mp3s from a directory.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -199,7 +199,6 @@ files:
|
|
199
199
|
- lib/playa/player.rb
|
200
200
|
- lib/playa/track.rb
|
201
201
|
- lib/playa/track_collection.rb
|
202
|
-
- lib/playa/view.rb
|
203
202
|
- lib/playa/views/playlist_view.rb
|
204
203
|
- lib/playa/views/progress_view.rb
|
205
204
|
- lib/playa/views/status_view.rb
|
data/lib/playa/view.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
module Playa
|
2
|
-
NotImplemented = Class.new(StandardError)
|
3
|
-
|
4
|
-
class View
|
5
|
-
def self.render(object = nil)
|
6
|
-
new(object).render
|
7
|
-
end
|
8
|
-
|
9
|
-
def initialize(object = nil)
|
10
|
-
@object = object
|
11
|
-
end
|
12
|
-
|
13
|
-
def render
|
14
|
-
Vedeu::View.render(type, output)
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
attr_reader :object
|
20
|
-
|
21
|
-
def output
|
22
|
-
fail NotImplemented, 'Implement #output on your subclass of Playa::View.'
|
23
|
-
end
|
24
|
-
|
25
|
-
def type
|
26
|
-
fail NotImplemented, 'Implement #type on your subclass of Playa::View.'
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|