onceover 3.13.0 → 3.13.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
  SHA256:
3
- metadata.gz: b767447cfe2fa9bb00e8b3ebb2a97c574ca4729181543d18e6e2d2e097cc16d1
4
- data.tar.gz: ee8987789479439ff9e4c4e79a57ca62f5c8b4d9103a106588f14ce553fd8dc3
3
+ metadata.gz: 1f8920ed5a1afa3942e0012f21ec49ef5fb6596cec5c57bca55a11da1b393324
4
+ data.tar.gz: b8d27d282ed8d35d989a56598959f8371763e013f60eee9a27671c204cc71f89
5
5
  SHA512:
6
- metadata.gz: af4bda7ab741bcbbb0a73ed560db3a9eade8311ec3f7f9d98d0bef91e166c05429a4b8f1f73add1d949027fdbd0cbfdd5be7b17ffadf1cc92a220064adf7e07f
7
- data.tar.gz: dd7f40a2ba1717c01e989bcd9b5a51d89f3dd334cb5a75ba5b8df9c6af21f4f91e4bb0c9a92fd1a566ae959677f01eeaa407433c63581d5d45362c85e3d81d5c
6
+ metadata.gz: d93ef0787d387a1b35ff0234bc29b7daf62a1a410eaa8576309bd249f6881f6b5250c62b5923dcf60268b9d3aaeca6ef6ed2debd2120e60cf302e109d362314a
7
+ data.tar.gz: b99f5e7d3ca96c1c6b0db3c98d0ce88355c307dbb919cfa1f02544e21535720eafda4c578ba0fbff5621c38ce66456c39d5da2b63dd1c19e0650016e290fa349
data/Gemfile CHANGED
@@ -4,6 +4,9 @@ gemspec
4
4
 
5
5
  gem 'pry-coolline', '> 0.0', '< 1.0.0'
6
6
 
7
+ # Cri 2.15.6 broke r10k and they can't be used together
8
+ gem 'cri', '<= 2.15.5'
9
+
7
10
  if ENV['PUPPET_VERSION']
8
11
  gem 'puppet', ENV['PUPPET_VERSION']
9
12
  end
@@ -399,7 +399,6 @@ class Onceover
399
399
  end
400
400
 
401
401
  def config
402
- # Parse the file
403
402
  logger.debug "Reading #{@environment_conf}"
404
403
  env_conf = File.read(@environment_conf)
405
404
  env_conf = env_conf.split("\n")
@@ -410,7 +409,9 @@ class Onceover
410
409
  # Map the lines into a hash
411
410
  environment_config = {}
412
411
  env_conf.each do |line|
413
- environment_config.merge!(Hash[*line.split('=').map { |s| s.strip}])
412
+ if matches = line.match(/^(\S+)\s*=(.*)$/)
413
+ environment_config[matches[1]] = matches[2].strip
414
+ end
414
415
  end
415
416
 
416
417
  # Finally, split the modulepath values and return
@@ -419,7 +420,8 @@ class Onceover
419
420
  rescue
420
421
  raise "modulepath was not found in environment.conf, don't know where to look for roles & profiles"
421
422
  end
422
- return environment_config
423
+
424
+ environment_config
423
425
  end
424
426
 
425
427
  def r10k_config_file
data/onceover.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.13.0"
7
+ s.version = "3.13.1"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency 'r10k', '>=2.1.0'
29
29
  s.add_runtime_dependency 'puppet', '>=3.4.0'
30
30
  s.add_runtime_dependency 'git'
31
- s.add_runtime_dependency 'cri', '>= 2.6'
31
+ s.add_runtime_dependency 'cri', '>= 2.6', '<= 2.15.5'
32
32
  s.add_runtime_dependency 'colored', '~> 1.2'
33
33
  s.add_runtime_dependency 'logging', '>= 2.0.0'
34
34
  s.add_runtime_dependency 'deep_merge', '>= 1.0.0'
@@ -1,2 +1,7 @@
1
1
  modulepath = site:modules:$basemodulepath
2
- config_version = 'scripts/config_version.sh $environmentpath $environment'
2
+
3
+ # Comments!
4
+
5
+ value_with_equals = 'foo=bar'
6
+
7
+ config_version = 'scripts/config_version.sh $environmentpath $environment'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.0
4
+ version: 3.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -157,6 +157,9 @@ dependencies:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '2.6'
160
+ - - "<="
161
+ - !ruby/object:Gem::Version
162
+ version: 2.15.5
160
163
  type: :runtime
161
164
  prerelease: false
162
165
  version_requirements: !ruby/object:Gem::Requirement
@@ -164,6 +167,9 @@ dependencies:
164
167
  - - ">="
165
168
  - !ruby/object:Gem::Version
166
169
  version: '2.6'
170
+ - - "<="
171
+ - !ruby/object:Gem::Version
172
+ version: 2.15.5
167
173
  - !ruby/object:Gem::Dependency
168
174
  name: colored
169
175
  requirement: !ruby/object:Gem::Requirement