wasabi_pea 0.3 → 0.4

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 (2) hide show
  1. data/lib/wasabi_pea.rb +4 -8
  2. metadata +1 -1
@@ -12,19 +12,15 @@ module TextToSpeech
12
12
  File.open(file, 'wb') do |f|
13
13
  f.puts content
14
14
  end
15
- rescue Exception => error
16
- $stderr.puts(" #{error.message}")
17
- return nil
18
- end
19
-
20
- begin
15
+
21
16
  io = StringIO.new(open(file, "rb") {|io| io.read })
22
17
  io.original_filename = "#{file_name}.mp3"
23
18
  io.content_type = "audio/mpeg"
24
19
  return io
25
- rescue
26
- return nil
20
+ rescue Exception => error
21
+ $stderr.puts("#{error.message} for url: #{ base_url }")
27
22
  end
23
+ nil
28
24
  end
29
25
 
30
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wasabi_pea
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: