galileo 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/galileo.rb +15 -15
  3. data/lib/galileo/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 277ba3860d65c893cbf009e96ea2827cd80c9e90
4
- data.tar.gz: 2f463cc59f2667b5f4065e2e346e9482e6cc1615
3
+ metadata.gz: 5d6cccbea3f01da259ac89edce0c85b724b6656c
4
+ data.tar.gz: 8ce2c554ee237d725cb227758e08bed6156d5bff
5
5
  SHA512:
6
- metadata.gz: 5191c33a4c51b3be16770a4cd48d1938ee9d0d8a0f8398b9403e068ab69f28d0a68060e0a82816d8b69a64b067ada5fa876eb445f6baed47a44ce0e13295f5be
7
- data.tar.gz: cac63549059660e8f84bd4ada896931ea367a7a3879cc8094c697fb68bf0ee54191fa5035ca98c8e41611dc12fa8b8da1734f2929b250dddd874111b2121eb74
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' 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' 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
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' then repo[2] = repo[2].cyan
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
 
@@ -1,3 +1,3 @@
1
1
  class Galileo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.1
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-15 00:00:00.000000000 Z
11
+ date: 2014-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit