flac2mp3 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 0.3.1 2008-10-17
2
+
3
+ * 1 enhancement:
4
+ * Content grouping ('tag', 'grouping') now carried over from FLAC to MP3 tags
5
+
1
6
  == 0.3.0 2008-07-29
2
7
 
3
8
  * 2 enhancements:
@@ -2,11 +2,19 @@ require 'flac2mp3/version'
2
2
 
3
3
  AUTHOR = 'Yossef Mendelssohn' # can also be an array of Authors
4
4
  EMAIL = 'ymendel@pobox.com'
5
- DESCRIPTION = "description of gem"
5
+ DESCRIPTION = 'converter for FLAC to MP3'
6
6
  GEM_NAME = 'flac2mp3' # what ppl will type to install your gem
7
7
  RUBYFORGE_PROJECT = 'yomendel' # The unix name for your project
8
8
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
9
  DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
+ EXTRA_DEPENDENCIES = [
11
+ ['flacinfo-rb', '>= 0.4'],
12
+ ['ruby-mp3info', '>= 0.5.1']
13
+ ] # An array of rubygem dependencies [name, version]
14
+ EXTRA_DEV_DEPENDENCIES = [
15
+ ['rspec', '>= 1.1.4'],
16
+ ['mocha', '>= 0.9.1']
17
+ ] # An array of rubygem dependencies [name, version]
10
18
 
11
19
  @config_file = "~/.rubyforge/user-config.yml"
12
20
  @config = nil
@@ -59,10 +67,8 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
59
67
 
60
68
  # == Optional
61
69
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
62
- p.extra_deps = [ # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
63
- ['flacinfo-rb', '>= 0.4'],
64
- ['ruby-mp3info', '>= 0.5.1']
65
- ]
70
+ p.extra_deps = EXTRA_DEPENDENCIES
71
+ p.extra_dev_deps = EXTRA_DEV_DEPENDENCIES
66
72
 
67
73
  #p.spec_extras = {} # A hash of extra values to set in the gemspec.
68
74
 
@@ -127,7 +127,8 @@ class Flac2mp3
127
127
  :tracktotal => :TRCK,
128
128
  :discnumber => :TPOS,
129
129
  :disctotal => :TPOS,
130
- :compilation => :TCMP
130
+ :compilation => :TCMP,
131
+ :tag => :TIT1
131
132
  }
132
133
  end
133
134
 
@@ -160,7 +161,7 @@ class Flac2mp3
160
161
  end
161
162
 
162
163
  def tag2_fields
163
- [:bpm, :composer, :compilation, :tracktotal, :tracknumber, :disctotal, :discnumber]
164
+ [:bpm, :composer, :compilation, :tracktotal, :tracknumber, :disctotal, :discnumber, :tag]
164
165
  end
165
166
 
166
167
  def tag_formats
@@ -2,7 +2,7 @@ class Flac2mp3 #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -9,11 +9,6 @@ describe 'flac2mp3 command' do
9
9
  end
10
10
  end
11
11
 
12
- before :all do
13
- path = File.join(File.dirname(__FILE__), *%w[.. bin])
14
- ENV['PATH'] = [path, ENV['PATH']].join(':')
15
- end
16
-
17
12
  before :each do
18
13
  Flac2mp3.stubs(:convert)
19
14
 
@@ -129,6 +129,11 @@ describe Flac2mp3 do
129
129
  end
130
130
 
131
131
  describe 'querying options' do
132
+ before :each do
133
+ File.stubs(:read).returns('')
134
+ @flac2mp3.load_config
135
+ end
136
+
132
137
  it 'should indicate the original file should be deleted when a true option is given' do
133
138
  @flac2mp3.set_options(:delete => true)
134
139
  @flac2mp3.delete?.should be(true)
@@ -750,6 +755,14 @@ describe Flac2mp3 do
750
755
 
751
756
  @flac2mp3.set_mp3data(@filename, @tags)
752
757
  end
758
+
759
+ it "should use tag2 for 'tag' ('grouping')" do
760
+ @tags[:tag] = 'one, two, three, oclock'
761
+
762
+ @mp3tags2.expects(:TIT1=).with(@tags[:tag])
763
+
764
+ @flac2mp3.set_mp3data(@filename, @tags)
765
+ end
753
766
 
754
767
  it 'should set tag2 track to be a combination of tracknumber and tracktotal' do
755
768
  @tags[:tracknumber] = 4
@@ -871,6 +884,10 @@ describe Flac2mp3 do
871
884
  it "should map 'compilation' to 'TCMP'" do
872
885
  Flac2mp3.tag_mapping[:compilation].should == :TCMP
873
886
  end
887
+
888
+ it "should map 'tag' to 'TIT1'" do
889
+ Flac2mp3.tag_mapping[:tag].should == :TIT1
890
+ end
874
891
  end
875
892
  end
876
893
  end
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.0
4
+ version: 0.3.1
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-07-29 00:00:00 -05:00
12
+ date: 2008-10-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,26 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.5.1
34
34
  version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rspec
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.1.4
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mocha
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.1
54
+ version:
35
55
  - !ruby/object:Gem::Dependency
36
56
  name: hoe
37
57
  type: :development
@@ -40,9 +60,9 @@ dependencies:
40
60
  requirements:
41
61
  - - ">="
42
62
  - !ruby/object:Gem::Version
43
- version: 1.7.0
63
+ version: 1.8.0
44
64
  version:
45
- description: description of gem
65
+ description: converter for FLAC to MP3
46
66
  email: ymendel@pobox.com
47
67
  executables:
48
68
  - flac2mp3
@@ -99,9 +119,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
119
  requirements: []
100
120
 
101
121
  rubyforge_project: yomendel
102
- rubygems_version: 1.2.0
122
+ rubygems_version: 1.3.0
103
123
  signing_key:
104
124
  specification_version: 2
105
- summary: description of gem
125
+ summary: converter for FLAC to MP3
106
126
  test_files: []
107
127