power_stencil 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11e9c5260e1929526cc1555923592f3a3fd5041
4
- data.tar.gz: 39c54949b912a3cf6aa298207f59cd2d3a4c58ee
3
+ metadata.gz: f4f5ae18d6c54cea723f9867b6ecbb57fe172c7b
4
+ data.tar.gz: 04876cecef9b066ba9357bc1594b19eb325c6b5f
5
5
  SHA512:
6
- metadata.gz: b71ba2925c1f7c09ad2db22bb56d90b4b293114405bc03aac08b583fc9ddb991ca804425ef095ecf7ff548963c87d025912de4d348507de7972e13726983eb46
7
- data.tar.gz: 9dc5cc390ea7f3adfa2d25893773b5a67c42a6b0be88e17bc3ed9de28e14fce009df8b913382d3dad35557df0a4132b2c2241553eda495a7435563af99ab5015
6
+ metadata.gz: 30331a55eb9309bda536e610fe2ac9ed9c30287dbbd4ccc9e77bf1619f487dafb8660f18a22315c58167afcffde063ab337ddfa6b63f21c479c5df67fbdd6179
7
+ data.tar.gz: ae82f40ae470825a7ed7e5644323a1e55f5b1744eec5c9004cc7869fa6165b5b49d4117fdef73ce161cef9c3e83c1f31c3de99abc1e70ba5118a0575bf12be73
@@ -76,6 +76,7 @@ module PowerStencil
76
76
  def analyze_semantic_version(semantic_version)
77
77
  case semantic_version
78
78
  when String
79
+ semantic_version = '0.0.0' if semantic_version.empty?
79
80
  version_string_to_hash semantic_version
80
81
  when SemanticVersion
81
82
  semantic_version.to_hash
@@ -85,6 +86,8 @@ module PowerStencil
85
86
  raise_analysis_error semantic_version unless semantic_version[level].is_a? Fixnum
86
87
  end
87
88
  semantic_version.dup
89
+ when NilClass
90
+ version_string_to_hash '0.0.0'
88
91
  else
89
92
  raise_analysis_error semantic_version
90
93
  end
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.8.7'.freeze
2
+ VERSION = '0.8.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -299,7 +299,7 @@ metadata:
299
299
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
300
300
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
301
301
  homepage_uri: https://powerstencil.brizone.org/
302
- post_install_message: "\nThank you for installing PowerStencil 0.8.7 !\nFrom the command
302
+ post_install_message: "\nThank you for installing PowerStencil 0.8.8 !\nFrom the command
303
303
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
304
304
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
305
305
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel