Permalink
Browse files

Added Scrobbler::Version constant for the simple auth scrobbling and …

…using that in echoe as well. Prepped for 0.2.1 release.
  • Loading branch information...
1 parent 42f49f4 commit 20c8b2aa5427e90c36f7e990d1a0e91151ee7bf2 @jnunemaker committed Dec 4, 2008
Showing with 18 additions and 16 deletions.
  1. +2 −0 Manifest
  2. +2 −1 Rakefile
  3. +1 −2 examples/album.rb
  4. +1 −2 examples/artist.rb
  5. +1 −2 examples/scrobble.rb
  6. +1 −2 examples/tag.rb
  7. +1 −2 examples/track.rb
  8. +1 −2 examples/user.rb
  9. +2 −0 lib/scrobbler.rb
  10. +1 −1 lib/scrobbler/simpleauth.rb
  11. +3 −0 lib/scrobbler/version.rb
  12. +2 −2 scrobbler.gemspec
View
@@ -16,11 +16,13 @@ lib/scrobbler/simpleauth.rb
lib/scrobbler/tag.rb
lib/scrobbler/track.rb
lib/scrobbler/user.rb
+lib/scrobbler/version.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
View
@@ -2,10 +2,11 @@
require 'rubygems'
require 'rake'
require 'echoe'
+require 'lib/scrobbler/version'
WEBSITE_PATH = 'jnunemaker@rubyforge.org:/var/www/gforge-projects/scrobbler'
-Echoe.new('scrobbler', '0.2.0') do |p|
+Echoe.new('scrobbler', Scrobbler::Version) do |p|
p.description = "wrapper for audioscrobbler (last.fm) web services"
p.url = "http://scrobbler.rubyforge.org"
p.author = "John Nunemaker"
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
album = Scrobbler::Album.new('Carrie Underwood', 'Some Hearts', :include_info => true)
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
artist = Scrobbler::Artist.new('Carrie Underwood')
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
auth = Scrobbler::SimpleAuth.new(:user => 'chunky', :password => 'bacon')
auth.handshake!
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
tag = Scrobbler::Tag.new('country')
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
track = Scrobbler::Track.new('Carrie Underwood', 'Before He Cheats')
puts 'Fans'
View
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'scrobbler'
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
user = Scrobbler::User.new('jnunemaker')
View
@@ -3,6 +3,8 @@
$: << File.expand_path(File.dirname(__FILE__))
require 'scrobbler/base'
+require 'scrobbler/version'
+
require 'scrobbler/album'
require 'scrobbler/artist'
@@ -18,7 +18,7 @@ def initialize(args = {})
@user = args[:user] # last.fm username
@password = args[:password] # last.fm password
@client_id = 'rbs' # Client ID assigned by last.fm; Don't change this!
- @client_ver = Scrobbler::VERSION::STRING
+ @client_ver = Scrobbler::Version
raise ArgumentError, 'Missing required argument' if @user.blank? || @password.blank?
View
@@ -0,0 +1,3 @@
+module Scrobbler
+ Version = '0.2.1'
+end
View
@@ -2,15 +2,15 @@
Gem::Specification.new do |s|
s.name = %q{scrobbler}
- s.version = "0.2.0"
+ s.version = "0.2.1"
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.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", "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", "scrobbler.gemspec"]
s.has_rdoc = true
s.homepage = %q{http://scrobbler.rubyforge.org}
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Scrobbler", "--main", "README.txt"]

0 comments on commit 20c8b2a

Please sign in to comment.