beaker-hostgenerator 1.0.0 → 1.0.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTBkOTc3OGMxOWU5YWI2YmIzZWM2MzVkZWJkZDhkYTFlODgwYWJlNg==
4
+ ZDljMWQzMTBmOTk2MWMwM2MxOTU1MGU2NzI5OWI5NTEwMWM2NzI4Nw==
5
5
  data.tar.gz: !binary |-
6
- MDRjNjgxODdhYzBhYzg5MTZjNTk3YjljOGNhNTEwYzNmODhhMTFmOA==
6
+ ZjBmM2NiN2YxYmI1MTMwYmE4YmUzZjY0ZTIwZjVkOWIxODdkZTJhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2FiMDkzMTg5YTE1YzllMGViYmUyN2M3N2ZjMmMwNjNjZWJhZGU1YTQzYzFh
10
- OTFiMGI4MmZhYjQxYzQ1YjljMGFkMjIzNGZlMmFiY2E3MDUwMzNlZDhmZmUx
11
- ZDBkYjdlMDMxY2U3ZWI5Y2JlYzI3ZjZiOWJlZTZhNzc0NWIwZDc=
9
+ MTgyNzZhMDFjZmNhMWJlNWIwNDdiYmFlNDk3MDBhNWNhYTU2YmM0NzNiMzEz
10
+ NDE4YmZiNTIyYjZlYjk4ZWU4ODgzZjVkNDU4OGNiY2M5MmI5MDQzYzE4OGY5
11
+ NmRhNDAwMGE0OTIwY2EzNjA4ZTEwNTY5NWMwMzgxMzMyNWEwYzA=
12
12
  data.tar.gz: !binary |-
13
- MDBjMDg0Y2Y5Y2IxZjFlNjAyN2Q3ODkwYTUxN2UwNTRiZjAxMmNhYmYyMTk4
14
- ODI4ZWE4NjE2MjI3MjI2MGJlYzFlNWZhMjJmNjQzYWJmM2E4YTRlZGQ2NmE3
15
- ODQyNTNhNzMwOTY2NmI4NjA4YjMwYWY1ZDcwZmFmZGQzMWUyZWI=
13
+ ODU2ZDk2OTI0MDBmYTFkMjQ0ZTAxZTZhOGY3YmY4NjhmNDBkMDc3YTlkMzU2
14
+ NjA1MDk2NzE4Mjc3YzU4NTIxYTYyMTFkMmM0NDNkZDgyY2U0MWQzNzlkZjdl
15
+ NTM3ODc5MzAzZTA0NDU2YTNhY2M4ZTBlNGRiNTgwNDM3ZDcxZDk=
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  This project makes a strong effort to adhere to [Semantic
5
5
  Versioning](http://semver.org).
6
6
 
7
+ ## [1.0.1] - 2017-8-14
8
+ - Support empty string as the value of version by returning nil from pe_dir()
9
+ - Support unparseable/unknown versions by returning empty string from pe_dir()
10
+
7
11
  ## [1.0.0] - 2017-8-14
8
12
  - Rewrite pe_dir() to provide RC builds and to determine build source just from
9
13
  the pe_version format.
@@ -25,7 +25,7 @@ module BeakerHostGenerator
25
25
  end
26
26
 
27
27
  def pe_dir(version)
28
- return if version.nil?
28
+ return if version.nil? || version.empty?
29
29
 
30
30
  base_regex = '(\A\d+\.\d+)\.\d+'
31
31
  source = case version
@@ -37,8 +37,10 @@ module BeakerHostGenerator
37
37
  then "#{PE_TARBALL_SERVER}/%s/feature/ci-ready"
38
38
  when /#{base_regex}-.*/
39
39
  then "#{PE_TARBALL_SERVER}/%s/ci-ready"
40
+ else
41
+ ''
40
42
  end
41
- return sprintf(source, $1)
43
+ return sprintf(source, ($1 || ''))
42
44
  end
43
45
 
44
46
  PE_USE_WIN32 = ENV['pe_use_win32']
@@ -1,5 +1,5 @@
1
1
  module BeakerHostGenerator
2
2
  module Version
3
- STRING = '1.0.0'
3
+ STRING = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-hostgenerator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Branan Purvine-Riley