builderator 1.0.0.pre.rc.12 → 1.0.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: c2184d9659c752e4065a951a7595f97100ee3c2a
4
- data.tar.gz: d9a1df4bacc66c29925fa806a09a60a2994aa848
3
+ metadata.gz: 8e352bb537ddd7e846204ea04f4c3b9179fa9dd2
4
+ data.tar.gz: 6b74cb8886d1f95557d5ca47bda8d418cf50c71c
5
5
  SHA512:
6
- metadata.gz: 1cafe2ac4672a9a9abeca0512fd083993d0df5c7ab425bda592e25b1e3c3f930d1f2a48bc6be7dff90878a8a0b07d632314f7b5573114250fa3657880d85b17b
7
- data.tar.gz: 316460b33e0eb304a4e974282e4305a0a1239b9b8e36d3c4cedb35fe37399b79a604c0ccf06428871a392dc9169a0259e18db610572c8e7d5cfc068a8c287f32
6
+ metadata.gz: 2694daca3b071538315d915864b100ae723bfa27c55380819d4ecd1b8d3106611c2e8c47043b92ce8c579f9733476a97d2775b90dd25dc169849ad817b85b67a
7
+ data.tar.gz: 54e413f078604b2c4d6a6e5ce2132aa9669ef4c3c770df7e1e4223d40d2a9cfcbe9b1ec2e15aa9a787e5e25b2b9e2b0d558286ff1e5c88b64f7b39852013146e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- builderator (1.0.0.pre.rc.11)
4
+ builderator (0.0.1)
5
5
  aws-sdk (~> 2.0)
6
6
  berkshelf (~> 3.2)
7
7
  chef (~> 12.0)
@@ -13,15 +13,13 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  addressable (2.3.8)
16
- ast (2.1.0)
17
- astrolabe (1.3.1)
18
- parser (~> 2.2)
19
- aws-sdk (2.2.26)
20
- aws-sdk-resources (= 2.2.26)
21
- aws-sdk-core (2.2.26)
16
+ ast (2.2.0)
17
+ aws-sdk (2.2.31)
18
+ aws-sdk-resources (= 2.2.31)
19
+ aws-sdk-core (2.2.31)
22
20
  jmespath (~> 1.0)
23
- aws-sdk-resources (2.2.26)
24
- aws-sdk-core (= 2.2.26)
21
+ aws-sdk-resources (2.2.31)
22
+ aws-sdk-core (= 2.2.31)
25
23
  berkshelf (3.3.0)
26
24
  addressable (~> 2.3.4)
27
25
  berkshelf-api-client (~> 1.2)
@@ -56,32 +54,30 @@ GEM
56
54
  celluloid-io (0.16.2)
57
55
  celluloid (>= 0.16.0)
58
56
  nio4r (>= 1.1.0)
59
- chef (12.8.1)
60
- bundler (>= 1.10)
61
- chef-config (= 12.8.1)
62
- chef-zero (~> 4.5)
57
+ chef (12.4.0)
58
+ chef-config (= 12.4.0)
59
+ chef-zero (~> 4.2, >= 4.2.2)
63
60
  diff-lcs (~> 1.2, >= 1.2.4)
64
61
  erubis (~> 2.7)
65
62
  ffi-yajl (~> 2.2)
66
63
  highline (~> 1.6, >= 1.6.9)
67
- mixlib-authentication (~> 1.4)
64
+ mixlib-authentication (~> 1.3)
68
65
  mixlib-cli (~> 1.4)
69
66
  mixlib-log (~> 1.3)
70
- mixlib-shellout (~> 2.0)
71
- net-ssh (>= 2.9, < 4.0)
67
+ mixlib-shellout (>= 2.0.0.rc.0, < 3.0)
68
+ net-ssh (~> 2.6)
72
69
  net-ssh-multi (~> 1.1)
73
- ohai (>= 8.6.0.alpha.1, < 9)
70
+ ohai (~> 8.0)
74
71
  plist (~> 3.1.0)
75
- proxifier (~> 1.0)
76
- rspec-core (~> 3.4)
77
- rspec-expectations (~> 3.4)
78
- rspec-mocks (~> 3.4)
72
+ pry (~> 0.9)
73
+ rspec-core (~> 3.2)
74
+ rspec-expectations (~> 3.2)
75
+ rspec-mocks (~> 3.2)
79
76
  rspec_junit_formatter (~> 0.2.0)
80
77
  serverspec (~> 2.7)
81
78
  specinfra (~> 2.10)
82
79
  syslog-logger (~> 1.6)
83
- uuidtools (~> 2.1.5)
84
- chef-config (12.8.1)
80
+ chef-config (12.4.0)
85
81
  mixlib-config (~> 2.0)
86
82
  mixlib-shellout (~> 2.0)
87
83
  chef-zero (4.5.0)
@@ -91,7 +87,8 @@ GEM
91
87
  rack
92
88
  uuidtools (~> 2.1)
93
89
  cleanroom (1.0.0)
94
- dep-selector-libgecode (1.1.0)
90
+ coderay (1.1.1)
91
+ dep-selector-libgecode (1.2.0)
95
92
  dep_selector (1.0.3)
96
93
  dep-selector-libgecode (~> 1.0)
97
94
  ffi (~> 1.9)
@@ -110,9 +107,13 @@ GEM
110
107
  httpclient (2.6.0.1)
111
108
  ignorefile (1.1.0)
112
109
  ipaddress (0.8.3)
113
- jmespath (1.1.3)
110
+ jmespath (1.2.3)
111
+ json_pure (>= 1.8.1)
114
112
  json (1.8.3)
113
+ json_pure (1.8.3)
115
114
  libyajl2 (1.2.0)
115
+ method_source (0.8.2)
116
+ mime-types (2.99.1)
116
117
  minitar (0.5.4)
117
118
  mixlib-authentication (1.4.0)
118
119
  mixlib-log
@@ -122,12 +123,12 @@ GEM
122
123
  mixlib-cli (1.5.0)
123
124
  mixlib-config (2.2.1)
124
125
  mixlib-log (1.6.0)
125
- mixlib-shellout (2.2.5)
126
+ mixlib-shellout (2.2.6)
126
127
  multi_json (1.11.2)
127
128
  multipart-post (2.0.0)
128
129
  net-scp (1.2.1)
129
130
  net-ssh (>= 2.6.5)
130
- net-ssh (3.0.2)
131
+ net-ssh (2.9.4)
131
132
  net-ssh-gateway (1.2.0)
132
133
  net-ssh (>= 2.6.5)
133
134
  net-ssh-multi (1.2.1)
@@ -137,29 +138,31 @@ GEM
137
138
  nio4r (1.2.1)
138
139
  octokit (3.8.0)
139
140
  sawyer (~> 0.6.0, >= 0.5.3)
140
- ohai (8.12.0)
141
- chef-config (>= 12.5.0.alpha.1, < 13)
141
+ ohai (8.5.1)
142
142
  ffi (~> 1.9)
143
143
  ffi-yajl (~> 2.2)
144
144
  ipaddress
145
+ mime-types (~> 2.0)
145
146
  mixlib-cli
146
147
  mixlib-config (~> 2.0)
147
148
  mixlib-log
148
149
  mixlib-shellout (~> 2.0)
149
- plist
150
150
  rake (~> 10.1)
151
151
  systemu (~> 2.6.4)
152
152
  wmi-lite (~> 1.0)
153
- parser (2.2.3.0)
154
- ast (>= 1.1, < 3.0)
153
+ parser (2.3.0.7)
154
+ ast (~> 2.2)
155
155
  plist (3.1.0)
156
156
  powerpack (0.1.1)
157
- proxifier (1.0.3)
157
+ pry (0.10.3)
158
+ coderay (~> 1.1.0)
159
+ method_source (~> 0.8.1)
160
+ slop (~> 3.4)
158
161
  rack (1.6.4)
159
- rainbow (2.0.0)
160
- rake (10.4.2)
162
+ rainbow (2.1.0)
163
+ rake (10.5.0)
161
164
  retryable (2.0.3)
162
- ridley (4.4.2)
165
+ ridley (4.3.0)
163
166
  addressable
164
167
  buff-config (~> 1.0)
165
168
  buff-extensions (~> 1.0)
@@ -167,7 +170,6 @@ GEM
167
170
  buff-shell_out (~> 0.1)
168
171
  celluloid (~> 0.16.0)
169
172
  celluloid-io (~> 0.16.1)
170
- chef-config
171
173
  erubis
172
174
  faraday (~> 0.9.0)
173
175
  hashie (>= 2.0.2, < 4.0.0)
@@ -176,12 +178,12 @@ GEM
176
178
  mixlib-authentication (>= 1.3.0)
177
179
  retryable (~> 2.0)
178
180
  semverse (~> 1.1)
179
- varia_model (~> 0.4.0)
181
+ varia_model (~> 0.4)
180
182
  rspec (3.4.0)
181
183
  rspec-core (~> 3.4.0)
182
184
  rspec-expectations (~> 3.4.0)
183
185
  rspec-mocks (~> 3.4.0)
184
- rspec-core (3.4.1)
186
+ rspec-core (3.4.4)
185
187
  rspec-support (~> 3.4.0)
186
188
  rspec-expectations (3.4.0)
187
189
  diff-lcs (>= 1.2.0, < 2.0)
@@ -189,37 +191,37 @@ GEM
189
191
  rspec-its (1.2.0)
190
192
  rspec-core (>= 3.0.0)
191
193
  rspec-expectations (>= 3.0.0)
192
- rspec-mocks (3.4.0)
194
+ rspec-mocks (3.4.1)
193
195
  diff-lcs (>= 1.2.0, < 2.0)
194
196
  rspec-support (~> 3.4.0)
195
197
  rspec-support (3.4.1)
196
198
  rspec_junit_formatter (0.2.3)
197
199
  builder (< 4)
198
200
  rspec-core (>= 2, < 4, != 2.12.0)
199
- rubocop (0.35.1)
200
- astrolabe (~> 1.3)
201
- parser (>= 2.2.3.0, < 3.0)
201
+ rubocop (0.39.0)
202
+ parser (>= 2.3.0.7, < 3.0)
202
203
  powerpack (~> 0.1)
203
204
  rainbow (>= 1.99.1, < 3.0)
204
205
  ruby-progressbar (~> 1.7)
205
- tins (<= 1.6.0)
206
+ unicode-display_width (~> 1.0, >= 1.0.1)
206
207
  ruby-progressbar (1.7.5)
207
208
  sawyer (0.6.0)
208
209
  addressable (~> 2.3.5)
209
210
  faraday (~> 0.8, < 0.10)
210
211
  semverse (1.2.1)
211
- serverspec (2.31.0)
212
+ serverspec (2.31.1)
212
213
  multi_json
213
214
  rspec (~> 3.0)
214
215
  rspec-its
215
216
  specinfra (~> 2.53)
216
217
  sfl (2.2)
218
+ slop (3.6.0)
217
219
  solve (1.2.1)
218
220
  dep_selector (~> 1.0)
219
221
  semverse (~> 1.1)
220
- specinfra (2.53.1)
222
+ specinfra (2.56.0)
221
223
  net-scp
222
- net-ssh (>= 2.7, < 3.1)
224
+ net-ssh (>= 2.7, < 4.0)
223
225
  net-telnet
224
226
  sfl
225
227
  syslog-logger (1.6.8)
@@ -230,9 +232,9 @@ GEM
230
232
  thor
231
233
  timers (4.0.4)
232
234
  hitimes
233
- tins (1.6.0)
235
+ unicode-display_width (1.0.3)
234
236
  uuidtools (2.1.5)
235
- varia_model (0.4.1)
237
+ varia_model (0.5.0)
236
238
  buff-extensions (~> 1.0)
237
239
  hashie (>= 2.0.2, < 4.0.0)
238
240
  wmi-lite (1.0.0)
@@ -246,6 +248,3 @@ DEPENDENCIES
246
248
  rspec (~> 3.0)
247
249
  rubocop (~> 0.35)
248
250
  thor-scmversion (= 1.7.0)
249
-
250
- BUNDLED WITH
251
- 1.11.2
data/README.md CHANGED
@@ -16,7 +16,7 @@ Provision an EC2 VM using Vagrant. Same workflow as `local` using the `vagrant-a
16
16
 
17
17
  ### `image [PROFILE = default]`
18
18
 
19
- Use [Packer](packer.io) to build an image(s) for the specified profile.
19
+ Use [Packer](https://www.packer.io) to build an image(s) for the specified profile.
20
20
 
21
21
  ## Configuration
22
22
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0-rc.12
1
+ 1.0.1
@@ -58,7 +58,7 @@ module Builderator
58
58
  ## Parse a SemVer string into a Version
59
59
  def from_string(arg, options = {})
60
60
  matchdata = arg.match(FORMAT)
61
- fail "Builderator::Control::Version.from_string: #{arg} is not a supported semver string" if matchdata.nil?
61
+ return nil if matchdata.nil?
62
62
 
63
63
  new(matchdata[:major], matchdata[:minor], matchdata[:patch], matchdata[:build], options).tap do |version|
64
64
  version.is_prerelease = !matchdata[:prerelease].nil?
@@ -14,6 +14,7 @@ module Builderator
14
14
  def tags
15
15
  @tags ||= _tags
16
16
  .map { |tag, ref| Version.from_string(tag, :ref => ref) }
17
+ .compact
17
18
  .sort
18
19
  end
19
20
 
data/rvm.env ADDED
@@ -0,0 +1,53 @@
1
+ declare -x GEM_HOME="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2"
2
+ declare -x GEM_PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2:/home/jenkins/.rvm/gems/ruby-2.1.5@global"
3
+ declare -x HOME="/home/jenkins"
4
+ declare -x HUDSON_COOKIE="92b73b14-5825-45c6-9fea-609bbfcb2d76"
5
+ declare -x IRBRC="/home/jenkins/.rvm/rubies/ruby-2.1.5/.irbrc"
6
+ declare -x LANG="en_US.UTF-8"
7
+ declare -x LC_ALL="en_US.UTF-8"
8
+ declare -x MY_RUBY_HOME="/home/jenkins/.rvm/rubies/ruby-2.1.5"
9
+ declare -x NLSPATH="/usr/dt/lib/nls/msg/%L/%N.cat"
10
+ declare -x OLDPWD
11
+ declare -x PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2/bin:/home/jenkins/.rvm/gems/ruby-2.1.5@global/bin:/home/jenkins/.rvm/rubies/ruby-2.1.5/bin:/home/jenkins/.rvm/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"
12
+ declare -x PWD="/home/jenkins/workspace/gem-public-builderator-master"
13
+ declare -x RUBY_VERSION="ruby-2.1.5"
14
+ declare -x SHLVL="1"
15
+ declare -x USER="jenkins"
16
+ declare -x XFILESEARCHPATH="/usr/dt/app-defaults/%L/Dt"
17
+ declare -x _system_arch="x86_64"
18
+ declare -x _system_name="Ubuntu"
19
+ declare -x _system_type="Linux"
20
+ declare -x _system_version="14.04"
21
+ declare -x rvm_alias_expanded
22
+ declare -x rvm_bin_flag
23
+ declare -x rvm_bin_path="/home/jenkins/.rvm/bin"
24
+ declare -x rvm_delete_flag="0"
25
+ declare -x rvm_docs_type
26
+ declare -x rvm_file_name
27
+ declare -x rvm_gem_options="--no-rdoc --no-ri"
28
+ declare -x rvm_gemstone_package_file
29
+ declare -x rvm_gemstone_url
30
+ declare -x rvm_niceness
31
+ declare -x rvm_nightly_flag
32
+ declare -x rvm_only_path_flag
33
+ declare -x rvm_path="/home/jenkins/.rvm"
34
+ declare -x rvm_prefix="/home/jenkins"
35
+ declare -x rvm_proxy
36
+ declare -x rvm_quiet_flag
37
+ declare -x rvm_ruby_alias
38
+ declare -x rvm_ruby_bits
39
+ declare -x rvm_ruby_file
40
+ declare -x rvm_ruby_make
41
+ declare -x rvm_ruby_make_install
42
+ declare -x rvm_ruby_mode
43
+ declare -x rvm_ruby_string="ruby-2.1.5"
44
+ declare -x rvm_script_name
45
+ declare -x rvm_sdk
46
+ declare -x rvm_silent_flag
47
+ declare -x rvm_sticky_flag
48
+ declare -x rvm_system_flag
49
+ declare -x rvm_use_flag
50
+ declare -x rvm_user_flag
51
+ declare -x rvm_version="1.26.9 (1.26.9)"
52
+ declare -x rvm_wrapper_name
53
+ declare -x rvmsudo_secure_path="1"
@@ -1,7 +1,10 @@
1
1
  [
2
2
  {
3
3
  "id": "d6f0ae080a484b40687350110f15795bdcde6d7e",
4
- "message": "In reset, check for the setter-method instead of the getter-method"
4
+ "message": "In reset, check for the setter-method instead of the getter-method",
5
+ "tags": [
6
+ "help"
7
+ ]
5
8
  },
6
9
  {
7
10
  "id": "506d7d8d17c49d80c7d4e72cd7ebbe67c04d679d",
@@ -17,7 +20,10 @@
17
20
  },
18
21
  {
19
22
  "id": "a1d3dcbd91a0abff829f8f09337ddc257257e730",
20
- "message": "Merge pull request #14 from rapid7/gemspec"
23
+ "message": "Merge pull request #14 from rapid7/gemspec",
24
+ "tags": [
25
+ "not.the.tag.you.are.looking.for"
26
+ ]
21
27
  },
22
28
  {
23
29
  "id": "c3a0b2402ddf4084c175cc69793d592f8864daf1",
@@ -37,7 +43,10 @@
37
43
  },
38
44
  {
39
45
  "id": "560cea5ea897a2c9e6a484aa5ed95e1a0d81b9c9",
40
- "message": "Add berkshelf_config parameter to berkshelf interface, and copy tags from profile to packer-builders in the packer interface"
46
+ "message": "Add berkshelf_config parameter to berkshelf interface, and copy tags from profile to packer-builders in the packer interface",
47
+ "tags": [
48
+ "not_the_tag_you_are_looking_for"
49
+ ]
41
50
  },
42
51
  {
43
52
  "id": "89403f24e8a4a82ffa67eb941d5afefe55ced37a",
@@ -93,14 +93,14 @@ module Builderator
93
93
  expect(version.build).to be == 9
94
94
  end
95
95
 
96
- it 'fails on invalid specs' do
97
- expect { Version.from_string('1.2.lizard-alpha.42+build.9') }.to raise_error RuntimeError
98
- expect { Version.from_string('1.2.3-alpha.42+taco.9') }.to raise_error RuntimeError
99
- expect { Version.from_string('1.2.3-alpha.guacamole+build.9') }.to raise_error RuntimeError
100
- expect { Version.from_string('1.2.3-alpha.42+build.beef') }.to raise_error RuntimeError
101
- expect { Version.from_string('1.2.dog') }.to raise_error RuntimeError
102
- expect { Version.from_string('1.cat.3') }.to raise_error RuntimeError
103
- expect { Version.from_string('cow.2.3') }.to raise_error RuntimeError
96
+ it 'does not fail on invalid specs' do
97
+ expect(Version.from_string('1.2.lizard-alpha.42+build.9')).to be_nil
98
+ expect(Version.from_string('1.2.3-alpha.42+taco.9')).to be_nil
99
+ expect(Version.from_string('1.2.3-alpha.guacamole+build.9')).to be_nil
100
+ expect(Version.from_string('1.2.3-alpha.42+build.beef')).to be_nil
101
+ expect(Version.from_string('1.2.dog')).to be_nil
102
+ expect(Version.from_string('1.cat.3')).to be_nil
103
+ expect(Version.from_string('cow.2.3')).to be_nil
104
104
  end
105
105
  end
106
106
 
@@ -41,8 +41,8 @@ Vagrant.configure('2') do |config|
41
41
  # Use the standard data directory for Chef
42
42
  ##
43
43
  config.vm.provision :shell,
44
- :inline => "sudo mkdir -p #{Config.chef.staging_directory}/cache && "\
45
- "sudo chown $(whoami) -R #{Config.chef.staging_directory}",
44
+ :inline => "sudo mkdir -p <%= chef.staging_directory %>/cache && "\
45
+ "sudo chown $(whoami) -R <%= chef.staging_directory %>",
46
46
  :privileged => true
47
47
 
48
48
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc.12
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -221,6 +221,7 @@ files:
221
221
  - lib/builderator/util/aws_exception.rb
222
222
  - lib/builderator/util/limit_exception.rb
223
223
  - lib/builderator/util/task_exception.rb
224
+ - rvm.env
224
225
  - spec/config_spec.rb
225
226
  - spec/data/Berksfile
226
227
  - spec/data/Buildfile
@@ -262,12 +263,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
262
263
  version: '0'
263
264
  required_rubygems_version: !ruby/object:Gem::Requirement
264
265
  requirements:
265
- - - ">"
266
+ - - ">="
266
267
  - !ruby/object:Gem::Version
267
- version: 1.3.1
268
+ version: '0'
268
269
  requirements: []
269
270
  rubyforge_project:
270
- rubygems_version: 2.4.5.1
271
+ rubygems_version: 2.4.3
271
272
  signing_key:
272
273
  specification_version: 4
273
274
  summary: Tools to make CI Packer builds awesome