appbundle-updater 0.6.4 → 0.6.6

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: 72fc5bd286d975bd2ebd226f3040188a703345d8f7e5deeb897bc328e6b12e14
4
- data.tar.gz: b95695c4e661369813e37b6f7b0da7175a30243e154d9257141d70242737c39c
3
+ metadata.gz: a425b99a26f13d70421f39074a3249de340cf841362d114f38c62f1d20438e3a
4
+ data.tar.gz: 692e1c592af18e2edec537076ef9f2bbb467a29f06afd4c51800e85023e311a3
5
5
  SHA512:
6
- metadata.gz: 4dc143117e8ad2cab4ead1407501c1cb6c2671ee55151b86cd4e68c36be88c7abef23bab22d8d71f82e31e04f5db79e14198109d7b528aee42c085f697b9f143
7
- data.tar.gz: 6431d8aa4f67b7b72b9fb069efbee84b4cdcee167504fd8da72ff09a1331fab4d2965ed7447b42faa7bc78120be72d524804a36f612c3ce1e57ff4d6969c3e64
6
+ metadata.gz: 86e8ececb10f3ba136760b06e865411c4da895c182d27d3a1cb3eb51aa58b05efae21d411ff0b7d8f9f0dc7c2e343fadeedc10f34ba20709ec82dc41aa16b821
7
+ data.tar.gz: '0895fb5996b35ff305e291a7b14b963b3f74728d74014e7f9933c9c5cf8ca2dd2ca5781562a1ca270e8603983eaa8f42556e49e267a7b6b2827217f9d48fe9e1'
@@ -1,16 +1,17 @@
1
1
  # appbundle-updater Change Log
2
2
 
3
- <!-- latest_release 0.6.4 -->
4
- ## [v0.6.4](https://github.com/chef/appbundle-updater/tree/v0.6.4) (2018-11-27)
3
+ <!-- latest_release 0.6.5 -->
4
+ ## [v0.6.5](https://github.com/chef/appbundle-updater/tree/v0.6.5) (2019-01-28)
5
5
 
6
6
  #### Merged Pull Requests
7
- - i don&#39;t believe this gsub is useful [#33](https://github.com/chef/appbundle-updater/pull/33) ([lamont-granquist](https://github.com/lamont-granquist))
7
+ - Add yard deps that rake task uses [#34](https://github.com/chef/appbundle-updater/pull/34) ([tas50](https://github.com/tas50))
8
8
  <!-- latest_release -->
9
9
 
10
10
  <!-- release_rollup since=0.6.2 -->
11
11
  ### Changes not yet released to rubygems.org
12
12
 
13
13
  #### Merged Pull Requests
14
+ - Add yard deps that rake task uses [#34](https://github.com/chef/appbundle-updater/pull/34) ([tas50](https://github.com/tas50)) <!-- 0.6.5 -->
14
15
  - i don&#39;t believe this gsub is useful [#33](https://github.com/chef/appbundle-updater/pull/33) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.3 -->
15
16
  - fix pulling tags [#32](https://github.com/chef/appbundle-updater/pull/32) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.3 -->
16
17
  <!-- release_rollup -->
@@ -0,0 +1 @@
1
+ Please refer to the Chef Community Code of Conduct at https://www.chef.io/code-of-conduct/
@@ -0,0 +1 @@
1
+ Please refer to https://github.com/chef/chef/blob/master/CONTRIBUTING.md
data/Gemfile CHANGED
@@ -2,6 +2,12 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
+ group :docs do
6
+ gem "yard"
7
+ gem "redcarpet"
8
+ gem "github-markup"
9
+ end
10
+
5
11
  group :test do
6
12
  gem "rake"
7
13
  gem "chefstyle"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -53,14 +53,14 @@ def run(cmd)
53
53
  ENV_KEYS.each { |key| ENV["_YOLO_#{key}"] = ENV[key]; ENV.delete(key) }
54
54
  ENV["PATH"] = bin_dir.to_s + File::PATH_SEPARATOR + ENV["_YOLO_PATH"]
55
55
  puts " running: #{cmd}"
56
- output = `#{cmd} 2>&1` #FIXME: bash/zsh-ism, will not work on csh
56
+ output = `#{cmd} 2>&1` # FIXME: bash/zsh-ism, will not work on csh
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
  ENV_KEYS.each { |key| ENV[key] = ENV.delete("_YOLO_#{key}") }
61
61
  end
62
62
 
63
- TAR_LONGLINK = "././@LongLink"
63
+ TAR_LONGLINK = "././@LongLink".freeze
64
64
 
65
65
  def install_package_dependencies
66
66
  banner("Installing Packages")
@@ -78,7 +78,7 @@ def install_package_dependencies
78
78
  when /suse/
79
79
  run("zypper --non-interactive install gcc gcc-c++ make git")
80
80
  else
81
- puts "i do not know how to install compilers and git on this platform..."
81
+ puts "I do not know how to install compilers and git on this platform..."
82
82
  end
83
83
  end
84
84
 
@@ -97,17 +97,17 @@ def extract_tgz(file, destination = ".")
97
97
  dest ||= File.join destination, entry.full_name
98
98
  if entry.directory? || (entry.header.typeflag == "" && entry.full_name.end_with?("/"))
99
99
  File.delete dest if File.file? dest
100
- FileUtils.mkdir_p dest, :mode => entry.header.mode, :verbose => false
100
+ FileUtils.mkdir_p dest, mode: entry.header.mode, verbose: false
101
101
  elsif entry.file? || (entry.header.typeflag == "" && !entry.full_name.end_with?("/"))
102
102
  FileUtils.rm_rf dest if File.directory? dest
103
103
  File.open dest, "wb" do |f|
104
104
  f.print entry.read
105
105
  end
106
- FileUtils.chmod entry.header.mode, dest, :verbose => false
107
- elsif entry.header.typeflag == "2" #Symlink!
106
+ FileUtils.chmod entry.header.mode, dest, verbose: false
107
+ elsif entry.header.typeflag == "2" # Symlink!
108
108
  File.symlink entry.header.linkname, dest
109
109
  else
110
- puts "Unkown tar entry: #{entry.full_name} type: #{entry.header.typeflag}."
110
+ puts "Unknown tar entry: #{entry.full_name} type: #{entry.header.typeflag}."
111
111
  end
112
112
  dest = nil
113
113
  end
@@ -122,7 +122,7 @@ end
122
122
 
123
123
  chef_install_command =
124
124
  if windows?
125
- "#{bin_dir.join("gem")} build chef-windows.gemspec & #{bin_dir.join("gem")} install chef*.gem --no-ri --no-rdoc"
125
+ "#{bin_dir.join("gem")} build chef-windows.gemspec & #{bin_dir.join("gem")} install chef*.gem --no-document"
126
126
  else
127
127
  "#{bin_dir.join("rake")} install"
128
128
  end
@@ -253,7 +253,9 @@ class Updater
253
253
 
254
254
  banner("Updating appbundler binstubs for #{app}")
255
255
  Dir.chdir(app_dir) do
256
- ruby("#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}")
256
+ cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}"
257
+ cmd += " --extra-bin-files #{options[:extra_bin_files]}" if options[:extra_bin_files]
258
+ ruby(cmd)
257
259
  end
258
260
 
259
261
  banner("Finished!")
@@ -298,6 +300,9 @@ class CLI
298
300
  puts opts
299
301
  exit
300
302
  end
303
+ opts.on("-E", "--extra-bin-files BIN1,BIN2") do |e|
304
+ options[:extra_bin_files] = e
305
+ end
301
306
  opts.separator("")
302
307
  opts.separator("App names:")
303
308
  CHEFDK_APPS.each { |a| opts.separator(" * #{a.name}") }
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.6".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.4
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Updates appbundled apps in Chef's omnibus packages
14
14
  email:
@@ -19,6 +19,8 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - CHANGELOG.md
22
+ - CODE_OF_CONDUCT.md
23
+ - CONTRIBUTING.md
22
24
  - Gemfile
23
25
  - LICENSE
24
26
  - README.md
@@ -48,8 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
50
  - !ruby/object:Gem::Version
49
51
  version: '0'
50
52
  requirements: []
51
- rubyforge_project:
52
- rubygems_version: 2.7.6
53
+ rubygems_version: 3.0.2
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: Updates appbundled apps in Chef's omnibus packages