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.
- data/lib/tunecore_direct/album.rb +1 -1
- data/lib/tunecore_direct/response.rb +1 -1
- data/lib/tunecore_direct/song.rb +3 -1
- data/lib/tunecore_direct/version.rb +1 -1
- data/test/test_tunecore_direct.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
@@ -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
|
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} }
|
data/lib/tunecore_direct/song.rb
CHANGED
@@ -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"
|
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.
|
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-
|
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
|