soundcloud-ruby-api-wrapper 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 2
4
+ :patch: 3
@@ -111,7 +111,7 @@ module Soundcloud
111
111
  end
112
112
 
113
113
  def update
114
- if not self.asset_data.nil?
114
+ unless attributes[:asset_data].nil?
115
115
  raise 'Multipart update is NotImplemented'
116
116
  self.class.send_multipart_request(:put,'/tracks/#{self.id}','replacement[asset_data]',@asset_data)
117
117
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ruby-api-wrapper}
5
- s.version = "0.3.2"
5
+ s.version = "0.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Johannes Wagener"]
9
- s.date = %q{2009-07-10}
9
+ s.date = %q{2009-07-22}
10
10
  s.email = %q{johannes@wagener.cc}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -55,6 +55,17 @@ describe "Soundcloud::Models::Track" do
55
55
  lambda { track.reload }.should raise_error ActiveResource::ResourceNotFound
56
56
  end
57
57
 
58
+ it 'should be able to update an attribute' do
59
+ track = @sc.Track.find('static-test-track')
60
+
61
+ track.title = 'This is updated'
62
+ track.save
63
+
64
+ track.reload
65
+
66
+ track.title.should == 'This is updated'
67
+ end
68
+
58
69
  it 'should be able to add a user to permissions of a track and delete it again' do
59
70
  track = @sc.Track.find(:one, :from => '/users/api-test-1/tracks/static-test-track')
60
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soundcloud-ruby-api-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Wagener
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-10 00:00:00 -07:00
12
+ date: 2009-07-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency