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

Version Path
megam_gogs-0.8.0 test.rb
megam_gogs-0.7.0 test.rb
megam_gogs-0.6.0 test.rb
megam_gogs-0.5.0 test.rb
megam_gogs-0.4.0 test.rb
megam_gogs-0.3.0 test.rb
megam_gogs-0.2.0 test.rb
megam_gogs-0.1.0 test.rb