sortinghat 0.3.2 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7796fcee5c89e9eccdf90a2cd275c921c787b8d6
4
- data.tar.gz: f00f7b9af41f75647fba8f6bfb191fa7c8985ee2
3
+ metadata.gz: 8781c38bf0c7c5db4a3ca524b653fc6dd43bf457
4
+ data.tar.gz: 70f1c58afeadd42a06e63d02b95f87cdb5237be7
5
5
  SHA512:
6
- metadata.gz: e64c35725349723129787d1548ababb0f52bb6fe792d22b8557d47189521f58f02d2bf8ab8e94d9c2d771ffb0e063f1566dff1baa4d6b79fc7beef7756cbac40
7
- data.tar.gz: ae90d2230a8661404b43c33fe7240731dcc4317f9551b15c154fca77764b895bac994415f0d81a4a42a10fc88687c89c5f5c7a40ad385bad5cf9e7da19893855
6
+ metadata.gz: c9a2813b2ff10016d9dfbed256170a088104c1ae986c23d39e6ea0584fffdb59349d84ad01bec7be403aecdba4aa7c00215894a79cef5f377e2af89a83bb8d0d
7
+ data.tar.gz: 5715916fce1f304cc93b7140389ab1af2f12b6a005ad89ad7e5bc7aed9be456f5c590a1964040e4c1f64a35dae33fddbe37921ba444bcd718aa5ddb557fb7444
@@ -128,9 +128,7 @@ module Sortinghat
128
128
 
129
129
  # Method to ensure our prefix always has a leading 0 if < 10
130
130
  def ensurezero(prefix)
131
- if prefix < 10
132
- prefix.to_s.rjust(2, "0")
133
- end
131
+ prefix < 10 ? prefix.to_s.rjust(2, "0") : prefix
134
132
  end
135
133
 
136
134
  # Method to construct our instance variables @hostname and @fqdn
@@ -1,3 +1,3 @@
1
1
  module Sortinghat
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortinghat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - D. Pramann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler