soundcloud-ruby-api-wrapper 0.4.6 → 0.4.7

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: 4
4
- :patch: 6
4
+ :patch: 7
data/lib/soundcloud.rb CHANGED
@@ -11,7 +11,7 @@ gem 'oauth-active-resource'
11
11
  require 'oauth_active_resource'
12
12
 
13
13
 
14
- module Soundcloud
14
+ module Soundcloud
15
15
  # Will create an OAuth Consumer for you.
16
16
  #
17
17
  # You have to register your application on soundcloud.com to get a consumer token and secret.
@@ -25,19 +25,19 @@ module Soundcloud
25
25
  :request_token_path => "/oauth/request_token",
26
26
  :access_token_path => "/oauth/access_token",
27
27
  :authorize_path => "/oauth/authorize"
28
- })
28
+ })
29
29
  end
30
30
 
31
31
 
32
32
  # Will create a soundcloud module containing all the soundcloud models.
33
33
  # This module is bound to the given OAuth access token.
34
- #
34
+ #
35
35
  # Options:
36
36
  # :access_token = your oauth access token
37
37
  # :site = soundcloud api site (i.e. "http://api.sandbox-soundcloud.com", defaults to "http://api.soundcloud.com")
38
38
  # Examples:
39
39
  #
40
- # # unauthenticated to "http://api.soundcloud.com"
40
+ # # unauthenticated to "http://api.soundcloud.com"
41
41
  # cl = Soundcloud.register()
42
42
  #
43
43
  # # authenticated connection to soundcloud sandbox
@@ -52,10 +52,9 @@ module Soundcloud
52
52
  add_resolver_to_mod(mod)
53
53
  end
54
54
 
55
-
56
- # Quick hack to add support api.soundcloud.com/resolve . TODO jw cleanup :)
55
+ # Quick hack to add support api.soundcloud.com/resolve . TODO jw cleanup :)
57
56
  def self.add_resolver_to_mod(mod)
58
- mod.module_eval do
57
+ mod.module_eval do
59
58
  def self.resolve(url)
60
59
  base = self.const_get('Base')
61
60
  response = base.oauth_connection.get("/resolve?url=#{url}")
@@ -72,11 +71,11 @@ module Soundcloud
72
71
  end
73
72
  end
74
73
 
75
- require 'soundcloud/models/base'
76
- require 'soundcloud/models/user'
77
- require 'soundcloud/models/comment'
78
- require 'soundcloud/models/event'
79
- require 'soundcloud/models/playlist'
80
- require 'soundcloud/models/track'
81
- require 'soundcloud/models/group'
74
+ require File.expand_path('../soundcloud/models/base', __FILE__)
75
+ require File.expand_path('../soundcloud/models/user', __FILE__)
76
+ require File.expand_path('../soundcloud/models/comment', __FILE__)
77
+ require File.expand_path('../soundcloud/models/playlist', __FILE__)
78
+ require File.expand_path('../soundcloud/models/track', __FILE__)
79
+ require File.expand_path('../soundcloud/models/group', __FILE__)
80
+
82
81
  require File.expand_path('../soundcloud/sc_oauth_active_resource', __FILE__)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{soundcloud-ruby-api-wrapper}
8
- s.version = "0.4.6"
8
+ s.version = "0.4.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johannes Wagener", "Thor Kell", "Hannes Tyden"]
12
- s.date = %q{2010-05-18}
12
+ s.date = %q{2010-05-19}
13
13
  s.email = %q{johannes@soundcloud.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
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.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Wagener
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-05-18 00:00:00 +02:00
14
+ date: 2010-05-19 00:00:00 +02:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency