ghedsh 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/actions/orgs.rb +9 -4
- data/lib/actions/system.rb +1 -1
- data/lib/interface.rb +2 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 712194f7c7729f1e692442abb1ecf9d3c5b06ebb
|
4
|
+
data.tar.gz: 294f0a7c75c9b079e80cd6b3428d1ed87c069b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4664de025f66c01172a8bdc9afe41480f61173b5e3267e2dba0c7bd1286d4d11f053947160b479eb27eebbcfd867e58e0ec8f0f05f62081b6f7473b1f9987b5f
|
7
|
+
data.tar.gz: 1cf39f0cf4945fa6fe552e607bce4c16a8f894a1f8572301c194ac7751583d5d56ac1fdbf73205b7f21f4c362ccb1a3825e3d8d659a492dfc520546c69ff05a0
|
data/lib/actions/orgs.rb
CHANGED
@@ -7,6 +7,7 @@ require_rel '.'
|
|
7
7
|
require 'readline'
|
8
8
|
|
9
9
|
GITHUB_LIST=['githubid','idgithub','github_id','id_github','githubuser','github_user']
|
10
|
+
MAIL_LIST=['email','mail','e-mail']
|
10
11
|
|
11
12
|
class Organizations
|
12
13
|
|
@@ -316,13 +317,17 @@ class Organizations
|
|
316
317
|
aux=Hash.new
|
317
318
|
fields.each do |j|
|
318
319
|
if i[j]!=nil
|
319
|
-
if GITHUB_LIST.include?(j.gsub("\"", "").downcase)
|
320
|
+
if GITHUB_LIST.include?(j.gsub("\"", "").downcase.strip)
|
320
321
|
aux["github"]=i[j].gsub("\"", "").strip
|
321
322
|
else
|
322
|
-
|
323
|
+
if MAIL_LIST.include?(j.gsub("\"", "").downcase.strip)
|
324
|
+
aux["email"]=i[j].gsub("\"", "").strip
|
325
|
+
else
|
326
|
+
aux[j.gsub("\"", "").downcase.strip]=i[j].gsub("\"", "").strip
|
327
|
+
end
|
323
328
|
end
|
324
329
|
else
|
325
|
-
aux[j.gsub("\"", "").downcase]=i[j]
|
330
|
+
aux[j.gsub("\"", "").downcase.strip]=i[j]
|
326
331
|
end
|
327
332
|
end
|
328
333
|
users<< aux
|
@@ -410,7 +415,7 @@ class Organizations
|
|
410
415
|
return peopleinfolist
|
411
416
|
else
|
412
417
|
if user.include?("@")
|
413
|
-
inuser=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].detect{|aux2| aux2["
|
418
|
+
inuser=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].detect{|aux2| aux2["email"]==user}
|
414
419
|
else
|
415
420
|
inuser=list["orgs"].detect{|aux| aux["name"]==config["Org"]}["users"].detect{|aux2| aux2["github"]==user}
|
416
421
|
end
|
data/lib/actions/system.rb
CHANGED
@@ -11,7 +11,7 @@ class Sys
|
|
11
11
|
attr_reader :memory
|
12
12
|
LIST = ['repos', 'exit', 'orgs','help', 'people','teams', 'cd ', 'cd repo ','commits','forks', 'add_team_member ','new_team ','rm_team ','new_repository ','new_assignment ','clone ', 'issues',
|
13
13
|
'version', 'cat ', 'groups', 'files', 'assignments','new_issue ', 'open_issue', 'new_','open_', 'close_issue', 'new_group ', 'rm_group', 'rm_', 'do ', 'info','make','add_repo',
|
14
|
-
'add_group','rm_repository ', 'new_people_info ', 'private ', 'people info ', 'new_issue_comment '].sort
|
14
|
+
'add_group','rm_repository ', 'new_people_info ', 'private ', 'people info ', 'new_issue_comment ', "rm people info"].sort
|
15
15
|
|
16
16
|
def initialize()
|
17
17
|
@memory=[]
|
data/lib/interface.rb
CHANGED
@@ -507,6 +507,8 @@ class Interface
|
|
507
507
|
puts "Teams in group #{opcd[1]} :"
|
508
508
|
puts t.get_single_group(@config,opcd[1])
|
509
509
|
end
|
510
|
+
when op.include?("new") && opcd[0]=="new" && opcd[1]=="people" && opcd[2]=="info"
|
511
|
+
if @deep==ORGS && opcd.size==4 then o.add_people_info(@client,@config,opcd[3]) end
|
510
512
|
when op == "info"
|
511
513
|
if @deep==ASSIG then o.show_assig_info(@config,@assig_path) end
|
512
514
|
if @deep==USER_REPO || @deep==TEAM_REPO || @deep==ORGS_REPO then r.info_repository(@client,@config,@deep) end
|
data/lib/version.rb
CHANGED