goodercode-zune 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +29 -3
  2. data/Rakefile +2 -1
  3. data/lib/zune.rb +26 -0
  4. metadata +18 -4
data/README CHANGED
@@ -1,6 +1,32 @@
1
- It's simple
2
- -------------------------------------------------------------------
1
+ ===================================================================================================
2
+ Install:
3
+ ===================================================================================================
3
4
  gem install goodercode-zune
4
5
 
6
+ ===================================================================================================
7
+ Usage:
8
+ ===================================================================================================
9
+ # the following call creates an object graph of play information
10
+ zune_card = Zune::ZuneCard.for('NoogaGamer')
5
11
 
6
- Zune::ZuneCard.for('NoogaGamer')
12
+ ===================================================================================================
13
+ Fields:
14
+ ===================================================================================================
15
+ ZuneCard defines the following fields:
16
+ * id
17
+ * label
18
+ * first_name
19
+ * status
20
+ * location
21
+ * bio
22
+ * total_plays
23
+ * user_id
24
+ * tile_big (url)
25
+ * tile_small (url)
26
+ * background_small (url)
27
+ * background_large (url)
28
+ * badges (Badge[])
29
+ * following (Artist[])
30
+ * favs (Track[])
31
+ * recent_spins (Track[])
32
+ * most_played (Artist[])
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'goodercode-zune'
10
- s.version = '0.2'
10
+ s.version = '0.3'
11
11
  s.has_rdoc = true
12
12
  s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'A Ruby API for accessing Zune user data'
@@ -19,6 +19,7 @@ spec = Gem::Specification.new do |s|
19
19
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
20
20
  s.require_path = "lib"
21
21
  s.bindir = "bin"
22
+ s.add_dependency('xml-mapping', '>= 0.9.1')
22
23
  end
23
24
 
24
25
  Rake::GemPackageTask.new(spec) do |p|
@@ -1,3 +1,27 @@
1
+ # Copyright (c) 2010 Kerry R. Wilson
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Kerry R. Wilson <kwilson@goodercode.com>
22
+ # Homepage: http://github.com/webdevwilson/ruby-zune
23
+
24
+
1
25
  require 'net/http'
2
26
  require 'xml/mapping'
3
27
 
@@ -30,6 +54,8 @@ module Zune
30
54
 
31
55
  ZUNE_URL = 'http://social.zune.net/zcard/usercardservice.ashx?zunetag='
32
56
 
57
+ # Used to retrieve Zune user data.
58
+ # ZuneCard.for zune_tag
33
59
  class ZuneCard
34
60
 
35
61
  def self.for(zune_tag)
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- version: "0.2"
7
+ - 3
8
+ version: "0.3"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Kerry R Wilson
@@ -15,8 +15,22 @@ cert_chain: []
15
15
 
16
16
  date: 2010-10-19 00:00:00 -05:00
17
17
  default_executable:
18
- dependencies: []
19
-
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
20
+ name: xml-mapping
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 9
30
+ - 1
31
+ version: 0.9.1
32
+ type: :runtime
33
+ version_requirements: *id001
20
34
  description: A Ruby API for accessing Zune user data
21
35
  email: kwilson@goodercode.com
22
36
  executables: []