lib/megam/gogs.rb in megam_gogs-0.2.0 vs lib/megam/gogs.rb in megam_gogs-0.3.0

- old
+ new

@@ -17,10 +17,11 @@ require "megam/gogs/errors" require "megam/gogs/repos" require "megam/gogs/tokens" require "megam/core/gogs_client/gogs_repo" require "megam/core/gogs_client/gogs_account" +require "megam/core/gogs_client/gogs_tokens" module Megam class Gogs @@ -36,11 +37,11 @@ } OPTIONS = { :headers => {}, :host => 'localhost', - :port => '3000', + :port => '6001', :nonblock => false, :scheme => 'http' } API_REST = "/api/v1" @@ -136,11 +137,11 @@ text.msg("End HTTP Request Data.") if @options[:scheme] == "https" @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}",@options) else Excon.defaults[:ssl_verify_peer] = false - @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:3000",@options) + @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:6001",@options) end @connection end @@ -164,10 +165,10 @@ text.msg("End HTTP Request Data.") if @options[:scheme] == "https" @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}",@options) else Excon.defaults[:ssl_verify_peer] = false - @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:3000",@options) + @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:6001",@options) end @connection end