sweeper 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/Manifest +2 -0
- data/README +14 -4
- data/bin/sweeper +1 -1
- data/init.rb +10 -0
- data/lib/sweeper.rb +11 -5
- data/sweeper.exe +0 -0
- data/sweeper.gemspec +14 -4
- metadata +4 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
data/README
CHANGED
@@ -26,13 +26,23 @@ If you use this software, please {make a donation}[http://blog.evanweaver.com/do
|
|
26
26
|
* id3lib (Linux and OS X only)
|
27
27
|
* some mp3 files
|
28
28
|
|
29
|
-
==
|
29
|
+
== Installation
|
30
|
+
|
31
|
+
<b>Linux/OS X:</b>
|
30
32
|
|
31
|
-
First, install
|
33
|
+
First, install id3lib, Ruby, and Rubygems through your package manager. Then start a terminal and run:
|
32
34
|
sudo gem install sweeper
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
+
<b>Windows:</b>
|
37
|
+
|
38
|
+
If you have Ruby set up via the {One-Click Installer}[http://rubyforge.org/projects/rubyinstaller/], you install via gems as above.
|
39
|
+
|
40
|
+
Otherwise, download a zipfile from the Sweeper section of the {Rubyforge page}[http://rubyforge.org/frs/?group_id=2835]. Unzip it and copy <tt>sweeper.exe</tt> into the <tt>C:\Windows</tt> folder.
|
41
|
+
|
42
|
+
== Usage
|
43
|
+
|
44
|
+
Now, start a terminal. Change to the directory of mp3s you want to tag and run:
|
45
|
+
sweeper --genre --recursive
|
36
46
|
|
37
47
|
Your mp3s will be updated with missing artist, genre, and trackname information, and a list of all tagged genres will be added to the <tt>comment</tt> field, for use in smart playlists.
|
38
48
|
|
data/bin/sweeper
CHANGED
data/init.rb
ADDED
data/lib/sweeper.rb
CHANGED
@@ -247,14 +247,20 @@ class Sweeper
|
|
247
247
|
|
248
248
|
# Returns the path to the fingerprinter binary for this platform.
|
249
249
|
def binary
|
250
|
-
|
251
|
-
|
250
|
+
here = "#{File.expand_path(File.dirname(__FILE__))}/../vendor"
|
251
|
+
@binary ||= case RUBY_PLATFORM
|
252
252
|
when /win32/
|
253
|
-
|
253
|
+
if defined?(RUBYSCRIPT2EXE)
|
254
|
+
e = RUBYSCRIPT2EXE
|
255
|
+
p [e.tempdir, e.userdir, e.exedir, e.appdir] if ENV['DEBUG']
|
256
|
+
"#{e.appdir}/../bin/lastfmfpclient.exe"
|
257
|
+
else
|
258
|
+
"#{here}/lastfm.fpclient.beta2.win32/lastfmfpclient.exe"
|
259
|
+
end
|
254
260
|
when /darwin/
|
255
|
-
"lastfm.fpclient.beta2.OSX-intel/lastfmfpclient"
|
261
|
+
"#{here}/lastfm.fpclient.beta2.OSX-intel/lastfmfpclient"
|
256
262
|
else
|
257
|
-
"lastfm.fpclient.beta2.linux-32/lastfmfpclient"
|
263
|
+
"#{here}/lastfm.fpclient.beta2.linux-32/lastfmfpclient"
|
258
264
|
end
|
259
265
|
end
|
260
266
|
|
data/sweeper.exe
ADDED
Binary file
|
data/sweeper.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Sweeper-0.3.
|
2
|
+
# Gem::Specification for Sweeper-0.3.2
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{sweeper}
|
7
|
-
s.version = "0.3.
|
7
|
+
s.version = "0.3.2"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Evan Weaver"]
|
13
|
-
s.date = %q{2008-04-
|
13
|
+
s.date = %q{2008-04-18}
|
14
14
|
s.default_executable = %q{sweeper}
|
15
15
|
s.description = %q{Automatically tag your music collection with metadata from Last.fm.}
|
16
16
|
s.email = %q{}
|
17
17
|
s.executables = ["sweeper"]
|
18
18
|
s.extensions = ["ext/extconf.rb"]
|
19
19
|
s.extra_rdoc_files = ["CHANGELOG", "lib/sweeper.rb", "LICENSE", "README", "TODO"]
|
20
|
-
s.files = ["bin/sweeper", "CHANGELOG", "ext/extconf.rb", "ext/Makefile", "ext/nmake.bat", "lib/sweeper.rb", "LICENSE", "Manifest", "README", "test/integration/sweeper_test.rb", "TODO", "vendor/lastfm.fpclient.beta2.linux-32/lastfmfpclient", "vendor/lastfm.fpclient.beta2.linux-32/readme.txt", "vendor/lastfm.fpclient.beta2.OSX-intel/lastfmfpclient", "vendor/lastfm.fpclient.beta2.OSX-intel/libcurl.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libmad.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libsamplerate.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libtag.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/readme.txt", "vendor/lastfm.fpclient.beta2.win32/lastfmfpclient.exe", "vendor/lastfm.fpclient.beta2.win32/libcurl.dll", "vendor/lastfm.fpclient.beta2.win32/libfftw3f-3.dll", "vendor/lastfm.fpclient.beta2.win32/Microsoft.VC80.CRT.manifest", "vendor/lastfm.fpclient.beta2.win32/msvcm80.dll", "vendor/lastfm.fpclient.beta2.win32/msvcp80.dll", "vendor/lastfm.fpclient.beta2.win32/msvcr80.dll", "vendor/lastfm.fpclient.beta2.win32/taglib.dll", "vendor/lastfm.fpclient.beta2.win32/zlib1.dll", "sweeper.gemspec"]
|
20
|
+
s.files = ["bin/sweeper", "CHANGELOG", "ext/extconf.rb", "ext/Makefile", "ext/nmake.bat", "init.rb", "lib/sweeper.rb", "LICENSE", "Manifest", "README", "sweeper.exe", "test/integration/sweeper_test.rb", "TODO", "vendor/lastfm.fpclient.beta2.linux-32/lastfmfpclient", "vendor/lastfm.fpclient.beta2.linux-32/readme.txt", "vendor/lastfm.fpclient.beta2.OSX-intel/lastfmfpclient", "vendor/lastfm.fpclient.beta2.OSX-intel/libcurl.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libmad.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libsamplerate.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/libtag.dylib", "vendor/lastfm.fpclient.beta2.OSX-intel/readme.txt", "vendor/lastfm.fpclient.beta2.win32/lastfmfpclient.exe", "vendor/lastfm.fpclient.beta2.win32/libcurl.dll", "vendor/lastfm.fpclient.beta2.win32/libfftw3f-3.dll", "vendor/lastfm.fpclient.beta2.win32/Microsoft.VC80.CRT.manifest", "vendor/lastfm.fpclient.beta2.win32/msvcm80.dll", "vendor/lastfm.fpclient.beta2.win32/msvcp80.dll", "vendor/lastfm.fpclient.beta2.win32/msvcr80.dll", "vendor/lastfm.fpclient.beta2.win32/taglib.dll", "vendor/lastfm.fpclient.beta2.win32/zlib1.dll", "sweeper.gemspec"]
|
21
21
|
s.has_rdoc = true
|
22
22
|
s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/sweeper/}
|
23
23
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sweeper", "--main", "README"]
|
@@ -47,4 +47,14 @@ end
|
|
47
47
|
# p.dependencies = ['id3lib-ruby', 'choice', 'Text', 'activesupport']
|
48
48
|
# p.clean_pattern = ['doc', 'pkg', 'test/integration/songs']
|
49
49
|
# p.rdoc_pattern = ['README', 'LICENSE', 'CHANGELOG', 'TODO', 'lib/*']
|
50
|
+
# p.need_zip = true
|
51
|
+
# p.need_tar_gz = false
|
50
52
|
# end
|
53
|
+
#
|
54
|
+
# task :binary do
|
55
|
+
# Dir.chdir(File.dirname(__FILE__)) do
|
56
|
+
# system("ruby c:/ruby/bin/rubyscript2exe init.rb")
|
57
|
+
# File.rename("init.exe", "sweeper.exe")
|
58
|
+
# end
|
59
|
+
# end
|
60
|
+
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sweeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Weaver
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
yZ0=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-04-
|
33
|
+
date: 2008-04-18 00:00:00 -04:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -87,10 +87,12 @@ files:
|
|
87
87
|
- ext/extconf.rb
|
88
88
|
- ext/Makefile
|
89
89
|
- ext/nmake.bat
|
90
|
+
- init.rb
|
90
91
|
- lib/sweeper.rb
|
91
92
|
- LICENSE
|
92
93
|
- Manifest
|
93
94
|
- README
|
95
|
+
- sweeper.exe
|
94
96
|
- test/integration/sweeper_test.rb
|
95
97
|
- TODO
|
96
98
|
- vendor/lastfm.fpclient.beta2.linux-32/lastfmfpclient
|
metadata.gz.sig
CHANGED
Binary file
|