audite 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/audite.gemspec +1 -1
  2. data/lib/audite.rb +2 -2
  3. metadata +1 -1
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "audite"
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
  s.author = "Matthias Georgi"
7
7
  s.email = "matti.georgi@gmail.com"
8
8
  s.homepage = "http://georgi.github.com/audite"
@@ -89,11 +89,11 @@ class Audite
89
89
  end
90
90
 
91
91
  def tell
92
- @mp3.tell
92
+ @mp3 ? @mp3.tell : 0
93
93
  end
94
94
 
95
95
  def length
96
- @mp3.length
96
+ @mp3 ? @mp3.length : 0
97
97
  end
98
98
 
99
99
  def read(samples)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: