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 CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ v0.3.2. Bundle working sweeper.exe.
3
+
2
4
  v0.3.1. Fix some annoying Windows bugs.
3
5
 
4
6
  v0.3. Pure Ruby Levenshtein algorithm, for Windows support.
data/Manifest CHANGED
@@ -3,10 +3,12 @@ CHANGELOG
3
3
  ext/extconf.rb
4
4
  ext/Makefile
5
5
  ext/nmake.bat
6
+ init.rb
6
7
  lib/sweeper.rb
7
8
  LICENSE
8
9
  Manifest
9
10
  README
11
+ sweeper.exe
10
12
  test/integration/sweeper_test.rb
11
13
  TODO
12
14
  vendor/lastfm.fpclient.beta2.linux-32/lastfmfpclient
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
- == Usage
29
+ == Installation
30
+
31
+ <b>Linux/OS X:</b>
30
32
 
31
- First, install the gem:
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
- Now, change to the directory of mp3s you want to tag and run:
35
- sweeper --genre --recursive
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'choice'
5
- require "#{File.dirname(__FILE__)}/../lib/sweeper"
5
+ require "#{File.dirname(__FILE__)}/../lib/sweeper" unless defined? Sweeper
6
6
 
7
7
  PROGRAM_VERSION = 0.1
8
8
 
data/init.rb ADDED
@@ -0,0 +1,10 @@
1
+ # Windows RubyScript2Exe start point
2
+
3
+ require 'rubygems'
4
+ require 'rubyscript2exe'
5
+
6
+ RUBYSCRIPT2EXE.bin = Dir["vendor/lastfm.fpclient.beta2.win32/*"]
7
+
8
+ require 'net/http'
9
+ require 'lib/sweeper'
10
+ load 'bin/sweeper'
@@ -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
- @binary ||= "#{File.expand_path(File.dirname(__FILE__))}/../vendor/" +
251
- case RUBY_PLATFORM
250
+ here = "#{File.expand_path(File.dirname(__FILE__))}/../vendor"
251
+ @binary ||= case RUBY_PLATFORM
252
252
  when /win32/
253
- "lastfm.fpclient.beta2.win32/lastfmfpclient.exe"
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
 
Binary file
@@ -1,23 +1,23 @@
1
1
 
2
- # Gem::Specification for Sweeper-0.3.1
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.1"
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-16}
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.1
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-16 00:00:00 -04:00
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