lib/octopi.rb in fcoury-octopi-0.0.4 vs lib/octopi.rb in fcoury-octopi-0.0.5
- old
+ new
@@ -49,10 +49,11 @@
end
def find_all(path, result_key, query)
get(path, { :query => query, :id => query })[result_key]
end
+
def get_raw(path, params)
get(path, params, 'plain')
end
private
@@ -73,10 +74,10 @@
end
resp
end
end
- %w{base resource user tag repository file_object blob commit}.
+ %w{base resource user tag repository issue file_object blob commit}.
each{|f| require "#{File.dirname(__FILE__)}/octopi/#{f}"}
class FormatError < StandardError
def initialize(f)
$stderr.puts "Got unexpected format (got #{f.first} for #{f.last})"