hss 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hss +2 -2
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fca621d44a6bedab2a40aaa00cc1cac389dce3b7
4
- data.tar.gz: 1f3250f9a8bce1d4866bdcb5256bd65c7d4b36d7
3
+ metadata.gz: 70c24f8967bea8010bb3f5b6f996f7d4afa03e1b
4
+ data.tar.gz: e1e2f7306506dac2e68643440e006a2b189c0007
5
5
  SHA512:
6
- metadata.gz: 692ecf2d9d2f1599506ed05417af409c9b5c28324f9307e658305689ffd1761ef0ec384fc385530e65f90e6c5414922380a0b6f8afee8ab47facc982231c10e6
7
- data.tar.gz: c349036332ef4d159c5c6d1d3a14037cb979a194b6b73d903c9827cda61da00d368f934ce7585398812bae0e3891a2b0cae8f0a46d60ec3bd87ab9abef4c8d16
6
+ metadata.gz: 68fb27b55ca7c7228a10c88f4eb7f646dd82673c141943327a8957048670a820d0452627c56b8e07c86a45972454ce2cc85ee0e2dafb7c1165b1d9416cbc8e1a
7
+ data.tar.gz: 402006321fb90edd6ed227915addedbef98899776328a1de796f56699f30d2a9b3bc508477752c3ae3ed9de4df9b40f2b5fd92dab3717e73d3610e3ad8a7d257
data/lib/hss CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'yaml'
4
4
  require 'pathname'
5
5
 
6
- Version = '0.1.16'
6
+ Version = '0.1.17'
7
7
 
8
8
  if ARGV.length == 1 and ARGV[0] == 'version'
9
9
  puts Version
@@ -24,7 +24,7 @@ def command(input)
24
24
  end
25
25
 
26
26
  def default(a, b)
27
- a.nil? ? a : b
27
+ (a.nil? or a.empty?) ? b : a
28
28
  end
29
29
 
30
30
  possible_paths = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: lib
10
10
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2013-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Regex-based SSH shortcut tool
14
14
  email: me@lesaker.org
@@ -48,4 +48,3 @@ signing_key:
48
48
  specification_version: 4
49
49
  summary: SSH helper
50
50
  test_files: []
51
- has_rdoc: