flac2mp3 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,8 +9,8 @@ describe 'metaflac2mp3 command' do
9
9
  end
10
10
  end
11
11
 
12
- before :each do
13
- Flac2mp3.stubs(:convert_metadata)
12
+ before do
13
+ Flac2mp3.stub!(:convert_metadata)
14
14
 
15
15
  [:ARGV, :OPTIONS, :MANDATORY_OPTIONS].each do |const|
16
16
  Object.send(:remove_const, const) if Object.const_defined?(const)
@@ -21,21 +21,23 @@ describe 'metaflac2mp3 command' do
21
21
  end
22
22
 
23
23
  it 'should exist' do
24
- lambda { run_command(@infile, @outfile) }.should_not raise_error(Errno::ENOENT)
24
+ lambda { run_command(@infile, @outfile) }.should.not.raise(Errno::ENOENT)
25
25
  end
26
26
 
27
27
  it 'should require two filenames' do
28
- self.expects(:puts) { |text| text.match(/usage.+filename/i) }
28
+ self.should.receive(:puts) do |output|
29
+ output.should.match(/usage.+filename/i)
30
+ end
29
31
  run_command(@infile)
30
32
  end
31
33
 
32
34
  it 'should pass the filenames to Flac2mp3 for metadata conversion' do
33
- Flac2mp3.expects(:convert_metadata).with(@infile, @outfile)
35
+ Flac2mp3.should.receive(:convert_metadata).with(@infile, @outfile)
34
36
  run_command(@infile, @outfile)
35
37
  end
36
38
 
37
39
  it 'should not attempt to convert any files' do
38
- Flac2mp3.expects(:convert).never
40
+ Flac2mp3.should.receive(:convert).never
39
41
  run_command(@infile, @outfile)
40
42
  end
41
43
  end
@@ -1,24 +1,6 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- gem 'rspec'
6
- require 'spec'
7
- end
8
-
9
- # this is my favorite way to require ever
10
- begin
11
- require 'mocha'
12
- rescue LoadError
13
- require 'rubygems'
14
- gem 'mocha'
15
- require 'mocha'
16
- end
17
-
18
- Spec::Runner.configure do |config|
19
- config.mock_with :mocha
20
- end
1
+ require 'rubygems'
2
+ require 'bacon'
3
+ require 'facon'
21
4
 
22
5
  $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
23
-
24
6
  require 'flac2mp3'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flac2mp3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yossef Mendelssohn
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-29 00:00:00 -06:00
12
+ date: 2009-09-22 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,24 +33,24 @@ dependencies:
33
33
  version: 0.5.1
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: rspec
36
+ name: bacon
37
37
  type: :development
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.1.4
43
+ version: 1.1.0
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
- name: mocha
46
+ name: facon
47
47
  type: :development
48
48
  version_requirement:
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.9.1
53
+ version: 0.4.1
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hoe
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 1.8.0
63
+ version: 2.3.3
64
64
  version:
65
65
  description: converter for FLAC to MP3
66
66
  email: ymendel@pobox.com
@@ -93,14 +93,14 @@ files:
93
93
  - spec/flac2mp3_command_spec.rb
94
94
  - spec/flac2mp3_spec.rb
95
95
  - spec/metaflac2mp3_command_spec.rb
96
- - spec/spec.opts
97
96
  - spec/spec_helper.rb
98
97
  - tasks/deployment.rake
99
98
  - tasks/environment.rake
100
- - tasks/rspec.rake
101
99
  - tasks/website.rake
102
100
  has_rdoc: true
103
101
  homepage: http://yomendel.rubyforge.org
102
+ licenses: []
103
+
104
104
  post_install_message:
105
105
  rdoc_options:
106
106
  - --main
@@ -122,9 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements: []
123
123
 
124
124
  rubyforge_project: yomendel
125
- rubygems_version: 1.3.1
125
+ rubygems_version: 1.3.5
126
126
  signing_key:
127
- specification_version: 2
127
+ specification_version: 3
128
128
  summary: converter for FLAC to MP3
129
129
  test_files: []
130
130
 
@@ -1,3 +0,0 @@
1
- --format
2
- s
3
- --colour
@@ -1,21 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- desc "Run the specs under spec/models"
18
- Spec::Rake::SpecTask.new do |t|
19
- t.spec_opts = ['--options', "spec/spec.opts"]
20
- t.spec_files = FileList['spec/*_spec.rb']
21
- end