soundcloud 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -5
- data/lib/soundcloud/version.rb +1 -1
- metadata +81 -66
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Soundcloud API Wrapper
|
2
2
|
## Description
|
3
|
-
The Soundcloud gem is a thin wrapper for the Soundcloud API based of the httparty gem.
|
4
|
-
It
|
3
|
+
The Soundcloud gem is a thin wrapper for the Soundcloud API based off of the httparty gem.
|
4
|
+
It provides simple methods to handle authorization and to execute HTTP calls.
|
5
5
|
|
6
6
|
## Requirements
|
7
7
|
* httmultiparty
|
@@ -26,8 +26,8 @@ It is providing simple methods to handle authorization and to execute HTTP calls
|
|
26
26
|
|
27
27
|
#### OAuth2 user credentials flow and print the username of the authenticated user
|
28
28
|
# register a new client, which will exchange the username, password for an access_token
|
29
|
-
# NOTE: the SoundCloud API Docs
|
30
|
-
# In any case never store the password of a user.
|
29
|
+
# NOTE: the SoundCloud API Docs advise not to use the user credentials flow in a web app.
|
30
|
+
# In any case, never store the password of a user.
|
31
31
|
client = Soundcloud.new({
|
32
32
|
:client_id => YOUR_CLIENT_ID,
|
33
33
|
:client_secret => YOUR_CLIENT_SECRET,
|
@@ -151,5 +151,5 @@ Returns a date based on the expires_in attribute returned from a token exchange.
|
|
151
151
|
Will return true or false depending on if expires_at is in the past.
|
152
152
|
|
153
153
|
#### Error Handling
|
154
|
-
In case a request was not successful a Soundcloud::ResponseError will be
|
154
|
+
In case a request was not successful a Soundcloud::ResponseError will be raised.
|
155
155
|
The original HTTParty response is available through Soundcloud::ResponseError#response.
|
data/lib/soundcloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,115 +1,130 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: soundcloud
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.9
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Johannes Wagener
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-07-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: httparty
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 0.7.3
|
25
22
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: httmultiparty
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
25
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 0.3
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.7.3
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: httmultiparty
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0.3'
|
36
38
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: hashie
|
40
39
|
prerelease: false
|
41
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0.3'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hashie
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
42
49
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
47
54
|
type: :runtime
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
55
|
prerelease: false
|
52
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
53
65
|
none: false
|
54
|
-
requirements:
|
66
|
+
requirements:
|
55
67
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
68
|
+
- !ruby/object:Gem::Version
|
57
69
|
version: 2.5.0
|
58
70
|
type: :development
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: fakeweb
|
62
71
|
prerelease: false
|
63
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.5.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: fakeweb
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
64
81
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
69
86
|
type: :development
|
70
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
71
94
|
description: A simple Soundcloud API wrapper based of httparty, multipart-post, httmultiparty
|
72
|
-
email:
|
95
|
+
email:
|
73
96
|
- johannes@soundcloud.com
|
74
97
|
executables: []
|
75
|
-
|
76
98
|
extensions: []
|
77
|
-
|
78
99
|
extra_rdoc_files: []
|
79
|
-
|
80
|
-
files:
|
100
|
+
files:
|
81
101
|
- lib/soundcloud/array_response_wrapper.rb
|
82
102
|
- lib/soundcloud/hash_response_wrapper.rb
|
83
103
|
- lib/soundcloud/version.rb
|
84
104
|
- lib/soundcloud.rb
|
85
105
|
- README.md
|
86
|
-
has_rdoc: true
|
87
106
|
homepage: http://dev.soundcloud.com
|
88
107
|
licenses: []
|
89
|
-
|
90
108
|
post_install_message:
|
91
109
|
rdoc_options: []
|
92
|
-
|
93
|
-
require_paths:
|
110
|
+
require_paths:
|
94
111
|
- lib
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
113
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version:
|
101
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
119
|
none: false
|
103
|
-
requirements:
|
104
|
-
- -
|
105
|
-
- !ruby/object:Gem::Version
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
106
123
|
version: 1.3.6
|
107
124
|
requirements: []
|
108
|
-
|
109
125
|
rubyforge_project: soundcloud
|
110
|
-
rubygems_version: 1.
|
126
|
+
rubygems_version: 1.8.24
|
111
127
|
signing_key:
|
112
128
|
specification_version: 3
|
113
129
|
summary: A simple Soundcloud API wrapper
|
114
130
|
test_files: []
|
115
|
-
|