lib/pgit/story.rb in pgit-0.0.3 vs lib/pgit/story.rb in pgit-0.0.4
- old
+ new
@@ -26,15 +26,11 @@
def api_version
"v5"
end
def get!
- request = `#{get_request}`
- if request.match(/error/)
- raise request
- else
- request
- end
+ validator = PGit::PivotalRequestValidator.new `#{get_request}`
+ validator.request
end
def link
"'https://www.pivotaltracker.com/services/#{api_version}/projects/#{@project_id}/stories/#{@id}'"
end