smartfm 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -1
- data/lib/smartfm/core/version.rb +2 -2
- data/lib/smartfm/rest_client/base.rb +2 -2
- metadata +6 -14
data/ChangeLog
CHANGED
data/lib/smartfm/core/version.rb
CHANGED
@@ -177,14 +177,14 @@ class Smartfm::RestClient::Base
|
|
177
177
|
def self.http_delete(auth, path, params = {})
|
178
178
|
self.api_key_required
|
179
179
|
params.merge!(:api_key => self.config.api_key)
|
180
|
+
path = "#{path}?#{params.to_http_str}"
|
180
181
|
case auth.mode
|
181
182
|
when :oauth
|
182
183
|
response = auth.auth_token.delete(path, params.stringfy_keys!.stringfy_values!)
|
183
184
|
handle_rest_response(response, :nothing)
|
184
185
|
when :basic_auth
|
185
186
|
http_connect do
|
186
|
-
delete_req = Net::HTTP::
|
187
|
-
delete_req.body = params.merge(:_method => 'DELETE').to_http_str
|
187
|
+
delete_req = Net::HTTP::Delete.new(path, http_header)
|
188
188
|
delete_req.basic_auth(auth.account.username, auth.account.password)
|
189
189
|
[delete_req, :nothing]
|
190
190
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-29 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -47,42 +47,32 @@ files:
|
|
47
47
|
- Rakefile
|
48
48
|
- test/smartfm_test.rb
|
49
49
|
- test/test_helper.rb
|
50
|
-
- spec/ext
|
51
50
|
- spec/ext/hash_spec.rb
|
52
|
-
- spec/smartfm
|
53
|
-
- spec/smartfm/core
|
54
51
|
- spec/smartfm/core/auth_spec.rb
|
55
52
|
- spec/smartfm/core/config_spec.rb
|
56
53
|
- spec/smartfm/core/version_spec.rb
|
57
|
-
- spec/smartfm/model
|
58
54
|
- spec/smartfm/model/base_spec.rb
|
59
55
|
- spec/smartfm/model/item_spec.rb
|
60
56
|
- spec/smartfm/model/list_spec.rb
|
61
57
|
- spec/smartfm/model/sentence_spec.rb
|
62
58
|
- spec/smartfm/model/user_spec.rb
|
63
|
-
- spec/smartfm/rest_client
|
64
59
|
- spec/smartfm/rest_client/base_spec.rb
|
65
60
|
- spec/smartfm/rest_client/item_spec.rb
|
66
61
|
- spec/smartfm/rest_client/list_spec.rb
|
67
62
|
- spec/smartfm/rest_client/sentence_spec.rb
|
68
63
|
- spec/smartfm/rest_client/user_spec.rb
|
69
64
|
- spec/spec_helper.rb
|
70
|
-
- lib/ext
|
71
65
|
- lib/ext/hash.rb
|
72
|
-
- lib/smartfm
|
73
|
-
- lib/smartfm/core
|
74
66
|
- lib/smartfm/core/auth.rb
|
75
67
|
- lib/smartfm/core/config.rb
|
76
68
|
- lib/smartfm/core/version.rb
|
77
69
|
- lib/smartfm/core.rb
|
78
|
-
- lib/smartfm/model
|
79
70
|
- lib/smartfm/model/base.rb
|
80
71
|
- lib/smartfm/model/item.rb
|
81
72
|
- lib/smartfm/model/list.rb
|
82
73
|
- lib/smartfm/model/sentence.rb
|
83
74
|
- lib/smartfm/model/user.rb
|
84
75
|
- lib/smartfm/model.rb
|
85
|
-
- lib/smartfm/rest_client
|
86
76
|
- lib/smartfm/rest_client/base.rb
|
87
77
|
- lib/smartfm/rest_client/item.rb
|
88
78
|
- lib/smartfm/rest_client/list.rb
|
@@ -93,6 +83,8 @@ files:
|
|
93
83
|
- examples/pure_ruby.rb
|
94
84
|
has_rdoc: true
|
95
85
|
homepage: http://smartfm.rubyforge.org
|
86
|
+
licenses: []
|
87
|
+
|
96
88
|
post_install_message:
|
97
89
|
rdoc_options:
|
98
90
|
- --title
|
@@ -124,9 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
116
|
requirements: []
|
125
117
|
|
126
118
|
rubyforge_project: smartfm
|
127
|
-
rubygems_version: 1.3.
|
119
|
+
rubygems_version: 1.3.2
|
128
120
|
signing_key:
|
129
|
-
specification_version:
|
121
|
+
specification_version: 3
|
130
122
|
summary: A rubygem for smart.fm APIs
|
131
123
|
test_files:
|
132
124
|
- test/smartfm_test.rb
|