airstream 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/airstream/device.rb +3 -2
- data/lib/airstream/version.rb +1 -1
- metadata +2 -2
data/lib/airstream/device.rb
CHANGED
@@ -47,7 +47,7 @@ module Airstream
|
|
47
47
|
@pbar.title = "#{@video_title} #{formatted_time}"
|
48
48
|
if io.quit?
|
49
49
|
Airstream::Io.show_input
|
50
|
-
exit # TODO skip to last
|
50
|
+
exit # TODO skip to last file, no exit
|
51
51
|
elsif io.skip? || video_duration <= elapsed_time
|
52
52
|
@current_file_index += 1
|
53
53
|
self.video = @video_files[@current_file_index] if @video_files.count > @current_file_index
|
@@ -68,7 +68,8 @@ module Airstream
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def finished?
|
71
|
-
|
71
|
+
elapsed_time = video_position
|
72
|
+
!! (@current_file_index == @video_files.count-1) && (video_duration <= elapsed_time)
|
72
73
|
end
|
73
74
|
|
74
75
|
def allow_local_httpd=(is_allowed)
|
data/lib/airstream/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airstream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: airplay
|