scrobbler 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -16,6 +16,7 @@ lib/scrobbler/simpleauth.rb
16
16
  lib/scrobbler/tag.rb
17
17
  lib/scrobbler/track.rb
18
18
  lib/scrobbler/user.rb
19
+ lib/scrobbler/version.rb
19
20
  lib/scrobbler.rb
20
21
  Manifest
21
22
  MIT-LICENSE
data/Rakefile CHANGED
@@ -2,24 +2,29 @@
2
2
  require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
+ require 'lib/scrobbler/version'
5
6
 
6
- Echoe.new('scrobbler', '0.2.0') do |p|
7
+ WEBSITE_PATH = 'jnunemaker@rubyforge.org:/var/www/gforge-projects/scrobbler'
8
+
9
+ Echoe.new('scrobbler', Scrobbler::Version) do |p|
7
10
  p.description = "wrapper for audioscrobbler (last.fm) web services"
8
11
  p.url = "http://scrobbler.rubyforge.org"
9
12
  p.author = "John Nunemaker"
10
13
  p.email = "nunemaker@gmail.com"
11
14
  p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']]
12
15
  p.need_tar_gz = false
16
+ p.docs_host = WEBSITE_PATH
13
17
  end
14
18
 
15
19
  desc 'Upload website files to rubyforge'
16
20
  task :website do
17
- config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
18
- host = "#{config["username"]}@rubyforge.org"
19
- remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
20
- # remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
21
- local_dir = 'website'
22
- sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
21
+ sh %{rsync -av website/ #{WEBSITE_PATH}}
22
+ Rake::Task['website_docs'].invoke
23
+ end
24
+
25
+ task :website_docs do
26
+ Rake::Task['redocs'].invoke
27
+ sh %{rsync -av doc/ #{WEBSITE_PATH}/docs}
23
28
  end
24
29
 
25
30
  desc 'Preps the gem for a new release'
data/examples/album.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  album = Scrobbler::Album.new('Carrie Underwood', 'Some Hearts', :include_info => true)
5
4
 
data/examples/artist.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  artist = Scrobbler::Artist.new('Carrie Underwood')
5
4
 
data/examples/scrobble.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  auth = Scrobbler::SimpleAuth.new(:user => 'chunky', :password => 'bacon')
5
4
  auth.handshake!
data/examples/tag.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  tag = Scrobbler::Tag.new('country')
5
4
 
data/examples/track.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  track = Scrobbler::Track.new('Carrie Underwood', 'Before He Cheats')
5
4
  puts 'Fans'
data/examples/user.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'scrobbler'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'scrobbler'))
3
2
 
4
3
  user = Scrobbler::User.new('jnunemaker')
5
4
 
data/lib/scrobbler.rb CHANGED
@@ -3,6 +3,8 @@
3
3
  $: << File.expand_path(File.dirname(__FILE__))
4
4
 
5
5
  require 'scrobbler/base'
6
+ require 'scrobbler/version'
7
+
6
8
 
7
9
  require 'scrobbler/album'
8
10
  require 'scrobbler/artist'
@@ -18,7 +18,7 @@ module Scrobbler
18
18
  @user = args[:user] # last.fm username
19
19
  @password = args[:password] # last.fm password
20
20
  @client_id = 'rbs' # Client ID assigned by last.fm; Don't change this!
21
- @client_ver = Scrobbler::VERSION::STRING
21
+ @client_ver = Scrobbler::Version
22
22
 
23
23
  raise ArgumentError, 'Missing required argument' if @user.blank? || @password.blank?
24
24
 
@@ -0,0 +1,3 @@
1
+ module Scrobbler
2
+ Version = '0.2.1'
3
+ end
data/scrobbler.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{scrobbler}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
9
  s.date = %q{2008-12-03}
10
10
  s.description = %q{wrapper for audioscrobbler (last.fm) web services}
11
11
  s.email = %q{nunemaker@gmail.com}
12
- 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"]
13
- 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"]
12
+ 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/version.rb", "lib/scrobbler.rb", "README.txt"]
13
+ 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/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", "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"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://scrobbler.rubyforge.org}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Scrobbler", "--main", "README.txt"]
data/website/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  <p>Get your music on.</p>
14
14
 
15
15
  <ul id="nav">
16
- <li><a href="scrobbler/">Docs</a></li>
16
+ <li><a href="docs/">Docs</a></li>
17
17
  <li><a href="http://rubyforge.org/projects/scrobbler/">Rubyforge Page</a></li>
18
18
  </ul>
19
19
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrobbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -60,6 +60,7 @@ extra_rdoc_files:
60
60
  - lib/scrobbler/tag.rb
61
61
  - lib/scrobbler/track.rb
62
62
  - lib/scrobbler/user.rb
63
+ - lib/scrobbler/version.rb
63
64
  - lib/scrobbler.rb
64
65
  - README.txt
65
66
  files:
@@ -81,6 +82,7 @@ files:
81
82
  - lib/scrobbler/tag.rb
82
83
  - lib/scrobbler/track.rb
83
84
  - lib/scrobbler/user.rb
85
+ - lib/scrobbler/version.rb
84
86
  - lib/scrobbler.rb
85
87
  - Manifest
86
88
  - MIT-LICENSE