megam_gogs 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7e0025cdd7d1b01837b2d833a68979930972901
4
- data.tar.gz: 1d5933d348d2807f6549ea025fe97f994d4b313e
3
+ metadata.gz: 46fbc56cb1e5f41dd7a528290e92862f796aa35a
4
+ data.tar.gz: 40a8946c92a6f1ca41d2ba010b780b0424f4d2b7
5
5
  SHA512:
6
- metadata.gz: f216d2c53855c1f6ea6dde34345c152eb6f5a095a61ff6a8ee109a4f351c4adf2b78e45e88b38f96af4b6c6205e8caacaf6a6c6314acd77d960357e8de5e8ed9
7
- data.tar.gz: a2267d1bc619dd147b3042ceed1bb90fb025f82c277af87c5f827689ab62352c20d8c115f61d05670e21510741f2ebd9e620585952e98bfe3be02c731cf7c5b6
6
+ metadata.gz: 38d1170cadc249cdcc3c5931dfb8d83a5bb92bea3355b8660d8fc9bfb68037709dcbddcc590b7943075d5733d604b1a2fbc14f70af96b1a75f3257dd39fd8ff2
7
+ data.tar.gz: 624b7983b514024963c608355ef6137ca210542629486e9be4168086da575b074f36920df5a13779859e38adb74705de221a2e662db7a2581d81ddd9d2420a45
data/lib/gogs_api.rb CHANGED
@@ -1 +1 @@
1
- require(File.join(File.dirname(__FILE__), "main", "gogs"))
1
+ require(File.join(File.dirname(__FILE__), "megam", "gogs"))
@@ -32,9 +32,10 @@ module Megam
32
32
  end
33
33
 
34
34
 
35
- # Load a account by email_p
35
+
36
36
  def self.list(username, password)
37
37
  #acct = self.new(username, password)
38
+ puts "Entering into the GOGS API successfully-0-0-0-0-0-0-0-0"
38
39
  megams = Megam::Gogs.new
39
40
  res = megams.get_tokens(username, password)
40
41
  hash = {}
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class Gogs
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
data/lib/megam/gogs.rb CHANGED
@@ -19,6 +19,7 @@ require "megam/gogs/repos"
19
19
  require "megam/gogs/tokens"
20
20
  require "megam/core/gogs_client/gogs_repo"
21
21
  require "megam/core/gogs_client/gogs_account"
22
+ require "megam/core/gogs_client/gogs_tokens"
22
23
 
23
24
 
24
25
  module Megam
@@ -38,7 +39,7 @@ module Megam
38
39
  OPTIONS = {
39
40
  :headers => {},
40
41
  :host => 'localhost',
41
- :port => '3000',
42
+ :port => '6001',
42
43
  :nonblock => false,
43
44
  :scheme => 'http'
44
45
  }
@@ -138,7 +139,7 @@ def connection_repo
138
139
  @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}",@options)
139
140
  else
140
141
  Excon.defaults[:ssl_verify_peer] = false
141
- @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:3000",@options)
142
+ @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:6001",@options)
142
143
  end
143
144
  @connection
144
145
  end
@@ -166,7 +167,7 @@ def connection_repo
166
167
  @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}",@options)
167
168
  else
168
169
  Excon.defaults[:ssl_verify_peer] = false
169
- @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:3000",@options)
170
+ @connection = Excon.new("#{@options[:scheme]}://#{@options[:host]}:6001",@options)
170
171
  end
171
172
  @connection
172
173
  end
data/test/test_helper.rb CHANGED
@@ -7,7 +7,7 @@ require 'time'
7
7
 
8
8
  SANDBOX_HOST_OPTIONS = {
9
9
  :host => 'localhost',
10
- :port => 3000
10
+ :port => 6001
11
11
  }
12
12
 
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_gogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raj Thilak,Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-12 00:00:00.000000000 Z
11
+ date: 2015-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline