tunecore_direct 0.0.12 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/tunecore_direct/album.rb +7 -2
- data/lib/tunecore_direct/version.rb +2 -2
- data/test/test_tunecore_direct.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -72,6 +72,11 @@ module TunecoreDirect
|
|
72
72
|
"p_copyright" => @p_copyright,
|
73
73
|
"recording_location" => @recording_location,
|
74
74
|
"stores" => @stores }
|
75
|
+
|
76
|
+
if @artwork.asset_url
|
77
|
+
params["artwork_asset_url"] = @artwork.url
|
78
|
+
end
|
79
|
+
|
75
80
|
res = req.create_album(params)
|
76
81
|
raise "Unexpected return type: #{res.type}" unless res.type == "album"
|
77
82
|
if res.status == "created"
|
@@ -137,8 +142,8 @@ module TunecoreDirect
|
|
137
142
|
!@takedown.nil?
|
138
143
|
end
|
139
144
|
|
140
|
-
def
|
141
|
-
"http://#{
|
145
|
+
def artwork_upload_url
|
146
|
+
"http://#{tunecore_server}/partner/artwork_upload?album_id=#{self.album_id}&api_key=#{api_key}"
|
142
147
|
end
|
143
148
|
|
144
149
|
|
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/test_helper.rb'
|
|
3
3
|
class TestTunecoreDirect < Test::Unit::TestCase
|
4
4
|
|
5
5
|
def setup
|
6
|
-
TunecoreDirect::Base.tunecore_server = "http://
|
6
|
+
TunecoreDirect::Base.tunecore_server = "http://test.tunecore.com"
|
7
7
|
TunecoreDirect::Base.api_key = "testkey"
|
8
8
|
|
9
9
|
#random email address so we dont get collisions after the first test
|
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.1.0
|
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-09-
|
33
|
+
date: 2008-09-18 00:00:00 -04:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|