galileo 0.1.1 → 0.2.0
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/galileo.rb +15 -15
- data/lib/galileo/version.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: 5d6cccbea3f01da259ac89edce0c85b724b6656c
|
4
|
+
data.tar.gz: 8ce2c554ee237d725cb227758e08bed6156d5bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5c3651d19521ddf9bc88834719bbb29bef1314969e1f5cf40452f5a21d97cc8e848a65ed756140291892d930948c5ad83f72dbea0d1504bdc61641aa1c30d1
|
7
|
+
data.tar.gz: c8d6564345f8cad2cdeb1c9bef2d449ac9b55c49b5cb6a64e8ec05398b24961342508e3b50c704952e9bc52feff405da06979b23b8c92736ace19c865db20276
|
data/lib/galileo.rb
CHANGED
@@ -36,7 +36,7 @@ class Galileo
|
|
36
36
|
puts "Searching the stars..."
|
37
37
|
|
38
38
|
# GET
|
39
|
-
Octokit.starred(Octokit.user.login).each do |repo|
|
39
|
+
Octokit.starred(Octokit.user.login).concat(Octokit.repos(Octokit.user.login)).each do |repo|
|
40
40
|
repos << [
|
41
41
|
repo.name || '',
|
42
42
|
repo.description || '',
|
@@ -45,9 +45,9 @@ class Galileo
|
|
45
45
|
repo.stargazers_count || '',
|
46
46
|
repo.updated_at || ''
|
47
47
|
]
|
48
|
-
end
|
48
|
+
end
|
49
49
|
|
50
|
-
repos
|
50
|
+
repos.uniq
|
51
51
|
end
|
52
52
|
|
53
53
|
if repos.any?
|
@@ -90,18 +90,18 @@ class Galileo
|
|
90
90
|
|
91
91
|
# Language color-coating
|
92
92
|
case repo[2]
|
93
|
-
when 'Clojur'
|
94
|
-
when 'Ruby'
|
95
|
-
when 'CSS', 'CoffeeScript', 'Python'
|
96
|
-
when 'Perl', 'Shell', 'Objective-C'
|
97
|
-
when 'PHP', 'C#'
|
98
|
-
when 'Emacs Lisp', 'C++'
|
99
|
-
when 'Smalltalk' then
|
100
|
-
when 'VimL', 'Scala'
|
101
|
-
when 'C'
|
102
|
-
when 'Go'
|
93
|
+
when 'Clojur' then repo[2] = repo[2].colorize(:light_red)
|
94
|
+
when 'Ruby' then repo[2] = repo[2].red
|
95
|
+
when 'CSS', 'CoffeeScript', 'Python' then repo[2] = repo[2].blue
|
96
|
+
when 'Perl', 'Shell', 'Objective-C' then repo[2] = repo[2].colorize(:light_blue)
|
97
|
+
when 'PHP', 'C#' then repo[2] = repo[2].magenta
|
98
|
+
when 'Emacs Lisp', 'C++' then repo[2] = repo[2].colorize(:light_magenta)
|
99
|
+
when 'Smalltalk', 'TeX' then repo[2] = repo[2].green
|
100
|
+
when 'VimL', 'Scala' then repo[2] = repo[2].colorize(:light_green)
|
101
|
+
when 'C' then repo[2] = repo[2].black
|
102
|
+
when 'Go' then repo[2] = repo[2].yellow
|
103
103
|
when 'Assembly', 'Java', 'JavaScript' then repo[2] = repo[2].colorize(:light_yellow)
|
104
|
-
when 'Common Lisp'
|
104
|
+
when 'Common Lisp' then repo[2] = repo[2].cyan
|
105
105
|
end
|
106
106
|
|
107
107
|
repo[4] = repo[4].to_s.blue
|
@@ -116,7 +116,7 @@ class Galileo
|
|
116
116
|
|
117
117
|
# Construct the table
|
118
118
|
table = Terminal::Table.new
|
119
|
-
table.headings = ['Name', 'Description', 'Language', 'Author', 'Stars', 'Last Updated', 'Link (⌘ + Click)']
|
119
|
+
table.headings = ['Name', 'Description', 'Language', 'Author', 'Stars', 'Last Updated', ENV['_system_name'] == 'OSX' ? 'Link (⌘ + Click)' : 'Link']
|
120
120
|
table.rows = repos[0..20]
|
121
121
|
table.style = { width: `/usr/bin/env tput cols`.to_i }
|
122
122
|
|
data/lib/galileo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: galileo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jackson Gariety
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|