soundcloud 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/soundcloud.rb +4 -2
- data/lib/soundcloud/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -76,7 +76,7 @@ It is providing simple methods to handle authorization and to execute HTTP calls
|
|
76
76
|
|
77
77
|
#### Register a client for http://sandbox-soundcloud.com with an existing access_token and start following a user
|
78
78
|
# register a client for http://sandbox-soundcloud.com with existing access_token
|
79
|
-
client = Soundcloud.new(:site => '
|
79
|
+
client = Soundcloud.new(:site => 'sandbox-soundcloud.com', :access_token => 'SOME_ACCESS_TOKEN')
|
80
80
|
|
81
81
|
# create a new following
|
82
82
|
user_id_to_follow = 123
|
data/lib/soundcloud.rb
CHANGED
@@ -101,7 +101,9 @@ private
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def construct_query_arguments(path_or_uri, options={})
|
104
|
-
|
104
|
+
uri = URI.parse(path_or_uri)
|
105
|
+
path = uri.path
|
106
|
+
|
105
107
|
scheme = use_ssl? ? 'https' : 'http'
|
106
108
|
options = options.dup
|
107
109
|
options[:query] ||= {}
|
@@ -112,7 +114,7 @@ private
|
|
112
114
|
options[:query][CLIENT_ID_PARAM_NAME] = client_id
|
113
115
|
end
|
114
116
|
[
|
115
|
-
"#{scheme}://#{api_host}#{path}",
|
117
|
+
"#{scheme}://#{api_host}#{path}#{uri.query ? "?#{uri.query}" : ""}",
|
116
118
|
options
|
117
119
|
]
|
118
120
|
end
|
data/lib/soundcloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soundcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Johannes Wagener
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-27 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|