tunecore_direct 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module TunecoreDirect
47
47
  album.sale_date = album_element.elements["sale-date"].text
48
48
  album.primary_genre = album_element.elements["primary-genre"].text
49
49
  album.secondary_genre = album_element.elements["secondary-genre"].text unless album_element.elements["secondary-genre"].nil?
50
- album.artist_name = album_element.elements["artist"].elements["name"].text
50
+ album.artist_name = album_element.elements["artist-name"].text
51
51
  album.label_name = album_element.elements["label-name"].text
52
52
  album.c_copyright = album_element.elements["c-copyright"].text
53
53
  album.p_copyright = album_element.elements["p-copyright"].text
@@ -18,7 +18,7 @@ module TunecoreDirect
18
18
  @doc = REXML::Document.new( body )
19
19
  @type = @doc.root.name
20
20
  @status = @doc.root.elements["/*/status"].text
21
-
21
+
22
22
  if @status == "error"
23
23
  #collect the error messages and put them in an array of hashes
24
24
  @errors = @doc.root.elements.collect("/*/error"){|e| {:attribute => e.elements["attribute"].text, :message => e.elements["message"].text} }
@@ -33,7 +33,9 @@ module TunecoreDirect
33
33
  "name" => @name,
34
34
  "artist_name" => @artist_name,
35
35
  "track_num" => @track_num,
36
- "parental_advisory" => @parental_advisory }
36
+ "parental_advisory" => @parental_advisory,
37
+ "asset_url" => @asset_url }
38
+
37
39
  res = req.create_song( params )
38
40
  raise "Unexpected return type: #{res.type}" unless res.type == "song"
39
41
  if res.status == "created"
@@ -2,7 +2,7 @@ module TunecoreDirect #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 11
5
+ TINY = 12
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -57,6 +57,7 @@ class TestTunecoreDirect < Test::Unit::TestCase
57
57
  song.album_id = album.album_id
58
58
  song.name = "My song"
59
59
  song.track_num = 1
60
+ song.asset_url = "http://s3.amazonaws.com/my_bucket/track_01.mp3"
60
61
  assert song.save == true
61
62
 
62
63
  # get all albums
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunecore_direct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kane
@@ -30,7 +30,7 @@ cert_chain:
30
30
  f3TSOQ==
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2008-08-26 00:00:00 -04:00
33
+ date: 2008-09-03 00:00:00 -04:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file