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 +4 -4
- data/lib/gogs_api.rb +1 -1
- data/lib/megam/core/gogs_client/gogs_tokens.rb +2 -1
- data/lib/megam/gogs/version.rb +1 -1
- data/lib/megam/gogs.rb +4 -3
- data/test/test_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46fbc56cb1e5f41dd7a528290e92862f796aa35a
|
4
|
+
data.tar.gz: 40a8946c92a6f1ca41d2ba010b780b0424f4d2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d1170cadc249cdcc3c5931dfb8d83a5bb92bea3355b8660d8fc9bfb68037709dcbddcc590b7943075d5733d604b1a2fbc14f70af96b1a75f3257dd39fd8ff2
|
7
|
+
data.tar.gz: 624b7983b514024963c608355ef6137ca210542629486e9be4168086da575b074f36920df5a13779859e38adb74705de221a2e662db7a2581d81ddd9d2420a45
|
data/lib/gogs_api.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require(File.join(File.dirname(__FILE__), "
|
1
|
+
require(File.join(File.dirname(__FILE__), "megam", "gogs"))
|
@@ -32,9 +32,10 @@ module Megam
|
|
32
32
|
end
|
33
33
|
|
34
34
|
|
35
|
-
|
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 = {}
|
data/lib/megam/gogs/version.rb
CHANGED
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 => '
|
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]}:
|
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]}:
|
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
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.
|
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-
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|