duwanis-rubyku 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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"
@@ -2,7 +2,7 @@ module Rubyku #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duwanis-rubyku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Morgan