Sha256: b005b99e19bae9d03bf837bce47b2565f04a9bf73123f4e62bfeea5b8e9bef99
Contents?: true
Size: 485 Bytes
Versions: 8
Compression:
Stored size: 485 Bytes
Contents
#$LOAD_PATH.unshift('/home/morpheyesh/code/workspace/megam/gogs.rb/lib') #require('gogs.rb') require 'rubygems' require 'megam_gogs' class Test def self.test(uname, pass) begin @test = Megam::GogsRepo.list(uname, pass) rescue ArgumentError => ae hash = {"msg" => ae.message, "msg_type" => "error"} re = Megam::Error.from_hash(hash) @res = {"data" => {:body => re}} return @res["data"][:body] end puts @test @test end end test(morpheyesh, 1234567)
Version data entries
8 entries across 8 versions & 1 rubygems