glub 0.1.3 → 0.1.5

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/VERSION +1 -1
  3. data/lib/glub.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 537250b46339fd8c1f387570c522f9eaf33b9400
4
- data.tar.gz: 1989ab44b9215d01c028dcd7d257e0df12247905
3
+ metadata.gz: 7406d71ec8dbcfb6c2e3692792e61c5c5b98f88f
4
+ data.tar.gz: 873f3447a5d16ce8adc86a81ae668eaf69906fab
5
5
  SHA512:
6
- metadata.gz: b833991e14af002e3c4c621561a633b8038a58ce43f2ff0c94a6723649bc1ae550894ceb35c65060ee3ca42063fbbda61bc456f77dfb679bdbba970d4db1afc7
7
- data.tar.gz: 403affb926ca9c04ee16bd1613ec9b5f61504ec8f469a2d59c1bde2d9ed7186f5fc2d72df8687c5cd183740cd24e97de64a22b52987220c4b79e5dcb88e47fed
6
+ metadata.gz: d4e62e55889813623cee37b4e5db3da47ed1dd8a6ff3406d548116bca9cac189840f34b303dc70104e098d9c16429b44ff472cf6ab22d00e5173718a80846ec3
7
+ data.tar.gz: 33dba21bb5e3ea10bce3805b9678e2e03ff5577ac6ba44351d65d1b2f8d62fe5dd7c6be746dfbe35398a51813b2466b4c6fcf76a092bc1d77cbbf7a2cd1657d4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.5
@@ -177,15 +177,18 @@ class Glub < Sif::Loader
177
177
  )
178
178
 
179
179
  response = JSON.parse response.body
180
+ response = response.sort_by {|r| r['name']}
180
181
 
181
182
  projects = []
182
183
  response.each_with_index do |project, idx|
183
184
  idx+=1
184
185
  projects << { id: idx, name: project['name'], ssh_repo: project['ssh_url_to_repo'] }
185
186
  end
187
+
186
188
  puts "Projects: "
189
+
187
190
  projects.each { |project| puts " #{project[:id]} Name:#{project[:name]}"}
188
- # "#{projects}"
191
+
189
192
  puts 'Which project do you want to clone? (enter the number)'
190
193
  clone_response = $stdin.gets.chomp.to_i
191
194
  if !clone_response.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - George McIntosh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-01 00:00:00.000000000 Z
12
+ date: 2014-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: webmock