Permalink
Browse files

Switched to echoe from newgem as it seems more simple.

  • Loading branch information...
1 parent e3e1b63 commit 8d28319d12da1435ba14526dc52e64ba8df3f288 @jnunemaker committed Dec 3, 2008
Showing with 70 additions and 84 deletions.
  1. +16 −13 Manifest.txt → Manifest
  2. +13 −61 Rakefile
  3. +0 −1 lib/scrobbler.rb
  4. +0 −9 lib/scrobbler/version.rb
  5. +41 −0 scrobbler.gemspec
View
@@ -1,28 +1,28 @@
-History.txt
-Manifest.txt
-README.txt
-Rakefile
-setup.rb
examples/album.rb
examples/artist.rb
+examples/scrobble.rb
examples/tag.rb
examples/track.rb
examples/user.rb
-examples/scrobble.rb
-lib/scrobbler.rb
+History.txt
lib/scrobbler/album.rb
lib/scrobbler/artist.rb
lib/scrobbler/base.rb
lib/scrobbler/chart.rb
+lib/scrobbler/playing.rb
lib/scrobbler/rest.rb
+lib/scrobbler/scrobble.rb
+lib/scrobbler/simpleauth.rb
lib/scrobbler/tag.rb
lib/scrobbler/track.rb
lib/scrobbler/user.rb
-lib/scrobbler/version.rb
-lib/scrobbler/simpleauth.rb
-lib/scrobbler/scrobble.rb
-lib/scrobbler/playing.rb
-test/test_helper.rb
+lib/scrobbler.rb
+Manifest
+MIT-LICENSE
+Rakefile
+README.txt
+scrobbler.gemspec
+setup.rb
test/fixtures/xml/album/info.xml
test/fixtures/xml/artist/fans.xml
test/fixtures/xml/artist/similar.xml
@@ -54,9 +54,12 @@ test/fixtures/xml/user/weeklychartlist.xml
test/fixtures/xml/user/weeklytrackchart.xml
test/fixtures/xml/user/weeklytrackchart_from_1138536002_to_1139140802.xml
test/mocks/rest.rb
+test/test_helper.rb
test/unit/album_test.rb
test/unit/artist_test.rb
test/unit/chart_test.rb
test/unit/tag_test.rb
test/unit/track_test.rb
-test/unit/user_test.rb
+test/unit/user_test.rb
+website/css/common.css
+website/index.html
View
@@ -1,56 +1,15 @@
+# Rakefile
require 'rubygems'
require 'rake'
-require 'rake/clean'
-require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
-require 'rake/contrib/rubyforgepublisher'
-require 'fileutils'
-require 'hoe'
-include FileUtils
-require File.join(File.dirname(__FILE__), 'lib', 'scrobbler', 'version')
+require 'echoe'
-AUTHOR = 'nunemaker' # can also be an array of Authors
-EMAIL = "nunemaker@gmail.com"
-DESCRIPTION = "wrapper for audioscrobbler (last.fm) web services"
-GEM_NAME = 'scrobbler' # what ppl will type to install your gem
-RUBYFORGE_PROJECT = 'scrobbler' # The unix name for your project
-HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
-DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
-
-NAME = "scrobbler"
-REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
-VERS = Scrobbler::VERSION::STRING + (REV ? ".#{REV}" : "")
-CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
-RDOC_OPTS = ['--quiet', '--title', 'scrobbler documentation',
- "--opname", "index.html",
- "--line-numbers",
- "--main", "README",
- "--inline-source"]
-
-class Hoe
- def extra_deps
- @extra_deps.reject { |x| Array(x).first == 'hoe' }
- end
-end
-
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-hoe = Hoe.new(GEM_NAME, VERS) do |p|
- p.author = AUTHOR
- p.description = DESCRIPTION
- p.email = EMAIL
- p.summary = DESCRIPTION
- p.url = HOMEPATH
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
- p.test_globs = ["test/**/test_*.rb"]
- p.clean_globs = CLEAN #An array of file patterns to delete on clean.
-
- # == Optional
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
- p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
+Echoe.new('scrobbler', '0.2.0') do |p|
+ p.description = "wrapper for audioscrobbler (last.fm) web services"
+ p.url = "http://scrobbler.rubyforge.org"
+ p.author = "John Nunemaker"
+ p.email = "nunemaker@gmail.com"
+ p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']]
+ p.need_tar_gz = false
end
desc 'Upload website files to rubyforge'
@@ -63,16 +22,9 @@ task :website do
sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
end
-desc 'Release the website and new gem version'
-task :deploy => [:check_version, :website, :release]
-
-task :check_version do
- unless ENV['VERSION']
- puts 'Must pass a VERSION=x.y.z release version'
- exit
- end
- unless ENV['VERSION'] == VERS
- puts "Please update your version.rb to match the release version, currently #{VERS}"
- exit
+desc 'Preps the gem for a new release'
+task :prepare do
+ %w[manifest build_gemspec].each do |task|
+ Rake::Task[task].invoke
end
end
View
@@ -16,4 +16,3 @@
require 'scrobbler/playing'
require 'scrobbler/rest'
-require 'scrobbler/version'
View
@@ -1,9 +0,0 @@
-module Scrobbler #:nodoc:
- module VERSION #:nodoc:
- MAJOR = 0
- MINOR = 2
- TINY = 0
-
- STRING = [MAJOR, MINOR, TINY].join('.')
- end
-end
View
@@ -0,0 +1,41 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{scrobbler}
+ s.version = "0.2.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.authors = ["John Nunemaker"]
+ s.date = %q{2008-12-03}
+ s.description = %q{wrapper for audioscrobbler (last.fm) web services}
+ s.email = %q{nunemaker@gmail.com}
+ s.extra_rdoc_files = ["lib/scrobbler/album.rb", "lib/scrobbler/artist.rb", "lib/scrobbler/base.rb", "lib/scrobbler/chart.rb", "lib/scrobbler/playing.rb", "lib/scrobbler/rest.rb", "lib/scrobbler/scrobble.rb", "lib/scrobbler/simpleauth.rb", "lib/scrobbler/tag.rb", "lib/scrobbler/track.rb", "lib/scrobbler/user.rb", "lib/scrobbler.rb", "README.txt"]
+ s.files = ["examples/album.rb", "examples/artist.rb", "examples/scrobble.rb", "examples/tag.rb", "examples/track.rb", "examples/user.rb", "History.txt", "lib/scrobbler/album.rb", "lib/scrobbler/artist.rb", "lib/scrobbler/base.rb", "lib/scrobbler/chart.rb", "lib/scrobbler/playing.rb", "lib/scrobbler/rest.rb", "lib/scrobbler/scrobble.rb", "lib/scrobbler/simpleauth.rb", "lib/scrobbler/tag.rb", "lib/scrobbler/track.rb", "lib/scrobbler/user.rb", "lib/scrobbler.rb", "Manifest", "MIT-LICENSE", "Rakefile", "README.txt", "scrobbler.gemspec", "setup.rb", "test/fixtures/xml/album/info.xml", "test/fixtures/xml/artist/fans.xml", "test/fixtures/xml/artist/similar.xml", "test/fixtures/xml/artist/topalbums.xml", "test/fixtures/xml/artist/toptags.xml", "test/fixtures/xml/artist/toptracks.xml", "test/fixtures/xml/tag/topalbums.xml", "test/fixtures/xml/tag/topartists.xml", "test/fixtures/xml/tag/toptags.xml", "test/fixtures/xml/tag/toptracks.xml", "test/fixtures/xml/track/fans.xml", "test/fixtures/xml/track/toptags.xml", "test/fixtures/xml/user/friends.xml", "test/fixtures/xml/user/neighbours.xml", "test/fixtures/xml/user/profile.xml", "test/fixtures/xml/user/recentbannedtracks.xml", "test/fixtures/xml/user/recentlovedtracks.xml", "test/fixtures/xml/user/recenttracks.xml", "test/fixtures/xml/user/systemrecs.xml", "test/fixtures/xml/user/topalbums.xml", "test/fixtures/xml/user/topartists.xml", "test/fixtures/xml/user/toptags.xml", "test/fixtures/xml/user/toptracks.xml", "test/fixtures/xml/user/weeklyalbumchart.xml", "test/fixtures/xml/user/weeklyalbumchart_from_1138536002_to_1139140802.xml", "test/fixtures/xml/user/weeklyartistchart.xml", "test/fixtures/xml/user/weeklyartistchart_from_1138536002_to_1139140802.xml", "test/fixtures/xml/user/weeklychartlist.xml", "test/fixtures/xml/user/weeklytrackchart.xml", "test/fixtures/xml/user/weeklytrackchart_from_1138536002_to_1139140802.xml", "test/mocks/rest.rb", "test/test_helper.rb", "test/unit/album_test.rb", "test/unit/artist_test.rb", "test/unit/chart_test.rb", "test/unit/tag_test.rb", "test/unit/track_test.rb", "test/unit/user_test.rb", "website/css/common.css", "website/index.html"]
+ s.has_rdoc = true
+ s.homepage = %q{http://scrobbler.rubyforge.org}
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Scrobbler", "--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{scrobbler}
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{wrapper for audioscrobbler (last.fm) web services}
+ s.test_files = ["test/test_helper.rb", "test/unit/album_test.rb", "test/unit/artist_test.rb", "test/unit/chart_test.rb", "test/unit/tag_test.rb", "test/unit/track_test.rb", "test/unit/user_test.rb"]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<hpricot>, [">= 0.4.86"])
+ s.add_runtime_dependency(%q<activesupport>, [">= 1.4.2"])
+ s.add_development_dependency(%q<echoe>, [">= 0"])
+ else
+ s.add_dependency(%q<hpricot>, [">= 0.4.86"])
+ s.add_dependency(%q<activesupport>, [">= 1.4.2"])
+ s.add_dependency(%q<echoe>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<hpricot>, [">= 0.4.86"])
+ s.add_dependency(%q<activesupport>, [">= 1.4.2"])
+ s.add_dependency(%q<echoe>, [">= 0"])
+ end
+end

0 comments on commit 8d28319

Please sign in to comment.