appbundle-updater 1.0.0 → 1.0.5

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8138b8ba721779391f93cb5af5c03e4ac34e95af1181a3d6ac38478f010442be
4
- data.tar.gz: c1694ec12f05275e409cbc51df222771188d20c240320c0b99da6c37e5ab6403
3
+ metadata.gz: 35e852a7a413c901a80af3afb028df575256847915bf2eda64eefd768a3ba358
4
+ data.tar.gz: 2dbd4e1a942a872ca0fe06f2929b1c52971aa2525d39b146e154acf5f507a717
5
5
  SHA512:
6
- metadata.gz: dd87244b8046dc16cf9822ee5020221ca23e4edcf7f5f9c03260dc31bd163de65b09b796b51ccd1cb1eb082d27a7c262d6790dee09c10f03ac903ecae495557b
7
- data.tar.gz: 3173f62a44bfe6737c5d4a76adc170cc3d90519df4eb8a68c6f071da5bf6017541d89f210f2d67008702057cf6907f56b4bb43e06f639f1e7ae26354f76e0589
6
+ metadata.gz: 34fdca0eabb8c1561e1b159b8854b52e61f90e70e185f38c001e610b49f25850a4fed75bd16f4f4df3538685d860bbc653f0f5835bbd1fbf8c1792b97cc428fe
7
+ data.tar.gz: fc7aad393794a2389cd16fc07f17ba9abd55b0e8bd1d1bdb4bfee443c6c001a50091f1891da3de5067463ab93045299b7de3aeb08479ac346a40ea1e21eda315
@@ -1,25 +1,50 @@
1
1
  # appbundle-updater Change Log
2
2
 
3
- <!-- latest_release 1.0.0 -->
4
- ## [v1.0.0](https://github.com/chef/appbundle-updater/tree/v1.0.0) (2020-03-11)
3
+ <!-- latest_release 1.0.5 -->
4
+ ## [v1.0.5](https://github.com/chef/appbundle-updater/tree/v1.0.5) (2020-05-29)
5
5
 
6
6
  #### Merged Pull Requests
7
- - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist))
7
+ - switch from `open` to `URI.open` [#54](https://github.com/chef/appbundle-updater/pull/54) ([lamont-granquist](https://github.com/lamont-granquist))
8
8
  <!-- latest_release -->
9
9
 
10
- <!-- release_rollup since=0.6.18 -->
10
+ <!-- release_rollup since=1.0.4 -->
11
11
  ### Changes not yet released to rubygems.org
12
12
 
13
13
  #### Merged Pull Requests
14
- - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 1.0.0 -->
14
+ - switch from `open` to `URI.open` [#54](https://github.com/chef/appbundle-updater/pull/54) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 1.0.5 -->
15
15
  <!-- release_rollup -->
16
16
 
17
17
  <!-- latest_stable_release -->
18
+ ## [v1.0.4](https://github.com/chef/appbundle-updater/tree/v1.0.4) (2020-04-28)
19
+
20
+ #### Merged Pull Requests
21
+ - update gem groups in appbundler [#53](https://github.com/chef/appbundle-updater/pull/53) ([lamont-granquist](https://github.com/lamont-granquist))
22
+ <!-- latest_stable_release -->
23
+
24
+ ## [v1.0.3](https://github.com/chef/appbundle-updater/tree/v1.0.3) (2020-03-12)
25
+
26
+ #### Merged Pull Requests
27
+ - fix a local variable [#51](https://github.com/chef/appbundle-updater/pull/51) ([lamont-granquist](https://github.com/lamont-granquist))
28
+
29
+ ## [v1.0.2](https://github.com/chef/appbundle-updater/tree/v1.0.2) (2020-03-12)
30
+
31
+ #### Merged Pull Requests
32
+ - omit the right groups for ohai [#50](https://github.com/chef/appbundle-updater/pull/50) ([lamont-granquist](https://github.com/lamont-granquist))
33
+
34
+ ## [v1.0.1](https://github.com/chef/appbundle-updater/tree/v1.0.1) (2020-03-12)
35
+
36
+ #### Merged Pull Requests
37
+ - more chef-15 updates [#49](https://github.com/chef/appbundle-updater/pull/49) ([lamont-granquist](https://github.com/lamont-granquist))
38
+
39
+ ## [v1.0.0](https://github.com/chef/appbundle-updater/tree/v1.0.0) (2020-03-11)
40
+
41
+ #### Merged Pull Requests
42
+ - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist))
43
+
18
44
  ## [v0.6.18](https://github.com/chef/appbundle-updater/tree/v0.6.18) (2020-03-11)
19
45
 
20
46
  #### Merged Pull Requests
21
47
  - need output logging so that we can debug [#47](https://github.com/chef/appbundle-updater/pull/47) ([lamont-granquist](https://github.com/lamont-granquist))
22
- <!-- latest_stable_release -->
23
48
 
24
49
  ## [v0.6.17](https://github.com/chef/appbundle-updater/tree/v0.6.17) (2019-09-30)
25
50
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.5
@@ -119,7 +119,7 @@ def extract_tgz(file, destination = ".")
119
119
  end
120
120
  end
121
121
 
122
- App = Struct.new(:name, :repo, :bundle_without, :install_command, :gems) do
122
+ App = Struct.new(:name, :repo, :bundle_without, :install_commands, :gems) do
123
123
  def initialize(*)
124
124
  super
125
125
  self.gems ||= {}
@@ -134,7 +134,7 @@ chef_install_command =
134
134
  if windows?
135
135
  "#{bin_dir.join("gem")} build chef-windows.gemspec & #{bin_dir.join("gem")} install chef*.gem --no-document"
136
136
  else
137
- "#{bin_dir.join("rake")} install"
137
+ "#{bin_dir.join("bundle")} exec #{bin_dir.join("rake")} install"
138
138
  end
139
139
 
140
140
  CHEFDK_APPS = [
@@ -147,13 +147,13 @@ CHEFDK_APPS = [
147
147
  App.new(
148
148
  "chef",
149
149
  "chef/chef",
150
- "development docgen chefstyle",
151
- "#{bin_dir.join("bundle")} install --without server,docgen,maintenance,pry,travis,integration,ci,chefstyle",
150
+ "server docgen maintenance pry travis integration ci chefstyle",
151
+ chef_install_command,
152
152
  {
153
- "chef" => %w{server docgen maintenance pry travis integration ci chefstyle},
154
- "chef-bin" => %w{server docgen maintenance pry travis integration ci chefstyle},
155
- "ohai" => %w{server docgen maintenance pry travis integration ci chefstyle},
156
- "inspec-core-bin" => %w{server docgen maintenance pry travis integration ci chefstyle},
153
+ "chef" => %w{docgen chefstyle},
154
+ "chef-bin" => %w{development},
155
+ "ohai" => %w{development docs debug},
156
+ "inspec-core-bin" => %w{development},
157
157
  },
158
158
  ),
159
159
  App.new(
@@ -204,7 +204,7 @@ CHEFDK_APPS = [
204
204
  App.new(
205
205
  "ohai",
206
206
  "chef/ohai",
207
- "ci docs debug",
207
+ "development docs debug",
208
208
  "#{bin_dir.join("rake")} install"
209
209
  ),
210
210
  App.new(
@@ -216,7 +216,7 @@ CHEFDK_APPS = [
216
216
  ].freeze
217
217
 
218
218
  class Updater
219
- attr_reader :app, :ref, :tarball, :repo, :gems
219
+ attr_reader :app, :ref, :tarball, :repo, :gems, :install_commands
220
220
 
221
221
  def initialize(options)
222
222
  @app = options[:app]
@@ -226,6 +226,7 @@ class Updater
226
226
  @binstubs_source = options[:binstubs_source]
227
227
  @repo = options[:repo] || @app.repo
228
228
  @gems = @app.gems
229
+ @install_commands = @app.install_commands
229
230
  end
230
231
 
231
232
  def start
@@ -252,7 +253,7 @@ class Updater
252
253
  Dir.chdir(chefdk.join("embedded/apps")) do
253
254
  Tempfile.open("appbundle-updater") do |tempfile|
254
255
  tempfile.binmode
255
- open(git_url) do |uri|
256
+ URI.open(git_url) do |uri|
256
257
  tempfile.write(uri.read)
257
258
  end
258
259
  tempfile.close
@@ -281,7 +282,9 @@ class Updater
281
282
 
282
283
  banner("Installing gem")
283
284
  Dir.chdir(app_dir) do
284
- ruby("#{bin_dir.join("bundle")} exec #{app.install_command}")
285
+ Array(install_commands).each do |command|
286
+ ruby(command)
287
+ end
285
288
  end
286
289
 
287
290
  banner("Updating appbundler binstubs for #{app}")
@@ -296,7 +299,7 @@ class Updater
296
299
  gems.each do |gem_name, without|
297
300
  Dir.chdir(app_dir) do
298
301
  cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")} #{gem_name}"
299
- cmd += " --without #{@without.join(",")}" if @without
302
+ cmd += " --without #{without.join(",")}" if without
300
303
  cmd += " --extra-bin-files #{@extra_bin_files}" if @extra_bin_files
301
304
  cmd += " --binstubs-source #{@binstubs_source}" if @binstubs_source
302
305
  ruby(cmd)
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.5".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-05-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Updates appbundled apps in Chef's omnibus packages
14
14
  email: