Skip to content

Commit

Permalink
Changed listPriorities to priorities to match the way everything else…
Browse files Browse the repository at this point in the history
… is named.

search function now always will have ixBug in the list of columns to return on found cases because it is the key for the Hash to be sent back.
  • Loading branch information
austinmoody committed Jul 3, 2008
1 parent 5638c97 commit 8604093
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
26 changes: 25 additions & 1 deletion TODO
@@ -1,4 +1,28 @@
== FogBugz API Todo

* Finish it! At the moment it is very incomplete. Pretty much just the list functions, search, and newCase.
* Finish it! At the moment it is very incomplete. Pretty much just the list functions, search, and new_case. Essentially take a look at the FogBugz API and see what is missing. Specifically:
* Case manipulation
* edit, assign, reactivate, reopen, resolve, close, email, reply, forward
* file uploads
* new area
* new person
* new fix for
* view project
* view area
* view person
* view fix for
* view category
* view priority
* view status
* view mailbox
* working schedule
* time tracking
* source control
* release notes
* wikis
* discussion groups
* BugzScout
* subscriptions
* mark as viewed
* settings
* Create tests and make sure they work.
2 changes: 1 addition & 1 deletion fogbugz-api.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "fogbugz-api"
s.version = "0.0.2"
s.version = "0.0.3"
s.date = "2008-07-03"

s.summary = "Ruby wrapper for FogBugz API"
Expand Down
5 changes: 3 additions & 2 deletions lib/fogbugz-api.rb
Expand Up @@ -167,7 +167,7 @@ def categories
return list_process(result,"category","sCategory")
end

def listPriorities
def priorities
cmd = {"cmd" => "listPriorities", "token" => @token}
result = Hpricot.XML(@connection.post(@api_url,to_params(cmd)).body)
return list_process(result,"priority","sPriority")
Expand Down Expand Up @@ -236,7 +236,8 @@ def search(q, cols=CASE_COLUMNS, max=nil)
"cmd" => "search",
"token" => @token,
"q" => q,
"cols" => cols.join(",")
# ixBug is the key for the hash returned so I'm adding it to the cols array just in case
"cols" => (cols + ["ixBug"]).join(",")
}
cmd = {"max" => max}.merge(cmd) if max
result = Hpricot.XML(@connection.post(@api_url,to_params(cmd)).body)
Expand Down

0 comments on commit 8604093

Please sign in to comment.