aurb 1.0.1 → 1.0.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aurb}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gigamo"]
12
- s.date = %q{2010-01-23}
12
+ s.date = %q{2010-01-24}
13
13
  s.default_executable = %q{aurb}
14
14
  s.email = %q{gigamo@gmail.com}
15
15
  s.executables = ["aurb"]
data/bin/aurb CHANGED
@@ -28,6 +28,7 @@ class Session
28
28
  case opt
29
29
  when '--download'
30
30
  packages = download(args.split)
31
+ puts 'No downloadable packages found' and return if packages.blank?
31
32
  packages.each_with_index do |package, index|
32
33
  current = index + 1
33
34
  total = packages.size
@@ -50,6 +51,8 @@ class Session
50
51
  end
51
52
  when '--search'
52
53
  packages = search(args.split)
54
+ Aurb.logger.debug packages.inspect
55
+ puts 'No results found' and return if packages.blank?
53
56
  packages.each do |package|
54
57
  status = package.OutOfDate == '1' ? '✘'.colorize(:red) : '✔'.colorize(:green)
55
58
  name = package.Name.colorize(:yellow)
@@ -28,7 +28,7 @@ module Aurb
28
28
  raise AurbArgumentError and return
29
29
  end
30
30
 
31
- results
31
+ results.delete_if(&:blank?)
32
32
  end
33
33
 
34
34
  # Download +packages+ from the AUR.
@@ -49,7 +49,7 @@ module Aurb
49
49
  downloadable?(package)
50
50
  end
51
51
 
52
- downloadables
52
+ downloadables.delete_if(&:blank?)
53
53
  end
54
54
 
55
55
  # Returns a +list+ of names of packages that have an upgrade
@@ -10,7 +10,7 @@ module Aurb
10
10
  module Version
11
11
  MAJOR = '1'
12
12
  MINOR = '0'
13
- TINY = '1'
13
+ TINY = '2'
14
14
 
15
15
  def self.to_s
16
16
  [MAJOR, MINOR, TINY].join('.').freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aurb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gigamo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-23 00:00:00 +01:00
12
+ date: 2010-01-24 00:00:00 +01:00
13
13
  default_executable: aurb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency