duwanis-rubyku 0.2.0 → 0.2.1
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/lib/rubyku/request.rb +2 -1
- data/lib/rubyku/version.rb +1 -1
- metadata +1 -1
data/lib/rubyku/request.rb
CHANGED
@@ -42,13 +42,14 @@ module Rubyku
|
|
42
42
|
#
|
43
43
|
# TODO: Still need to add support for generated posts, icons, and locations.
|
44
44
|
#
|
45
|
-
def update(message, jaiku_credentials = Rubyku::Settings.jaiku_credentials)
|
45
|
+
def update(message, icon=300, jaiku_credentials = Rubyku::Settings.jaiku_credentials)
|
46
46
|
log = Rubyku::Settings.logger
|
47
47
|
log.info("Attempting to update with message #{message}")
|
48
48
|
url = URI.parse('http://api.jaiku.com/json')
|
49
49
|
res = Net::HTTP.post_form(url,
|
50
50
|
{'method'=> 'presence.send',
|
51
51
|
'message'=> message,
|
52
|
+
'icon' => icon,
|
52
53
|
'user' => jaiku_credentials.username,
|
53
54
|
'personal_key' => jaiku_credentials.api_key})
|
54
55
|
unless res.code == "200"
|
data/lib/rubyku/version.rb
CHANGED