hss 0.2.3 → 0.2.4

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/helpers/default.rb +1 -1
  3. data/lib/hss.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68fc7dcd731e289254c838b804b0cd0f0ebc8e48
4
- data.tar.gz: 9f34b5e759a71c0e2fb5e7464efea212ca221a9a
3
+ metadata.gz: 1daa6c499987f664f1debc997165bd07e4d4d199
4
+ data.tar.gz: 1e85d0b28020d648c2496bef51074796fcda9312
5
5
  SHA512:
6
- metadata.gz: 5bb466b9da456e8aeb8fab331d9ecec8402ddde10a546ef858224f78ccf9d681924584cac45fa837892d53190539a16fa6d26549b20ea8bec5425334bd3f18bf
7
- data.tar.gz: 2a02a836cc0a4ae292414bc75c286165fe6dcff065377f4009c7ed8aaa67d1072a1aa12a676091a224d8b56f90f195e5d9fa7066b7f96a6fc697ff9dd2338802
6
+ metadata.gz: 0495ca1ce274046ecd6f484d3c9da982125e11feaf09f53eadfa254710c3ae98b1579d5196a1da87d020725806bdf89a1d07ec0be1987b88ebf0abecbe27d711
7
+ data.tar.gz: f1de32083e1c9962d6ad34e752aefc24b2926c343a790cd885643af68cba0421a64a07f46dcf5cad0cfc03566a015d584a3d704280687745ca957aa6753bdf45
@@ -1,6 +1,6 @@
1
1
  class HSS::Parser
2
2
  def default(a, b)
3
- a.nil? ? a : b
3
+ (a.nil? or a.empty?) ? b : a
4
4
  end
5
5
  end
6
6
 
data/lib/hss.rb CHANGED
@@ -3,7 +3,7 @@ require 'pathname'
3
3
  require 'erb'
4
4
 
5
5
  module HSS
6
- Version = '0.2.3'
6
+ Version = '0.2.4'
7
7
  Default_Config = '~/.hss.yml'
8
8
  Default_Library = Pathname.new(__FILE__).realpath.split()[0].to_s + '/helpers'
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker