puppet_module_packaging 0.1.0 → 0.1.1

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: 8a13fb00530b3fec6320d698b8703708334a4e4e
4
- data.tar.gz: 90b4d60817f73b24d9eb3579df035debb83c5795
3
+ metadata.gz: d6dec8ec8f4760db5449a19c12c970c2fdcc1597
4
+ data.tar.gz: b6faeb96ae78ad45de6745118b7a90ca2f5e4db5
5
5
  SHA512:
6
- metadata.gz: 88edf75759c6982377d3dea822dbfeb19a7c780dcd67973d3bd606fe56e082f545d55fb60fd2ef3254d12538243bf8c928f274e168c48c264e38d79da8744ae4
7
- data.tar.gz: 05112fc5d7f9b1d4db5ba552c233d5d304ff1fbd876367b1a0033ea684160766b753eda076f30f5cfaeae46c879a6dde467202949fb20c2e3dc8ddcf13e36c80
6
+ metadata.gz: 3b6af7a8e1960a0d060d3adec5d1974b7de4552b8521f86debe09b8d71c497c030ade1c7f0be84ee3f998b5865e5016909df6baa77bfa12b7cbb29bac00faf72
7
+ data.tar.gz: d804b951fcb7304b9f9a3453645518e76d77a8d40f7bd4bdb937ce04fce13f890e278dc292f6a5cf52d1c14f8d326d98df604302a71ac1d7ef61f8e58f41d594
data/Changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ * Fix a bug in the Modulefile parser that prevented correct dependency
6
+ detection when no space between constraint qualifier and actual version was
7
+ provided.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  * Fix a shadowed variable bug in the test suite that prevented it to work
@@ -68,7 +68,7 @@ module PuppetModule
68
68
 
69
69
  def dependency_versions_for(versions_str)
70
70
  versions = []
71
- versions_str.split(/(>=|<=|==|=|<|>)\s+/)\
71
+ versions_str.split(/(>=|<=|==|=|<|>)\s*/)\
72
72
  .select { |s| !s.empty? }\
73
73
  .each_slice(2) { |v|
74
74
  versions << v.map { |s| s.strip }.join(" ")
@@ -1,5 +1,5 @@
1
1
  module PuppetModule
2
2
  module Pkg
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -8,6 +8,6 @@ description 'A long description of this silly module'
8
8
  project_page 'https://example.com/testmod/home'
9
9
 
10
10
  dependency 'user_1/mod_1', '= 1.2.3'
11
- dependency 'user_2/mod_2', '>= 1.0.0 < 3.2'
11
+ dependency 'user_2/mod_2', '>= 1.0.0 <3.2'
12
12
 
13
13
  unsupported_field 'I don`t know what I am for'
@@ -1,8 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
3
  describe PuppetModule::Pkg::Tasks::Modulefile do
4
- # TODO: dependency management
5
- #
6
4
  # TODO: Modulefile not present => Errno::ENOENT, Errno::EISDIR => requires
7
5
  # specification of shell output format
8
6
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_module_packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Zanella