pingfm 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/pingfm.rb +1 -1
- data/lib/pingfm/client.rb +8 -2
- metadata +6 -4
data/History.txt
CHANGED
data/lib/pingfm.rb
CHANGED
data/lib/pingfm/client.rb
CHANGED
@@ -72,7 +72,7 @@ module Pingfm
|
|
72
72
|
end
|
73
73
|
return services
|
74
74
|
else
|
75
|
-
|
75
|
+
return status_fail(response)
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -211,7 +211,13 @@ module Pingfm
|
|
211
211
|
|
212
212
|
# Failed response.
|
213
213
|
def status_fail(response)
|
214
|
-
|
214
|
+
if response.elements.include? 'rsp/message'
|
215
|
+
message = response.elements['rsp/message'].text
|
216
|
+
else
|
217
|
+
message = "Unknown error from Ping.fm"
|
218
|
+
end
|
219
|
+
|
220
|
+
return {'status' => 'FAIL', 'message' => message}
|
215
221
|
end
|
216
222
|
|
217
223
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pingfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krunoslav Husak
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date:
|
14
|
+
date: 2009-09-27 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|
@@ -54,6 +54,8 @@ files:
|
|
54
54
|
- tasks/test.rake
|
55
55
|
has_rdoc: true
|
56
56
|
homepage: http://pingfm.rubyforge.org/
|
57
|
+
licenses: []
|
58
|
+
|
57
59
|
post_install_message:
|
58
60
|
rdoc_options:
|
59
61
|
- --main
|
@@ -75,9 +77,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
77
|
requirements: []
|
76
78
|
|
77
79
|
rubyforge_project: pingfm
|
78
|
-
rubygems_version: 1.3.
|
80
|
+
rubygems_version: 1.3.5
|
79
81
|
signing_key:
|
80
|
-
specification_version:
|
82
|
+
specification_version: 3
|
81
83
|
summary: Ping.fm (http://ping.fm) is a simple service that makes updating your social networks a snap, and this it's Ruby library.
|
82
84
|
test_files: []
|
83
85
|
|