plurk 2.0 → 2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/plurk.rb +3 -3
  2. metadata +10 -6
@@ -126,7 +126,7 @@ module Plurk
126
126
 
127
127
  # params: content, qualifier
128
128
  def plurk_add(params={})
129
- send_request(:plurk_add, params)
129
+ send_request(:plurk_add, {:qualifier => "says"}.merge(params))
130
130
  end
131
131
 
132
132
  # params: plurk_id
@@ -155,8 +155,8 @@ module Plurk
155
155
  end
156
156
 
157
157
  # params: attachment[name]=image, attachment[file]
158
- def upload_picture(params={})
159
- file_upload(:upload_picture, params)
158
+ def upload_picture(filename)
159
+ file_upload(:upload_picture, {:attachment => {:file => filename, :name => "image"}})
160
160
  end
161
161
 
162
162
  # params: plurk_id, from_response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plurk
3
3
  version: !ruby/object:Gem::Version
4
- version: "2.0"
4
+ version: "2.1"
5
5
  platform: ruby
6
6
  authors:
7
7
  - kates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-18 00:00:00 +08:00
12
+ date: 2010-01-30 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,9 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- description: An unofficial ruby Plurk client.
25
+ description: |
26
+ An unofficial ruby Plurk client.
27
+
26
28
  email: katesgasis@gmail.com
27
29
  executables: []
28
30
 
@@ -32,8 +34,10 @@ extra_rdoc_files: []
32
34
 
33
35
  files:
34
36
  - lib/plurk.rb
35
- has_rdoc: false
37
+ has_rdoc: true
36
38
  homepage: http://github.com/kates/plurk
39
+ licenses: []
40
+
37
41
  post_install_message:
38
42
  rdoc_options: []
39
43
 
@@ -54,9 +58,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
58
  requirements: []
55
59
 
56
60
  rubyforge_project:
57
- rubygems_version: 1.3.1
61
+ rubygems_version: 1.3.5
58
62
  signing_key:
59
- specification_version: 2
63
+ specification_version: 3
60
64
  summary: A Plurk ruby client
61
65
  test_files: []
62
66