appbundle-updater 0.6.11 → 0.6.15

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: ff4d3079308b7d319e80374847f28a6a6e376b8fe10d7994d4a4d3d0ad699fe6
4
- data.tar.gz: 746ce7cf0bddd703c781eb1f96525cbcfff2ac6c047d974d443dd46b9ffc253a
3
+ metadata.gz: b8faf2a1bce92726650424e6c8294b205d28e66c873c8a399177305386fcf490
4
+ data.tar.gz: fb75f5af16485fd520c206e6dbd422395924b64dd1a17a9025dd834382b668b9
5
5
  SHA512:
6
- metadata.gz: d8536bc38733f5ba1303d1666227be645c2f6771dc83481d0f100c90a576104c941f1bea07acd6fb22ad9f1777c85c68ff080802abc4975834fff2ed9a720941
7
- data.tar.gz: 40f840e612e5ae0c286cae199df03678edda850ed648472d409210ac45670ebac38517bf560fc8cd9b140d4f58558252a02e263e80b488e26dda881b4193778c
6
+ metadata.gz: 784260365156f1778f54ed785746014f1ae73ae1a121eeee797f62634033db3ef3cba092e1fc1e0ed3080825cc1b19f00ce6f1bc4a9a1cda69de2bd23399a9af
7
+ data.tar.gz: 78def0be8c45323cfc098399d0b89af09f8da9708ce25c48e478db2b8d552d56aab656e4ccdce32694b4b4970c75da965875e29ee0cbab7d6f8d1c7d9a2e43f8
@@ -1,20 +1,29 @@
1
1
  # appbundle-updater Change Log
2
2
 
3
- <!-- latest_release 0.6.11 -->
4
- ## [v0.6.11](https://github.com/chef/appbundle-updater/tree/v0.6.11) (2019-04-24)
3
+ <!-- latest_release 0.6.15 -->
4
+ ## [v0.6.15](https://github.com/chef/appbundle-updater/tree/v0.6.15) (2019-07-18)
5
5
 
6
6
  #### Merged Pull Requests
7
- - trivial fix [#39](https://github.com/chef/appbundle-updater/pull/39) ([lamont-granquist](https://github.com/lamont-granquist))
7
+ - Support Fedora 30 by trying to install both lzma-devel and xz-devel [#43](https://github.com/chef/appbundle-updater/pull/43) ([tas50](https://github.com/tas50))
8
8
  <!-- latest_release -->
9
9
 
10
- <!-- release_rollup since=0.6.10 -->
10
+ <!-- release_rollup since=0.6.11 -->
11
11
  ### Changes not yet released to rubygems.org
12
12
 
13
13
  #### Merged Pull Requests
14
- - trivial fix [#39](https://github.com/chef/appbundle-updater/pull/39) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.11 -->
14
+ - Support Fedora 30 by trying to install both lzma-devel and xz-devel [#43](https://github.com/chef/appbundle-updater/pull/43) ([tas50](https://github.com/tas50)) <!-- 0.6.15 -->
15
+ - Add Windows testing in BuildKite [#42](https://github.com/chef/appbundle-updater/pull/42) ([tas50](https://github.com/tas50)) <!-- 0.6.14 -->
16
+ - Remove Travis CI PR testing [#41](https://github.com/chef/appbundle-updater/pull/41) ([tas50](https://github.com/tas50)) <!-- 0.6.13 -->
17
+ - Setup this repo for Buildkite testing [#40](https://github.com/chef/appbundle-updater/pull/40) ([tas50](https://github.com/tas50)) <!-- 0.6.12 -->
15
18
  <!-- release_rollup -->
16
19
 
17
20
  <!-- latest_stable_release -->
21
+ ## [v0.6.11](https://github.com/chef/appbundle-updater/tree/v0.6.11) (2019-04-24)
22
+
23
+ #### Merged Pull Requests
24
+ - trivial fix [#39](https://github.com/chef/appbundle-updater/pull/39) ([lamont-granquist](https://github.com/lamont-granquist))
25
+ <!-- latest_stable_release -->
26
+
18
27
  ## [v0.6.10](https://github.com/chef/appbundle-updater/tree/v0.6.10) (2019-04-24)
19
28
 
20
29
  #### Merged Pull Requests
@@ -24,7 +33,6 @@
24
33
  - Update travis ruby versions + minor github tweaks [#36](https://github.com/chef/appbundle-updater/pull/36) ([tas50](https://github.com/tas50))
25
34
  - Add project status info to the readme [#37](https://github.com/chef/appbundle-updater/pull/37) ([tas50](https://github.com/tas50))
26
35
  - support --binstubs-source option [#38](https://github.com/chef/appbundle-updater/pull/38) ([lamont-granquist](https://github.com/lamont-granquist))
27
- <!-- latest_stable_release -->
28
36
 
29
37
  ## [v0.6.2](https://github.com/chef/appbundle-updater/tree/v0.6.2) (2018-10-10)
30
38
 
data/Gemfile CHANGED
@@ -9,8 +9,8 @@ group :docs do
9
9
  end
10
10
 
11
11
  group :test do
12
- gem "rake"
13
12
  gem "chefstyle"
13
+ gem "rake"
14
14
  end
15
15
 
16
16
  group :debug do
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # appbundle-updater
2
+ [![Build status](https://badge.buildkite.com/0d8c5acd906f8477d39b49680f28aa818149dd255ffdabf86f.svg?branch=master)](https://buildkite.com/chef-oss/chef-appbundle-updater-master-verify)
2
3
  [![Gem Version](https://badge.fury.io/rb/appbundle-updater.svg)](https://badge.fury.io/rb/appbundle-updater)
3
4
 
4
- * **Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md)
5
- * **[Project State](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: Active
6
- * **Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 7 days
7
- * **Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 7 days
5
+ **Umbrella Project**: [Chef Foundation](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md)
6
+
7
+ **Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)
8
+
9
+ **Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
10
+
11
+ **Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
8
12
 
9
13
  Helper to update Chef and Chef-DK appbundle'd apps inside of an omnibus bundle.
10
14
 
data/Rakefile CHANGED
@@ -4,11 +4,12 @@ task default: [:style]
4
4
  begin
5
5
  require "chefstyle"
6
6
  require "rubocop/rake_task"
7
+ desc "Run Chefstyle tests"
7
8
  RuboCop::RakeTask.new(:style) do |task|
8
9
  task.options += ["--display-cop-names", "--no-color"]
9
10
  end
10
11
  rescue LoadError
11
- puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed."
12
+ puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
12
13
  end
13
14
 
14
15
  begin
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.11
1
+ 0.6.15
@@ -57,6 +57,7 @@ def run(cmd)
57
57
  unless $?.exited? && $?.exitstatus == 0
58
58
  raise("Command [#{cmd}] failed!\n\n---BEGIN OUTPUT--\n#{output}\n---END OUTPUT--\n")
59
59
  end
60
+
60
61
  ENV_KEYS.each { |key| ENV[key] = ENV.delete("_YOLO_#{key}") }
61
62
  end
62
63
 
@@ -64,14 +65,16 @@ TAR_LONGLINK = "././@LongLink".freeze
64
65
 
65
66
  def install_package_dependencies
66
67
  banner("Installing Packages")
67
- case `#{bin_dir}/ohai platform_family`
68
+ case `#{bin_dir}/ohai platform_family` # rubocop: disable Lint/LiteralAsCondition
68
69
  when /debian/
69
70
  ENV["DEBIAN_FRONTEND"] = "noninteractive"
70
71
  run("apt-get -y update")
71
72
  run("apt-get -q -y install build-essential git liblzma-dev zlib1g-dev")
72
73
  when /fedora/, /rhel/, /amazon/
73
74
  if File.exist?("/usr/bin/dnf")
74
- run("dnf -y install gcc gcc-c++ make git zlib-devel lzma-devel")
75
+ run("dnf -y install gcc gcc-c++ make git zlib-devel")
76
+ # lzma-devel has been replaced in fedora 30+ with xz-devel
77
+ run("dnf -y install lzma-devel || dnf -y install xz-devel")
75
78
  else
76
79
  run("yum -y install gcc gcc-c++ make git zlib-devel lzma-devel")
77
80
  end
@@ -155,9 +158,9 @@ CHEFDK_APPS = [
155
158
  "#{bin_dir.join("rake")} install"
156
159
  ),
157
160
  App.new(
158
- "cookstyle",
159
- "chef/cookstyle",
160
- nil,
161
+ "cookstyle",
162
+ "chef/cookstyle",
163
+ nil,
161
164
  "#{bin_dir.join("rake")} install"
162
165
  ),
163
166
  App.new(
@@ -170,7 +173,8 @@ CHEFDK_APPS = [
170
173
  "inspec",
171
174
  "chef/inspec",
172
175
  "test integration tools maintenance deploy",
173
- "#{bin_dir.join("rake")} install"),
176
+ "#{bin_dir.join("rake")} install"
177
+ ),
174
178
  App.new(
175
179
  "ohai",
176
180
  "chef/ohai",
@@ -182,7 +186,7 @@ CHEFDK_APPS = [
182
186
  "test-kitchen/test-kitchen",
183
187
  "guard test",
184
188
  "#{bin_dir.join("rake")} install"
185
- )
189
+ ),
186
190
  ].freeze
187
191
 
188
192
  class Updater
@@ -290,7 +294,7 @@ class CLI
290
294
  attr_reader :options, :parser
291
295
 
292
296
  def initialize
293
- @options = Hash.new
297
+ @options = {}
294
298
  @parser = OptionParser.new do |opts|
295
299
  opts.banner = "Usage: #{$0} PROJECT APP_NAME GIT_REF"
296
300
  opts.on("-t", "--[no-]tarball", "Do a tarball download instead of git clone") do |t|
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "0.6.11".freeze
2
+ VERSION = "0.6.15".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: 0.6.11
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Updates appbundled apps in Chef's omnibus packages
14
14
  email: