Skip to content

Commit

Permalink
Simple changes that help make writing tests easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Greer committed Nov 18, 2011
1 parent d405792 commit b43f80d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/m3uzi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def generate_byterange_line(file)

def add_file(path = nil, duration = nil)
new_file = M3Uzi::File.new
new_file.path = path
new_file.duration = duration
new_file.path = path if path
new_file.duration = duration if duration
yield(new_file) if block_given?
@playlist_items << new_file
end
Expand Down
2 changes: 1 addition & 1 deletion lib/m3uzi/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class M3Uzi
VERSION = '0.4.0'
VERSION = '0.4.1'
end

0 comments on commit b43f80d

Please sign in to comment.