Skip to content

Commit 5ab37f8

Browse files
author
Kevin Paulisse
committed
Merge remote-tracking branch 'origin/master' into kpaulisse-where-was-the-broken-reference-declared
2 parents ad7314f + 5d6851c commit 5ab37f8

38 files changed

+82
-25
lines changed

.rubocop.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Metrics/AbcSize:
2222
Max: 100
2323
Severity: warning
2424

25+
Metrics/BlockLength:
26+
Enabled: false
27+
2528
Metrics/ClassLength:
2629
Max: 500
2730
Severity: warning
@@ -40,12 +43,33 @@ Metrics/PerceivedComplexity:
4043

4144
# Indentation
4245
CaseIndentation:
43-
IndentWhenRelativeTo: end
4446
IndentOneStep: false
4547

4648
Lint/EndAlignment:
47-
AlignWith: variable
49+
EnforcedStyleAlignWith: variable
4850

4951
# To let us use a '-' in the gem name
5052
Style/FileName:
5153
Enabled: false
54+
55+
# To fix later
56+
Style/PercentLiteralDelimiters:
57+
Enabled: false
58+
Style/VariableNumber:
59+
Enabled: false
60+
Security/YAMLLoad:
61+
Enabled: false
62+
Lint/AmbiguousBlockAssociation:
63+
Enabled: false
64+
Lint/UnifiedInteger:
65+
Enabled: false
66+
Style/GuardClause:
67+
Enabled: false
68+
Style/EmptyMethod:
69+
Enabled: false
70+
Style/SymbolArray:
71+
Enabled: false
72+
Style/IndentHeredoc:
73+
Enabled: false
74+
Style/ExtraSpacing:
75+
Enabled: false

doc/dev/releasing.md

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ The project maintainers are responsible for bumping the version number, regenera
44

55
## Local testing
66

7-
To test the new version of `octocatalog-diff` in the Puppet repository:
7+
*This procedure is performed by a GitHubber.*
88

9-
0. In the Puppet checkout, start a new branch based off master.
9+
To test the new version of `octocatalog-diff` in the GitHub Puppet repository:
10+
11+
0. In a checkout of the GitHub Puppet repository, start a new branch based off master.
1012
0. In the `octocatalog-diff` checkout:
1113
- Ensure that the desired branch is checked out.
1214
- Choose a unique internal version number which has never been used in CI. A good guideline is that if you're planning to release a version `0.6.0` then for these tests, use `0.6.0a`, `0.6.0b`, ...
@@ -23,25 +25,62 @@ To test the new version of `octocatalog-diff` in the Puppet repository:
2325
2426
0. Back in the Puppet checkout, ensure that the changes are as expected (updates to Gemfile / Gemfile.lock, addition of new gem). Push the change and build appropriate CI job(s) to validate the changes.
2527
26-
## Merging
28+
## Merging one PR
29+
30+
This section is useful when releasing a new version based on one PR submitted by a contributor. Following this workflow is important so that the contributor gets appropriate credit in the revision history for his or her work.
31+
32+
0. In your local checkout, start a new branch based off master.
33+
0. Add the contributor's repository as a remote. For example:
34+
35+
```
36+
git remote add octocat https://github.com/octocat/octocatalog-diff.git
37+
```
38+
39+
0. Merge in the contributor's branch into your own. For example:
40+
41+
```
42+
git merge octocat/some-branch
43+
```
44+
45+
0. Update `.version` and `doc/CHANGELOG.md` appropriately. In CHANGELOG you should link to the PR submitted by the contributor (not the PR you're creating now).
46+
0. Commit your changes to `.version` and `doc/CHANGELOG.md`.
47+
0. If necessary, auto-generate the build documentation, and commit the changes to your branch.
48+
49+
```
50+
rake doc:build
51+
```
52+
53+
0. Open a Pull Request based on your branch. Confirm that the history is correct, showing the contributor's commits first, and then your commit(s) updating the version file, change log, and/or auto-generated documentation.
54+
0. Ensure that CI tests are all passing.
55+
0. Ensure that you've performed "local testing" within GitHub (typically, ~1 day) to confirm the changes.
56+
0. Merge your PR and delete your branch.
57+
0. Confirm that the contributor's PR now appears as merged, and any associated issues have been closed.
58+
59+
## Merging multiple PRs
60+
61+
If multiple PRs will constitute a release, it's generally easier to merge each such PR individually, and then create a separate PR afterwards to update the necessary files.
2762
28-
0. If necessary, complete a Pull Request to update the [version file](/.version).
29-
0. If necessary, auto-generate the build documentation.
63+
0. Merge all constituent PRs and ensure that any associated issues have been closed.
64+
0. Create your own branch based off master.
65+
0. Update `.version` and `doc/CHANGELOG.md` appropriately. In CHANGELOG you should link to the PR submitted by the contributor (not the PR you're creating now).
66+
0. Commit your changes to `.version` and `doc/CHANGELOG.md`.
67+
0. If necessary, auto-generate the build documentation, and commit the changes to your branch.
3068
3169
```
3270
rake doc:build
3371
```
3472
73+
0. Open a Pull Request based on your branch.
3574
0. Ensure that CI tests are all passing.
36-
0. Merge and delete the branch.
75+
0. Ensure that you've performed "local testing" within GitHub (typically, ~1 day) to confirm the changes.
76+
0. Merge your PR and delete your branch.
3777
3878
## Releasing
3979
4080
Generally, a new release will correspond to a merge to master of one or more Pull Requests.
4181
4282
0. Ensure that all changes associated with the release have been merged to master.
43-
- Merge all Pull Requests associated with release.
44-
- If necessary, complete a Pull Request to update the [change log](/doc/CHANGELOG.md).
83+
- Merge all Pull Requests associated with release, including the version number bump, change log update, etc.
4584
- If necessary (for significant changes), complete a Pull Request to update the top-level README file.
4685
0. Ensure the the master branch is checked out on your system.
4786
0. Run the release procedure:

octocatalog-diff.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative 'lib/octocatalog-diff/version'
22

3-
DEFAULT_PUPPET_VERSION = '4.5.3'.freeze
3+
DEFAULT_PUPPET_VERSION = '4.10.0'.freeze
44

55
Gem::Specification.new do |s|
66
s.required_ruby_version = '>= 2.0.0'
@@ -26,19 +26,19 @@ EOF
2626
s.add_runtime_dependency 'diffy', '>= 3.1.0'
2727
s.add_runtime_dependency 'httparty', '>= 0.11.0'
2828
s.add_runtime_dependency 'hashdiff', '>= 0.3.0'
29-
s.add_runtime_dependency 'parallel', '>= 1.9.0'
29+
s.add_runtime_dependency 'parallel', '>= 1.11.1'
3030
s.add_runtime_dependency 'rugged', '>= 0.25.0b2'
3131

3232
s.add_development_dependency 'rspec', '~> 3.4.0'
3333
s.add_development_dependency 'rake', '11.2.2'
3434
s.add_development_dependency 'parallel_tests', '2.7.1'
3535
s.add_development_dependency 'rspec-retry', '0.5.0'
3636

37-
s.add_development_dependency 'rubocop', '~> 0.35'
37+
s.add_development_dependency 'rubocop', '= 0.48.1'
3838

3939
s.add_development_dependency 'puppetdb-terminus', '3.2.4'
4040

41-
s.add_development_dependency 'simplecov'
41+
s.add_development_dependency 'simplecov', '>= 0.14.1'
4242
s.add_development_dependency 'simplecov-json'
4343

4444
if ENV['PUPPET_VERSION']

script/cibuild

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,16 @@
66
# with one or more Puppet versions, with PUPPET_VERSIONS set to a space-separated list
77
# of versions to test.
88

9-
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3'
9+
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3 4.10.0'
1010
[ -z "$RUBOCOP_TEST" ] && export RUBOCOP_TEST='true'
1111
[ -z "$RSPEC_TEST" ] && export RSPEC_TEST='true'
1212

13-
# FIXME: Needed only for Janky. Remove for travis.
14-
if env | grep ^JANKY_ >/dev/null 2>&1; then
15-
export PATH=/usr/share/rbenv/shims:$PATH
16-
export RBENV_VERSION=2.1.2-github
17-
fi
18-
1913
echo 'Starting script/cibuild'
2014

2115
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
2216

2317
# Create a temporary file to capture output of various steps.
24-
export OUTPUT_FILE=$(mktemp)
18+
export OUTPUT_FILE="$(mktemp)"
2519
function cleanup() {
2620
rm -rf "$OUTPUT_FILE"
2721
}
@@ -79,12 +73,12 @@ if [ "$RSPEC_TEST" = "true" ]; then
7973

8074
# Make sure `script/puppet` returns the desired puppet version
8175
pv_test=$( "${DIR}/script/puppet" --version 2>&1 )
82-
if [ $? -eq 0 -a "$pv_test" = "$pv" ]; then
76+
if [ $? -eq 0 ] && [ "$pv_test" = "$pv" ]; then
8377
echo "Confirmed Puppet version = ${pv_test}"
8478
else
8579
echo "Failures:"
8680
echo "- Unable to confirm that Puppet version = ${pv}"
87-
echo $pv_test
81+
echo "$pv_test"
8882
RSPEC_EXITCODE=255
8983
fi
9084

@@ -108,4 +102,4 @@ fi
108102
echo "Finished script/cibuild:"
109103
[ "$RUBOCOP_EXITCODE" -ge 0 ] && echo " - rubocop: exit ${RUBOCOP_EXITCODE}"
110104
[ "$RSPEC_EXITCODE" -ge 0 ] && echo " - rspec: exit ${RSPEC_EXITCODE}"
111-
if [ "$RUBOCOP_EXITCODE" -gt 0 -o "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi
105+
if [ "$RUBOCOP_EXITCODE" -gt 0 ] || [ "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi

vendor/cache/diff-lcs-1.2.5.gem

-48 KB
Binary file not shown.

vendor/cache/diff-lcs-1.3.gem

45 KB
Binary file not shown.

vendor/cache/diffy-3.1.0.gem

-17 KB
Binary file not shown.

vendor/cache/diffy-3.2.0.gem

17 KB
Binary file not shown.

vendor/cache/fast_gettext-1.1.0.gem

25.5 KB
Binary file not shown.

vendor/cache/gettext-3.2.2.gem

277 KB
Binary file not shown.

0 commit comments

Comments
 (0)