Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
updated blog_gp to pull things out of the response using symbols not …
Browse files Browse the repository at this point in the history
…strings
  • Loading branch information
bryanjswift committed Jan 28, 2009
1 parent a025fb7 commit a7921e6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ruby/vimblog.rb
Expand Up @@ -173,15 +173,15 @@ def blog_gp
VIM::evaluate("a:0").to_i > 0 ? ((id = VIM::evaluate("a:1")) ? id : id = nil) : id = nil
resp = blog_api("gp", id)
v = VIM::Buffer.current
v.append(v.count-1, "Post : [#{resp['post_id']}]")
v.append(v.count-1, "Title : #{resp['post_title']}")
v.append(v.count-1, "Date : #{resp['post_date']}")
v.append(v.count-1, "Link : #{resp['post_link']}")
v.append(v.count-1, "Permalink: #{resp['post_permaLink']}")
v.append(v.count-1, "Author : #{resp['post_author']}")
v.append(v.count-1, "Comments : #{resp['post_allow_comments']}")
v.append(v.count-1, "Pings : #{resp['post_allow_pings']}")
v.append(v.count-1, "Categs : #{resp['post_categories']}")
v.append(v.count-1, "Post : [#{resp[:postid]}]")
v.append(v.count-1, "Title : #{resp[:title]}")
v.append(v.count-1, "Date : #{resp[:date]}")
v.append(v.count-1, "Link : #{resp[:link]}")
v.append(v.count-1, "Permalink: #{resp[:permalink]}")
v.append(v.count-1, "Author : #{resp[:author]}")
v.append(v.count-1, "Comments : #{resp[:comment_status]}")
v.append(v.count-1, "Pings : #{resp[:ping_status]}")
v.append(v.count-1, "Categs : #{resp[:categories]}")
v.append(v.count-1, " ")
v.append(v.count-1, " ")
resp['post_body'].each_line { |l| v.append(v.count-1, l.strip)}
Expand Down

0 comments on commit a7921e6

Please sign in to comment.