thor_tasks 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,13 +83,14 @@ These tasks are helpers for apt-cache in Linux.
83
83
 
84
84
  === apt:search
85
85
 
86
- thor apt:search "terms" # or thor apt:s
86
+ Pretty-prints the output from apt-cache search.
87
87
 
88
- Pretty-prints the output from apt-cache search.
88
+ thor apt:search "terms" # or thor apt:s
89
89
 
90
90
  === apt:show
91
91
 
92
+ Cleans up the output from apt-cache show.
93
+
92
94
  thor apt:show "package" # or thor apt:w
93
95
  thor apt:show "package --desc # to only show the description
94
96
 
95
- Cleans up the output from apt-cache show.
@@ -71,9 +71,9 @@ class Apt < Thor
71
71
  print params["Description"].foreground(:green).bright.underline + "\n\n"
72
72
 
73
73
  # print the long description
74
- print desc.foreground(:white).bright + "\n\n"
74
+ print desc.foreground(:white).bright + "\n\n" unless desc.nil?
75
75
  # print the footnote
76
- print ftn.foreground(:blue) + "\n\n"
76
+ print ftn.foreground(:blue) + "\n\n" unless ftn.nil?
77
77
 
78
78
  # ommit the details if we only want the description
79
79
  unless options[:desc]
@@ -1,3 +1,3 @@
1
1
  module ThorTasks
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Haynes