tagomatic 0.0.2

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 (42) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/.idea/.rakeTasks +7 -0
  4. data/.idea/ant.xml +7 -0
  5. data/.idea/compiler.xml +56 -0
  6. data/.idea/dictionaries/dl.xml +3 -0
  7. data/.idea/dynamic.xml +3 -0
  8. data/.idea/encodings.xml +5 -0
  9. data/.idea/inspectionProfiles/Project_Default.xml +192 -0
  10. data/.idea/inspectionProfiles/profiles_settings.xml +8 -0
  11. data/.idea/misc.xml +42 -0
  12. data/.idea/modules.xml +9 -0
  13. data/.idea/projectCodeStyle.xml +8 -0
  14. data/.idea/tagomatic.iml +13 -0
  15. data/.idea/templateLanguages.xml +3 -0
  16. data/.idea/uiDesigner.xml +125 -0
  17. data/.idea/vcs.xml +7 -0
  18. data/LICENSE +20 -0
  19. data/README.rdoc +25 -0
  20. data/Rakefile +53 -0
  21. data/VERSION +1 -0
  22. data/bin/tagomatic +5 -0
  23. data/lib/monkey/string.rb +10 -0
  24. data/lib/tagomatic/format_compiler.rb +44 -0
  25. data/lib/tagomatic/format_matcher.rb +35 -0
  26. data/lib/tagomatic/info_updater.rb +62 -0
  27. data/lib/tagomatic/local_options_matcher.rb +40 -0
  28. data/lib/tagomatic/logger.rb +20 -0
  29. data/lib/tagomatic/main.rb +68 -0
  30. data/lib/tagomatic/mp3info_wrapper.rb +14 -0
  31. data/lib/tagomatic/object_factory.rb +23 -0
  32. data/lib/tagomatic/options.rb +21 -0
  33. data/lib/tagomatic/options_parser.rb +90 -0
  34. data/lib/tagomatic/scanner.rb +101 -0
  35. data/lib/tagomatic/system_configuration.rb +64 -0
  36. data/lib/tagomatic/tagger.rb +190 -0
  37. data/tagomatic.gemspec +114 -0
  38. data/test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/01-Fast_alles_konstruiert.mp3 +0 -0
  39. data/test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/02-Dann_truegt_der_schein.mp3 +0 -0
  40. data/test/helper.rb +10 -0
  41. data/test/test_tagomatic.rb +7 -0
  42. metadata +142 -0
data/tagomatic.gemspec ADDED
@@ -0,0 +1,114 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{tagomatic}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Daniel Lukic"]
12
+ s.date = %q{2009-11-02}
13
+ s.default_executable = %q{tagomatic}
14
+ s.description = %q{= tagomatic
15
+
16
+ Simple command-line mp3 tagger based on mp3info gem. Supports folder-specific configuration files.
17
+
18
+ Another mp3 tagger the world does not need.
19
+
20
+ But I needed it. I have a large collection of old mp3 files. From times when tagging was mostly
21
+ based on the file and folder names. When v2 tags where nowhere close..
22
+
23
+ Modes of operation:
24
+
25
+ * The tagger will try to guess the tags from the full file path by applying a set of known formats.
26
+ * The tagger will apply specific tags given on the command-line.
27
+ * The tagger will match specific formats given on the command-line.
28
+ * Arbitraty combination of the before-mentioned modes.
29
+
30
+ The scanner supports recursive folder handling. Of course.
31
+
32
+ Right now v2 tags are the focus.
33
+
34
+ It is probably best to call this alpha ware.
35
+
36
+ == Copyright
37
+
38
+ Copyright (c) 2009 Daniel Lukic. See LICENSE for details.
39
+ }
40
+ s.email = %q{daniel.lukic@berlinfactor.com}
41
+ s.executables = ["tagomatic"]
42
+ s.extra_rdoc_files = [
43
+ "LICENSE",
44
+ "README.rdoc"
45
+ ]
46
+ s.files = [
47
+ ".document",
48
+ ".gitignore",
49
+ ".idea/ant.xml",
50
+ ".idea/compiler.xml",
51
+ ".idea/dictionaries/dl.xml",
52
+ ".idea/dynamic.xml",
53
+ ".idea/encodings.xml",
54
+ ".idea/inspectionProfiles/Project_Default.xml",
55
+ ".idea/inspectionProfiles/profiles_settings.xml",
56
+ ".idea/misc.xml",
57
+ ".idea/modules.xml",
58
+ ".idea/projectCodeStyle.xml",
59
+ ".idea/tagomatic.iml",
60
+ ".idea/templateLanguages.xml",
61
+ ".idea/uiDesigner.xml",
62
+ ".idea/vcs.xml",
63
+ "LICENSE",
64
+ "README.rdoc",
65
+ "Rakefile",
66
+ "VERSION",
67
+ "bin/tagomatic",
68
+ "lib/monkey/string.rb",
69
+ "lib/tagomatic/format_compiler.rb",
70
+ "lib/tagomatic/format_matcher.rb",
71
+ "lib/tagomatic/info_updater.rb",
72
+ "lib/tagomatic/local_options_matcher.rb",
73
+ "lib/tagomatic/logger.rb",
74
+ "lib/tagomatic/main.rb",
75
+ "lib/tagomatic/mp3info_wrapper.rb",
76
+ "lib/tagomatic/object_factory.rb",
77
+ "lib/tagomatic/options.rb",
78
+ "lib/tagomatic/options_parser.rb",
79
+ "lib/tagomatic/scanner.rb",
80
+ "lib/tagomatic/system_configuration.rb",
81
+ "lib/tagomatic/tagger.rb",
82
+ "tagomatic.gemspec",
83
+ "test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/01-Fast_alles_konstruiert.mp3",
84
+ "test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/02-Dann_truegt_der_schein.mp3",
85
+ "test/helper.rb",
86
+ "test/test_tagomatic.rb"
87
+ ]
88
+ s.homepage = %q{http://github.com/DanielLukic/tagomatic}
89
+ s.rdoc_options = ["--charset=UTF-8"]
90
+ s.require_paths = ["lib"]
91
+ s.rubygems_version = %q{1.3.5}
92
+ s.summary = %q{Simple command-line mp3 tagger based on mp3info gem. Supports folder-specific configuration files.}
93
+ s.test_files = [
94
+ "test/helper.rb",
95
+ "test/test_tagomatic.rb"
96
+ ]
97
+
98
+ if s.respond_to? :specification_version then
99
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
100
+ s.specification_version = 3
101
+
102
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
103
+ s.add_runtime_dependency(%q<ruby-mp3info>, [">= 0"])
104
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
105
+ else
106
+ s.add_dependency(%q<ruby-mp3info>, [">= 0"])
107
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
108
+ end
109
+ else
110
+ s.add_dependency(%q<ruby-mp3info>, [">= 0"])
111
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
112
+ end
113
+ end
114
+
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'tagomatic'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestTagomatic < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tagomatic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Lukic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-02 00:00:00 +01:00
13
+ default_executable: tagomatic
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ruby-mp3info
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: thoughtbot-shoulda
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description: |
36
+ = tagomatic
37
+
38
+ Simple command-line mp3 tagger based on mp3info gem. Supports folder-specific configuration files.
39
+
40
+ Another mp3 tagger the world does not need.
41
+
42
+ But I needed it. I have a large collection of old mp3 files. From times when tagging was mostly
43
+ based on the file and folder names. When v2 tags where nowhere close..
44
+
45
+ Modes of operation:
46
+
47
+ * The tagger will try to guess the tags from the full file path by applying a set of known formats.
48
+ * The tagger will apply specific tags given on the command-line.
49
+ * The tagger will match specific formats given on the command-line.
50
+ * Arbitraty combination of the before-mentioned modes.
51
+
52
+ The scanner supports recursive folder handling. Of course.
53
+
54
+ Right now v2 tags are the focus.
55
+
56
+ It is probably best to call this alpha ware.
57
+
58
+ == Copyright
59
+
60
+ Copyright (c) 2009 Daniel Lukic. See LICENSE for details.
61
+
62
+ email: daniel.lukic@berlinfactor.com
63
+ executables:
64
+ - tagomatic
65
+ extensions: []
66
+
67
+ extra_rdoc_files:
68
+ - LICENSE
69
+ - README.rdoc
70
+ files:
71
+ - .document
72
+ - .gitignore
73
+ - .idea/.rakeTasks
74
+ - .idea/ant.xml
75
+ - .idea/compiler.xml
76
+ - .idea/dictionaries/dl.xml
77
+ - .idea/dynamic.xml
78
+ - .idea/encodings.xml
79
+ - .idea/inspectionProfiles/Project_Default.xml
80
+ - .idea/inspectionProfiles/profiles_settings.xml
81
+ - .idea/misc.xml
82
+ - .idea/modules.xml
83
+ - .idea/projectCodeStyle.xml
84
+ - .idea/tagomatic.iml
85
+ - .idea/templateLanguages.xml
86
+ - .idea/uiDesigner.xml
87
+ - .idea/vcs.xml
88
+ - LICENSE
89
+ - README.rdoc
90
+ - Rakefile
91
+ - VERSION
92
+ - bin/tagomatic
93
+ - lib/monkey/string.rb
94
+ - lib/tagomatic/format_compiler.rb
95
+ - lib/tagomatic/format_matcher.rb
96
+ - lib/tagomatic/info_updater.rb
97
+ - lib/tagomatic/local_options_matcher.rb
98
+ - lib/tagomatic/logger.rb
99
+ - lib/tagomatic/main.rb
100
+ - lib/tagomatic/mp3info_wrapper.rb
101
+ - lib/tagomatic/object_factory.rb
102
+ - lib/tagomatic/options.rb
103
+ - lib/tagomatic/options_parser.rb
104
+ - lib/tagomatic/scanner.rb
105
+ - lib/tagomatic/system_configuration.rb
106
+ - lib/tagomatic/tagger.rb
107
+ - tagomatic.gemspec
108
+ - test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/01-Fast_alles_konstruiert.mp3
109
+ - test/data/sorted/80s/Peter_Schilling/Fast_alles_konstruiert/02-Dann_truegt_der_schein.mp3
110
+ - test/helper.rb
111
+ - test/test_tagomatic.rb
112
+ has_rdoc: true
113
+ homepage: http://github.com/DanielLukic/tagomatic
114
+ licenses: []
115
+
116
+ post_install_message:
117
+ rdoc_options:
118
+ - --charset=UTF-8
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: "0"
126
+ version:
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
132
+ version:
133
+ requirements: []
134
+
135
+ rubyforge_project:
136
+ rubygems_version: 1.3.5
137
+ signing_key:
138
+ specification_version: 3
139
+ summary: Simple command-line mp3 tagger based on mp3info gem. Supports folder-specific configuration files.
140
+ test_files:
141
+ - test/test_tagomatic.rb
142
+ - test/helper.rb