rubberband-audio 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -3,6 +3,8 @@ require 'shellwords'
3
3
 
4
4
  module RubberBand
5
5
  class Processor
6
+ attr_reader :command
7
+
6
8
  def initialize(input_file, output_file, options = Options.new)
7
9
  @input_file = input_file
8
10
  @output_file = output_file
@@ -27,10 +29,10 @@ module RubberBand
27
29
  end
28
30
 
29
31
  def run
30
- command = "#{binary} #{@raw_options} '#{Shellwords.escape(@input_file)}' '#{Shellwords.escape(@output_file)}'"
32
+ @command = "#{binary} #{@raw_options} '#{Shellwords.escape(@input_file)}' '#{Shellwords.escape(@output_file)}'"
31
33
  output = ""
32
34
 
33
- Open3.popen3(command) do |stdin, stdout, stderr|
35
+ Open3.popen3(@command) do |stdin, stdout, stderr|
34
36
  stderr.each("r") do |line|
35
37
  output << line
36
38
  end
@@ -40,7 +42,7 @@ module RubberBand
40
42
  true
41
43
  else
42
44
  errors = @errors.empty? ? "" : " Errors: #{@errors.join(", ")}. "
43
- raise "Failed encoding.#{errors}Full output: #{output}"
45
+ raise "Failed encoding: #{errors}. \nCommand: #{@command}. \nFull output: #{output}"
44
46
  end
45
47
  end
46
48
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubberband-audio"
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Francis Chong"]
12
- s.date = "2012-03-11"
12
+ s.date = "2012-03-12"
13
13
  s.description = "Ruby Wrapper for Rubber Band library for changing the speed and pitch of audio recordings."
14
14
  s.email = "francis@ignition.hk"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubberband-audio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-11 00:00:00.000000000 Z
12
+ date: 2012-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70303008445760 !ruby/object:Gem::Requirement
16
+ requirement: &70242798464780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70303008445760
24
+ version_requirements: *70242798464780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70303008445240 !ruby/object:Gem::Requirement
27
+ requirement: &70242798464220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70303008445240
35
+ version_requirements: *70242798464220
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70303008444680 !ruby/object:Gem::Requirement
38
+ requirement: &70242798463600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70303008444680
46
+ version_requirements: *70242798463600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pry
49
- requirement: &70303008444200 !ruby/object:Gem::Requirement
49
+ requirement: &70242798463020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70303008444200
57
+ version_requirements: *70242798463020
58
58
  description: Ruby Wrapper for Rubber Band library for changing the speed and pitch
59
59
  of audio recordings.
60
60
  email: francis@ignition.hk
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 1039418586496931627
96
+ hash: 551514557791053951
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements: