packer-config 1.6.1 → 1.6.2

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: e83b6084bc9fc5e7f733b5cd914555e1f5ec5b21
4
- data.tar.gz: 58691f783c9828674fa806d3c14ca589f4b01269
3
+ metadata.gz: 659f4e3b9308a22f46bacda9dd600cc57be00ea0
4
+ data.tar.gz: 14536389dcf3295577d64ef5e773d76e84b3e115
5
5
  SHA512:
6
- metadata.gz: 485f6738bda938b9ca79e9f594df1e0daab586380a0cd51a8b3747ccf1338784d1751d92a02c9229608614f892528964f68146ebc8aaa2af64659d782333896f
7
- data.tar.gz: aa530dfdd9d9ce3024c2498c0d64ecfafc38467ff9ab8bf1a1f2946a6046d74b7d4ee1f901551a21982d3b9908a9fbcbc89e21890041fba010d6e05d2b1d4f6c
6
+ metadata.gz: 322a6cf6cdff456baf89b32e1059db7b09a863d042431ec26e3714b6e4e1b402e7bb776ad4a3221dc7652d9bf38223e0eae4bf9377ab78bde7974863f3bf80d1
7
+ data.tar.gz: 5b47a91f0c4d7f3e6d651d225db1228b0ff5f4e5979d2e5da392140f04d58c6c26aa62ea97a8b76402694e9b10dc1757157c4ad0710e6ffddca851299811c9c3
@@ -29,10 +29,10 @@ StringLiterals:
29
29
  - double_quotes
30
30
 
31
31
  # disabling a bunch of style linters
32
- Lint/BlockAlignment:
32
+ Layout/BlockAlignment:
33
33
  Enabled: false
34
34
 
35
- Lint/EndAlignment:
35
+ Layout/EndAlignment:
36
36
  Enabled: false
37
37
 
38
38
  Lint/Loop:
@@ -49,23 +49,23 @@ Lint/Void:
49
49
  Exclude:
50
50
  - dashboard/spec/**/*
51
51
 
52
- Style/FileName:
52
+ Naming/FileName:
53
53
  Exclude:
54
54
  - 'lib/packer-config.rb'
55
55
 
56
- Style/AccessModifierIndentation:
56
+ Layout/AccessModifierIndentation:
57
57
  Enabled: false
58
58
 
59
- Style/AccessorMethodName:
59
+ Naming/AccessorMethodName:
60
60
  Enabled: false
61
61
 
62
- Style/AlignArray:
62
+ Layout/AlignArray:
63
63
  Enabled: false
64
64
 
65
- Style/AlignHash:
65
+ Layout/AlignHash:
66
66
  Enabled: false
67
67
 
68
- Style/AlignParameters:
68
+ Layout/AlignParameters:
69
69
  Enabled: false
70
70
 
71
71
  Metrics/BlockNesting:
@@ -83,7 +83,7 @@ Metrics/MethodLength:
83
83
  Style/BracesAroundHashParameters:
84
84
  Enabled: false
85
85
 
86
- Style/CaseIndentation:
86
+ Layout/CaseIndentation:
87
87
  Enabled: false
88
88
 
89
89
  Style/CollectionMethods:
@@ -92,25 +92,25 @@ Style/CollectionMethods:
92
92
  Style/CommentAnnotation:
93
93
  Enabled: false
94
94
 
95
- Style/CommentIndentation:
95
+ Layout/CommentIndentation:
96
96
  Enabled: false
97
97
 
98
98
  Style/DefWithParentheses:
99
99
  Enabled: false
100
100
 
101
- Style/DotPosition:
101
+ Layout/DotPosition:
102
102
  Enabled: false
103
103
 
104
104
  Style/EachWithObject:
105
105
  Enabled: false
106
106
 
107
- Style/EmptyLineBetweenDefs:
107
+ Layout/EmptyLineBetweenDefs:
108
108
  Enabled: false
109
109
 
110
- Style/EmptyLines:
110
+ Layout/EmptyLines:
111
111
  Enabled: false
112
112
 
113
- Style/EmptyLinesAroundAccessModifier:
113
+ Layout/EmptyLinesAroundAccessModifier:
114
114
  Enabled: false
115
115
 
116
116
  Style/GuardClause:
@@ -122,7 +122,7 @@ Style/HashSyntax:
122
122
  Style/IfUnlessModifier:
123
123
  Enabled: false
124
124
 
125
- Style/IndentationWidth:
125
+ Layout/IndentationWidth:
126
126
  Enabled: false
127
127
 
128
128
  Style/Lambda:
@@ -131,7 +131,7 @@ Style/Lambda:
131
131
  Style/MultilineBlockChain:
132
132
  Enabled: false
133
133
 
134
- Style/MethodCallParentheses:
134
+ Style/MethodCallWithoutArgsParentheses:
135
135
  Enabled: false
136
136
 
137
137
  Style/MultilineIfThen:
@@ -146,7 +146,7 @@ Style/MultilineTernaryOperator:
146
146
  Style/NilComparison:
147
147
  Enabled: false
148
148
 
149
- Style/PredicateName:
149
+ Naming/PredicateName:
150
150
  Enabled: false
151
151
 
152
152
  Style/RaiseArgs:
@@ -164,22 +164,19 @@ Style/RegexpLiteral:
164
164
  Style/SingleLineMethods:
165
165
  Enabled: false
166
166
 
167
- Style/SpaceAfterComma:
167
+ Layout/SpaceAfterComma:
168
168
  Enabled: false
169
169
 
170
- Style/SpaceAfterNot:
170
+ Layout/SpaceAfterNot:
171
171
  Enabled: false
172
172
 
173
- Style/SpaceAroundEqualsInParameterDefault:
173
+ Layout/SpaceAroundEqualsInParameterDefault:
174
174
  Enabled: false
175
175
 
176
- Style/SpaceInsideBrackets:
176
+ Layout/SpaceInsideParens:
177
177
  Enabled: false
178
178
 
179
- Style/SpaceInsideParens:
180
- Enabled: false
181
-
182
- Style/TrailingBlankLines:
179
+ Layout/TrailingBlankLines:
183
180
  Enabled: false
184
181
 
185
182
  Style/TrivialAccessors:
@@ -191,7 +188,7 @@ Style/WhileUntilDo:
191
188
  Style/WhileUntilModifier:
192
189
  Enabled: false
193
190
 
194
- Style/IndentHash:
191
+ Layout/IndentHash:
195
192
  Enabled: false
196
193
 
197
194
  # As of rubocop 0.21, it thinks kwargs are useless assignments
@@ -200,3 +197,24 @@ UselessAssignment:
200
197
 
201
198
  WordArray:
202
199
  Enabled: false
200
+
201
+ Style/Encoding:
202
+ Enabled: false
203
+
204
+ Metrics/BlockLength:
205
+ Enabled: false
206
+
207
+ Layout/EmptyLineAfterMagicComment:
208
+ Enabled: false
209
+
210
+ Layout/IndentHeredoc:
211
+ Enabled: false
212
+
213
+ Layout/ClosingHeredocIndentation:
214
+ Enabled: false
215
+
216
+ Naming/HeredocDelimiterNaming:
217
+ Enabled: false
218
+
219
+ Gemspec/RequiredRubyVersion:
220
+ Enabled: false
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.1
5
- - 2.1.5
6
- - 2.1.6
7
- - 2.2.0
8
- - 2.2.3
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
8
+ - 2.6
9
9
  - ruby-head
10
10
  before_install: gem install bundler
data/Gemfile CHANGED
@@ -2,11 +2,11 @@ source 'https://rubygems.org'
2
2
 
3
3
  group :development, :test do
4
4
  gem 'bundler', '~> 1.11'
5
+ gem 'fakefs', '~> 0.7'
5
6
  gem 'rake', '~> 10.5'
6
7
  gem 'rspec', '~> 3.4'
7
8
  gem 'rspec-mocks', '~> 3.4'
8
- gem 'fakefs', '~> 0.7'
9
- gem 'rubocop', '~> 0.36'
9
+ gem 'rubocop', '~> 0.49'
10
10
  gem 'rubygems-tasks', '~> 0.2'
11
11
  end
12
12
 
data/README.md CHANGED
@@ -147,9 +147,7 @@ I'm using Travis CI to build and test on every push to the public github reposit
147
147
 
148
148
  ### Branching in Git
149
149
 
150
- I'm using [git-flow](http://nvie.com/posts/a-successful-git-branching-model/) for development in git via github. I've loved the branching model git-flow proposed from day one and the addon to git makes it very intuitive and easy to follow. I generally don't push my `feature/*` branches to the public repository; I do keep `development` and `master` up to date here though.
151
-
152
- **PLEASE OPEN PULL REQUESTS AGAINST `develop` AND NOT `master`! THANK YOU!**
150
+ We release off the `master` branch -- open your pull requests against `master` for the time being. We were using git-flow but I've fallen out of love with its style in favor of more ad hoc branching and just keeping `master` clean for releases.
153
151
 
154
152
  ### TODO Work
155
153
 
@@ -1,5 +1,11 @@
1
1
  # packer-config Release Notes
2
2
 
3
+ ## 1.6.2
4
+
5
+ * Updates for CVE-2017-8418
6
+ * Lots of fixes for things that broke because of the updates for CVE-2017-8418
7
+ * Updated integration spec to use to a CentOS version that exists
8
+
3
9
  ## 1.6.1
4
10
 
5
11
  * Added a verbose option to the `verify` method on `Packer::Config`. Closes issue #19.
@@ -31,7 +31,7 @@ module Packer
31
31
  if r.length - (r - self.data.keys).length > 1
32
32
  raise DataValidationError.new("Found more than one exclusive setting in data from set #{r}")
33
33
  end
34
- elsif ! self.data.keys.include? r
34
+ elsif ! self.data.key? r
35
35
  raise DataValidationError.new("Missing required setting #{r}")
36
36
  end
37
37
  end
@@ -1,11 +1,12 @@
1
1
  # Encoding: utf-8
2
- # rubocop:disable Style/MethodMissing
3
2
 
4
3
  module Packer
5
4
  class EnvVar
5
+ # rubocop:disable Style/MethodMissingSuper
6
6
  def method_missing(method_name, *args)
7
7
  "{{env `#{method_name}`}}"
8
8
  end
9
+ # rubocop:enable Style/MethodMissingSuper
9
10
 
10
11
  def respond_to_missing?(method_name, include_private = false)
11
12
  true
@@ -1,12 +1,13 @@
1
1
  # Encoding: utf-8
2
- # rubocop:disable Style/MethodMissing
3
2
 
4
3
  module Packer
5
4
  class Macro
5
+ # rubocop:disable Style/MethodMissingSuper
6
6
  def method_missing(method_name, *args)
7
7
  name = method_name.to_s.slice(0,1).capitalize + method_name.to_s.slice(1..-1)
8
8
  "{{ .#{name} }}"
9
9
  end
10
+ # rubocop:enable Style/MethodMissingSuper
10
11
 
11
12
  def respond_to_missing?(method_name, include_private = false)
12
13
  true
@@ -38,6 +38,7 @@ module Packer
38
38
  # rubocop:disable Style/NumericPredicate
39
39
  raise CommandExecutionError.new(stderr) unless status == 0
40
40
  stdout
41
+ # rubocop:enable Style/NumericPredicate
41
42
  end
42
43
 
43
44
  def self.exec!(*args)
@@ -1,3 +1,3 @@
1
1
  module Packer
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.6.2'.freeze
3
3
  end
@@ -1,5 +1,5 @@
1
1
  # Encoding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path('lib', __dir__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'packer/version'
5
5
 
@@ -2,8 +2,8 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe Packer::Config do
5
- it 'can build a centos-6.7 Vagrant base box' do
6
- CENTOS_VERSION = '6.8'
5
+ it 'can build a centos-6.10 Vagrant base box' do
6
+ CENTOS_VERSION = '6.10'
7
7
 
8
8
  pconfig = Packer::Config.new "centos-#{CENTOS_VERSION}-vagrant.json"
9
9
  pconfig.description "CentOS #{CENTOS_VERSION} VirtualBox Vagrant"
@@ -18,7 +18,7 @@ RSpec.describe Packer::Config do
18
18
  builder.guest_additions_path "VBoxGuestAdditions_#{pconfig.macro.Version}.iso"
19
19
  builder.guest_os_type "RedHat_64"
20
20
  builder.http_directory "scripts/kickstart"
21
- builder.iso_checksum 'afab3a588cda94cd768826e77ad4db2b5ee7c485'
21
+ builder.iso_checksum '48908ca17bc4ba2fb8e365c9fe7648eb6cd6bd67'
22
22
  builder.iso_checksum_type 'sha1'
23
23
  builder.iso_url "#{pconfig.variable 'mirror'}/6/isos/x86_64/CentOS-#{CENTOS_VERSION}-x86_64-bin-DVD1.iso"
24
24
  builder.output_directory "centos-#{CENTOS_VERSION}-x86_64-virtualbox"
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
  RSpec.describe Packer::Builder::VirtualBoxISO do
5
5
  let(:builder) { Packer::Builder.get_builder(Packer::Builder::VIRTUALBOX_ISO) }
6
6
  let(:in_commands_strings) { [["command1", "1"], ["command2", "2"]] }
7
- let(:in_commands_mixed) { [["command1", 1 ], ["command2", 2 ]] }
7
+ let(:in_commands_mixed) { [["command1", 1], ["command2", 2]] }
8
8
  let(:out_commands_strings) { [["command1", "1"], ["command2", "2"]] }
9
9
 
10
10
  it 'has a type of virtualbox-iso' do
@@ -10,7 +10,7 @@ RSpec.describe Packer::DataObject do
10
10
  let(:some_hash_of_mixed) { { 'a' => 1, 'b' => 2 } }
11
11
  let(:some_hash_of_strings) { { 'a' => '1', 'b' => '2' } }
12
12
  let(:in_commands_strings) { [["command1", "1"], ["command2", "2"]] }
13
- let(:in_commands_mixed) { [["command1", 1 ], ["command2", 2 ]] }
13
+ let(:in_commands_mixed) { [["command1", 1], ["command2", 2]] }
14
14
  let(:out_commands_strings) { [["command1", "1"], ["command2", "2"]] }
15
15
 
16
16
  describe "#initialize" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packer-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Chesal
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-09-15 00:00:00.000000000 Z
16
+ date: 2018-08-03 00:00:00.000000000 Z
17
17
  dependencies: []
18
18
  description: |
19
19
  Building the Packer JSON configurations in raw JSON can be quite an adventure.
@@ -79,7 +79,7 @@ files:
79
79
  - spec/integration/scripts/cleanup.sh
80
80
  - spec/integration/scripts/fix-slow-dns.sh
81
81
  - spec/integration/scripts/hello.sh
82
- - spec/integration/scripts/kickstart/centos-6.8-ks.cfg
82
+ - spec/integration/scripts/kickstart/centos-6.10-ks.cfg
83
83
  - spec/integration/scripts/minimize.sh
84
84
  - spec/integration/scripts/sshd.sh
85
85
  - spec/integration/scripts/vagrant.sh
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.5.1
143
+ rubygems_version: 2.5.2.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: An object model to build packer.io configurations in Ruby.
@@ -153,7 +153,7 @@ test_files:
153
153
  - spec/integration/scripts/cleanup.sh
154
154
  - spec/integration/scripts/fix-slow-dns.sh
155
155
  - spec/integration/scripts/hello.sh
156
- - spec/integration/scripts/kickstart/centos-6.8-ks.cfg
156
+ - spec/integration/scripts/kickstart/centos-6.10-ks.cfg
157
157
  - spec/integration/scripts/minimize.sh
158
158
  - spec/integration/scripts/sshd.sh
159
159
  - spec/integration/scripts/vagrant.sh