airstream 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 fil, no exit
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
- !! (@current_file_index == @video_files.count-1) && (video_position == video_duration)
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)
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Airstream
3
- VERSION = '0.3.6'
3
+ VERSION = '0.3.7'
4
4
  end
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.6
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-05 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airplay