appbundler 0.12.0 → 0.12.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
  SHA256:
3
- metadata.gz: b90fc1cd44078573f169f8eb73c35176a6ed31197017d2674e26fb210de64e7c
4
- data.tar.gz: 4bb6f4bdb731359d70371424e5d9c46d4204162a5acd7c7563b712318c246591
3
+ metadata.gz: 886181ef678a9ce88062704fa123af11d9232922f8b035e822b68a90599dd5bd
4
+ data.tar.gz: 87e9e2684edc2eca88201029e90898f807e1587262863c0dc961674904dedac9
5
5
  SHA512:
6
- metadata.gz: 43c039d754b3f17c3475068125fa8bb79d45860370c31cfa614a3e778c5c90c0ebae16d3b0d63f14399b8260e9a223814207e649677956d838fb6c85dec7bd2a
7
- data.tar.gz: b24147d402b51d1db6e82ad768012c0bfd7f30aa13470252e69ea7d9e404cb651718bccdb3faae371285f720b31e21fd1410727778413a7c16f08faa8558e54e
6
+ metadata.gz: c96ebe92e681abd3e3e5d0b1de54320b64beaad50a925855781f423f182fc524872c1775b91d687474df39fd1b1f1e8cb75498297dbba8b977244dbade1acd90
7
+ data.tar.gz: 392cf2472ba1c7dc3afcf2bde234248a8b43e8f223ec01b5654fac0850c26e545868e58d653613797d8a1975fab19dd2ae2bd024c2dc965698079e148dd2353a
@@ -16,6 +16,7 @@ github:
16
16
  # allow bumping the minor release via label
17
17
  minor_bump_labels:
18
18
  - "Expeditor: Bump Version Minor"
19
+ # allow bumping the major release via label
19
20
  major_bump_labels:
20
21
  - "Expeditor: Bump Version Major"
21
22
 
@@ -32,7 +33,7 @@ merge_actions:
32
33
  only_if: built_in:bump_version
33
34
  - built_in:update_changelog:
34
35
  ignore_labels:
35
- - "Expeditor: Exclude From Changelog"
36
+ - "Expeditor: Skip Changelog"
36
37
  - "Expeditor: Skip All"
37
38
  - built_in:build_gem:
38
39
  only_if: built_in:bump_version
@@ -1,5 +1,7 @@
1
1
  # Order is important. The last matching pattern has the most precedence.
2
2
 
3
- * @chef/client-maintainers
4
- .expeditor/** @chef/jex-team
5
- README.md @chef/docs-team
3
+ * @chef/client-maintainers
4
+ .expeditor/** @chef/jex-team
5
+ README.md @chef/docs-team
6
+ RELEASE_NOTES.md @chef/docs-team
7
+ .github/ISSUE_TEMPLATE/** @chef/docs-team
@@ -1,8 +1,16 @@
1
+ ---
2
+ name: � Bug Report
3
+ about: If something isn't working as expected �.
4
+ labels: "Status: Untriaged"
5
+ ---
6
+
1
7
  # Version:
2
8
 
3
9
  [Version of the project installed]
4
10
 
5
- # Environment: [Details about the environment such as the Operating System, cookbook details, etc...]
11
+ # Environment:
12
+
13
+ [Details about the environment such as the Operating System, cookbook details, etc...]
6
14
 
7
15
  # Scenario:
8
16
 
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: Design Proposal
3
+ about: I have a significant change I would like to propose and discuss before starting
4
+ labels: "Status: Untriaged"
5
+ ---
6
+
7
+ ### When a Change Needs a Design Proposal
8
+
9
+ A design proposal should be opened any time a change meets one of the following qualifications:
10
+
11
+ - Significantly changes the user experience of a project in a way that impacts users.
12
+ - Significantly changes the underlying architecture of the project in a way that impacts other developers.
13
+ - Changes the development or testing process of the project such as a change of CI systems or test frameworks.
14
+
15
+ ### Why We Use This Process
16
+
17
+ - Allows all interested parties (including any community member) to discuss large impact changes to a project.
18
+ - Serves as a durable paper trail for discussions regarding project architecture.
19
+ - Forces design discussions to occur before PRs are created.
20
+ - Reduces PR refactoring and rejected PRs.
21
+
22
+ ---
23
+
24
+ <!--- Proposal description and rationale. -->
25
+
26
+ ## Motivation
27
+
28
+ <!---
29
+ As a <<user_profile>>,
30
+ I want to <<functionality>>,
31
+ so that <<benefit>>.
32
+ -->
33
+
34
+ ## Specification
35
+
36
+ <!--- A detailed description of the planned implementation. -->
37
+
38
+ ## Downstream Impact
39
+
40
+ <!--- Which other tools will be impacted by this work? -->
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: 🚀 Enhancement Request
3
+ about: I have a suggestion (and may want to implement it 🙂)!
4
+ labels: "Status: Untriaged"
5
+ ---
6
+
7
+ ### Describe the Enhancement:
8
+ <!--- What you are trying to achieve that you can't? -->
9
+
10
+ ### Describe the Need:
11
+ <!--- What kind of user do you believe would utilize this enhancement, and how many users might want this functionality -->
12
+
13
+ ### Current Alternative
14
+ <!--- Is there a current alternative that you can utilize to workaround the lack of this enhancement -->
15
+
16
+ ### Can We Help You Implement This?:
17
+ <!--- The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: 🤗 Support Question
3
+ about: If you have a question 💬, please check out our Slack!
4
+ ---
5
+
6
+ We use GitHub issues to track bugs and feature requests. If you need help please post to our Mailing List or join the Chef Community Slack.
7
+
8
+ * Chef Community Slack at http://community-slack.chef.io/.
9
+ * Chef Mailing List https://discourse.chef.io/
10
+
11
+
12
+ Support issues opened here will be closed and redirected to Slack or Discourse.
@@ -12,3 +12,4 @@ StackOverflow discussions that are relevant]
12
12
  - [ ] New functionality includes tests
13
13
  - [ ] All tests pass
14
14
  - [ ] All commits have been signed-off for the Developer Certificate of Origin. See <https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco>
15
+ - [ ] PR title is a worthy inclusion in the CHANGELOG
@@ -2,21 +2,25 @@
2
2
 
3
3
  This file is used to document the changes between releases of Appbundler
4
4
 
5
- <!-- latest_release 0.12.0 -->
6
- ## [v0.12.0](https://github.com/chef/appbundler/tree/v0.12.0) (2019-03-18)
5
+ <!-- latest_release 0.12.1 -->
6
+ ## [v0.12.1](https://github.com/chef/appbundler/tree/v0.12.1) (2019-04-16)
7
7
 
8
8
  #### Merged Pull Requests
9
- - Fix the labels to properly bump the gem [#49](https://github.com/chef/appbundler/pull/49) ([tas50](https://github.com/tas50))
9
+ - add support for extra bin files not in the binstubs [#50](https://github.com/chef/appbundler/pull/50) ([lamont-granquist](https://github.com/lamont-granquist))
10
10
  <!-- latest_release -->
11
11
 
12
- <!-- release_rollup since=0.11.6 -->
12
+ <!-- release_rollup since=0.12.0 -->
13
13
  ### Changes not yet released to rubygems.org
14
14
 
15
15
  #### Merged Pull Requests
16
- - Fix the labels to properly bump the gem [#49](https://github.com/chef/appbundler/pull/49) ([tas50](https://github.com/tas50)) <!-- 0.12.0 -->
17
- - Require ruby 2.3+ and loosen gem deps [#48](https://github.com/chef/appbundler/pull/48) ([tas50](https://github.com/tas50)) <!-- 0.11.9 -->
18
- - Update README.md [#47](https://github.com/chef/appbundler/pull/47) ([markan](https://github.com/markan)) <!-- 0.11.8 -->
16
+ - add support for extra bin files not in the binstubs [#50](https://github.com/chef/appbundler/pull/50) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.12.1 -->
19
17
  <!-- release_rollup -->
20
18
 
21
19
  <!-- latest_stable_release -->
20
+ ## [v0.12.0](https://github.com/chef/appbundler/tree/v0.12.0) (2019-03-18)
21
+
22
+ #### Merged Pull Requests
23
+ - Update README.md [#47](https://github.com/chef/appbundler/pull/47) ([markan](https://github.com/markan))
24
+ - Require ruby 2.3+ and loosen gem deps [#48](https://github.com/chef/appbundler/pull/48) ([tas50](https://github.com/tas50))
25
+ - Fix the labels to properly bump the gem [#49](https://github.com/chef/appbundler/pull/49) ([tas50](https://github.com/tas50))
22
26
  <!-- latest_stable_release -->
@@ -0,0 +1 @@
1
+ Please refer to https://github.com/chef/chef/blob/master/CONTRIBUTING.md
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.1
@@ -17,6 +17,7 @@ module Appbundler
17
17
  attr_reader :bundle_path
18
18
  attr_reader :target_bin_dir
19
19
  attr_reader :name
20
+ attr_reader :extra_bin_files
20
21
 
21
22
  # The bundle_path is always the path to the Gemfile.lock being used, e.g.
22
23
  # /var/cache/omnibus/src/chef/chef-14.10.9/Gemfile.lock or whatever. If
@@ -30,10 +31,11 @@ module Appbundler
30
31
  # @param bundle_path [String] the directory path of the Gemfile.lock
31
32
  # @param target_bin_dir [String] the binstub dir, e.g. /opt/chefdk/bin
32
33
  # @param name [String] name of the gem
33
- def initialize(bundle_path, target_bin_dir, name)
34
+ def initialize(bundle_path, target_bin_dir, name, extra_bin_files = [])
34
35
  @bundle_path = bundle_path
35
36
  @target_bin_dir = target_bin_dir
36
37
  @name = name
38
+ @extra_bin_files = extra_bin_files
37
39
  end
38
40
 
39
41
  # For the 2-arg version this is the gemfile in the omnibus build directory:
@@ -337,8 +339,7 @@ E
337
339
  end
338
340
 
339
341
  def executables
340
- spec = installed_spec
341
- spec.executables.map { |e| spec.bin_file(e) }
342
+ installed_spec.executables.map { |e| spec.bin_file(e) } + extra_bin_files
342
343
  end
343
344
 
344
345
  def runtime_dep_specs
@@ -27,6 +27,12 @@ BANNER
27
27
  :proc => lambda { |o| o.split(/[\s,]+/) },
28
28
  :default => []
29
29
 
30
+ option :extra_bin_files,
31
+ :long => "--extra-bin-files bin1,bin2",
32
+ :description => "Comma separated list of extra binstubs to wire up which are not listed in the gemspec",
33
+ :proc => lambda { |o| o.split(/[\s,]+/) },
34
+ :default => []
35
+
30
36
  option :version,
31
37
  :short => "-v",
32
38
  :long => "--version",
@@ -98,7 +104,7 @@ BANNER
98
104
 
99
105
  def run
100
106
  gems.each do |g|
101
- app = App.new(bundle_path, bin_path, g)
107
+ app = App.new(bundle_path, bin_path, g, extra_bin_files)
102
108
  created_stubs = app.write_executable_stubs
103
109
  created_stubs.each do |real_executable_path, stub_path|
104
110
  $stdout.puts "Generated binstub #{stub_path} => #{real_executable_path}"
@@ -1,3 +1,3 @@
1
1
  module Appbundler
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -104,7 +104,10 @@ files:
104
104
  - ".expeditor/config.yml"
105
105
  - ".expeditor/update_version.sh"
106
106
  - ".github/CODEOWNERS"
107
- - ".github/ISSUE_TEMPLATE.md"
107
+ - ".github/ISSUE_TEMPLATE/BUG_TEMPLATE.md"
108
+ - ".github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md"
109
+ - ".github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md"
110
+ - ".github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md"
108
111
  - ".github/PULL_REQUEST_TEMPLATE.md"
109
112
  - ".github/lock.yml"
110
113
  - ".gitignore"
@@ -112,6 +115,7 @@ files:
112
115
  - ".travis.yml"
113
116
  - CHANGELOG.md
114
117
  - CODE_OF_CONDUCT.md
118
+ - CONTRIBUTING.md
115
119
  - Gemfile
116
120
  - LICENSE.txt
117
121
  - README.md
@@ -153,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
157
  - !ruby/object:Gem::Version
154
158
  version: '0'
155
159
  requirements: []
156
- rubygems_version: 3.0.1
160
+ rubygems_version: 3.0.3
157
161
  signing_key:
158
162
  specification_version: 4
159
163
  summary: Extracts a dependency solution from bundler's Gemfile.lock to speed gem activation