rutaci 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +2 -2
  2. data/TODO +9 -1
  3. data/lib/rutaci/setter.rb +14 -0
  4. data/rutaci.gemspec +4 -4
  5. metadata +3 -3
data/Rakefile CHANGED
@@ -2,12 +2,12 @@ require 'echoe'
2
2
  # try "rake -T" so see the wunderfull tasks generated by the little code below ;-)
3
3
 
4
4
  Echoe.new("rutaci") do |p|
5
- p.version = "0.1.0"
5
+ p.version = "0.1.1"
6
6
  p.author = "Jonas Bähr"
7
7
  p.email = "jonas@fs.ei.tum.de"
8
8
  p.url = "http://rutaci.rubyforge.org"
9
9
  p.summary = "A command line tool for manupulating the metadata of music files"
10
10
  p.platform = Gem::Platform::RUBY
11
- p.runtime_dependencies = ['rtaglib > 0.1.2']
11
+ p.runtime_dependencies = ['rtaglib >= 0.1.2']
12
12
  p.ignore_pattern = Dir.glob("{tmp}/**/*")
13
13
  end
data/TODO CHANGED
@@ -15,7 +15,7 @@ Simple CLI metadata reader/writer for music files
15
15
 
16
16
  $ rutaci --format "%N - %i - %a - %t.mp3" --shell-escape 01\ -\ Sunburn.mp3
17
17
  01\ -\ Muse\ -\ Showbiz.mp3
18
- Excape the output for later use in a shell. Nessesary?
18
+ Escape the output for later use in a shell. Nessesary?
19
19
 
20
20
  $ rutaci --dry-run --format "%n - %i - %a - %t.mp3" --correct-case set "1 - muse - showbiz - sunburn.mp3"
21
21
  The correct case option should upcase the first letter of every word. Find a better name for that!
@@ -28,6 +28,14 @@ New Tags:
28
28
  Some kind of substituion, i.e. "_" => " "
29
29
  has to be flexible enough to allow the user to add (also multichar) patterns
30
30
 
31
+ Support for fingerprinting services (musicbrainz, last.fm)
32
+ Problem with musicbrainz: closed source finger printer
33
+ => try with last.fm (still beta)
34
+ see: http://blog.last.fm/2008/03/25/fingerprinting-and-metadata-progress-report
35
+ Ruby tool which already uses last.fm finger prints: http://blog.evanweaver.com/files/doc/fauna/sweeper/files/README.html
36
+ Problem with the last.fm cli tool: works only with mp3's. Solution: use thier fingerprinting lib directly, it works with PCM data, and decode the music oneself
37
+ Source of the last.fm finger printing lib and cli tool: svn://svn.audioscrobbler.net/recommendation/MusicID/lastfm_fp
38
+
31
39
  =========================================
32
40
  == Architecture ==
33
41
  =========================================
data/lib/rutaci/setter.rb CHANGED
@@ -19,6 +19,20 @@ require 'rtaglib'
19
19
 
20
20
  require 'rutaci/source'
21
21
 
22
+ # patch TagFile to convert strings to numbers for attribute setters which requier numbers
23
+ module TagFile
24
+ class File
25
+ alias :track_old= :track=
26
+ def track=(t)
27
+ self.track_old= t.to_i
28
+ end
29
+ alias :year_old= :year=
30
+ def year=(t)
31
+ self.year_old= t.to_i
32
+ end
33
+ end #File
34
+ end #TagFile
35
+
22
36
  module Rutaci
23
37
  # writes info from a source into the files
24
38
  # it is a command executor, so it has tp provide an initializer which takes the options
data/rutaci.gemspec CHANGED
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Rutaci-0.1.0
2
+ # Gem::Specification for Rutaci-0.1.1
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: rutaci
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.1.0
8
+ version: 0.1.1
9
9
  platform: ruby
10
10
  authors:
11
11
  - "Jonas B\xC3\xA4hr"
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-09-24 00:00:00 +02:00
15
+ date: 2008-09-26 00:00:00 +02:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  version_requirement:
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: "0"
27
27
  - - "="
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutaci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jonas B\xC3\xA4hr"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-24 00:00:00 +02:00
12
+ date: 2008-09-26 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,7 +18,7 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">"
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  - - "="