preposterous 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/preposterous.rb +1 -0
- data/lib/preposterous/base.rb +4 -5
- data/preposterous.gemspec +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/preposterous.rb
CHANGED
data/lib/preposterous/base.rb
CHANGED
@@ -24,7 +24,6 @@ module Preposterous
|
|
24
24
|
response["post"] if not response.nil?
|
25
25
|
end
|
26
26
|
|
27
|
-
# TODO: refactor this and the newpost method
|
28
27
|
def updatepost(fields={}, *files)
|
29
28
|
# create options hash
|
30
29
|
options = generate_post_options(fields, *files)
|
@@ -36,16 +35,16 @@ module Preposterous
|
|
36
35
|
# this is BROKEN
|
37
36
|
# for some reason the XML will not parse
|
38
37
|
# the CDATA fields are throwing off the parser
|
39
|
-
def readposts(
|
40
|
-
response = perform_get("/api/readposts")
|
38
|
+
def readposts(fields={})
|
39
|
+
response = perform_get("/api/readposts", :fields => fields)
|
41
40
|
response["post"] if not response.nil?
|
42
41
|
end
|
43
42
|
|
44
43
|
# for some reason posterous does not recognize the post_id
|
45
44
|
# i think there maybe something wrong with their API
|
46
45
|
# at least I hope it isn't me
|
47
|
-
def newcomment(
|
48
|
-
response = perform_post("/api/newcomment")
|
46
|
+
def newcomment(fields={})
|
47
|
+
response = perform_post("/api/newcomment", :fields => fields)
|
49
48
|
response["comment"] if not response.nil?
|
50
49
|
end
|
51
50
|
|
data/preposterous.gemspec
CHANGED