Permalink
Browse files

initial POC.

  • Loading branch information...
0 parents commit 2f058c151fd9a455ff8f4166babf97b11c272381 @athoune committed Oct 20, 2011
Showing with 81 additions and 0 deletions.
  1. +3 −0 Gemfile
  2. +31 −0 README.md
  3. +15 −0 Rakefile
  4. +5 −0 bin/terasound
  5. +9 −0 lib/terasound/echoprint.rb
  6. +18 −0 terasound.gemspec
@@ -0,0 +1,3 @@
+source :rubygems
+
+gemspec
@@ -0,0 +1,31 @@
+TeraSound
+=========
+
+Handle large MP3 collection.
+
+
+Use (codegen)[http://echoprint.me/codegen] to handle music signature and ID3 parsing.
+
+There is a package for MacBrew but not for Ubuntu.
+
+ brew install echoprint-codegen
+
+Install
+-------
+
+ bundle
+
+Try it
+------
+
+ bundle exec ./bin/terasound ~/Downloads/
+
+Status
+------
+
+Alpha.
+
+Licence
+-------
+
+GPL.
@@ -0,0 +1,15 @@
+require 'rubygems'
+require 'rake/testtask'
+require 'rubygems/package_task'
+
+Rake::TestTask.new do |t|
+ t.pattern = "spec/*_spec.rb"
+end
+
+Gem::PackageTask.new(eval(File.read('terasound.gemspec'))) do |pkg|
+ pkg.need_zip = true
+ pkg.need_tar = true
+end
+
+task :default => :test
+
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+
+require "terasound/echoprint"
+
+p TeraSound.codegen ARGV[0]
@@ -0,0 +1,9 @@
+require "json"
+
+module TeraSound
+
+ def TeraSound.codegen path
+ JSON.parse `find #{path} -name "*.mp3" | echoprint-codegen -s 10 30`
+ end
+
+end
@@ -0,0 +1,18 @@
+Gem::Specification.new do |s|
+ s.name = "terasound"
+ s.version = "0.0.1alpha"
+ s.date = Time.now.utc.strftime("%Y-%m-%d")
+ s.homepage = "http://github.com/athoune/terasound"
+ s.authors = "Mathieu Lecarme"
+ s.email = "mathieu@garambrogne.net"
+ s.description = "Handle large collection of MP3"
+ s.summary = s.description
+ s.extra_rdoc_files = %w(README.md)
+ s.files = Dir["", "README.md", "Gemfile", "lib/**/*.rb"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.add_dependency "json"
+ s.add_development_dependency "minitest", "~>2.0"
+ s.add_development_dependency "rake"
+end
+

0 comments on commit 2f058c1

Please sign in to comment.