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 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 upload_url
141
- "http://#{TunecoreDirect::Base.tunecore_server}/partner/songs?album_id=#{self.album_id}"
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
 
@@ -1,8 +1,8 @@
1
1
  module TunecoreDirect #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 0
5
- TINY = 12
4
+ MINOR = 1
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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://localhost:3000"
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.12
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-03 00:00:00 -04:00
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