modulesync 1.2.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.config/cucumber.yml +1 -0
- data/.github/workflows/ci.yml +29 -0
- data/.github/workflows/release.yml +30 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +8 -1
- data/.rubocop_todo.yml +16 -35
- data/CHANGELOG.md +82 -1
- data/Gemfile +5 -1
- data/HISTORY.md +227 -0
- data/README.md +29 -6
- data/Rakefile +24 -0
- data/features/cli.feature +14 -6
- data/features/hook.feature +3 -5
- data/features/step_definitions/git_steps.rb +73 -35
- data/features/support/env.rb +4 -0
- data/features/update.feature +163 -341
- data/features/update/bad_context.feature +26 -0
- data/features/update/bump_version.feature +87 -0
- data/lib/modulesync.rb +92 -51
- data/lib/modulesync/cli.rb +10 -4
- data/lib/modulesync/cli/thor.rb +24 -0
- data/lib/modulesync/pr/github.rb +25 -9
- data/lib/modulesync/pr/gitlab.rb +27 -13
- data/lib/modulesync/puppet_module.rb +37 -0
- data/lib/modulesync/repository.rb +158 -0
- data/lib/modulesync/source_code.rb +57 -0
- data/lib/modulesync/util.rb +4 -1
- data/lib/monkey_patches.rb +9 -48
- data/modulesync.gemspec +4 -4
- data/spec/helpers/faker.rb +14 -0
- data/spec/helpers/faker/puppet_module_remote_repo.rb +146 -0
- data/spec/unit/modulesync_spec.rb +7 -3
- metadata +30 -10
- data/.travis.yml +0 -27
- data/lib/modulesync/git.rb +0 -194
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c67abecba12a55e8bf400dbdce4899d7ae3588ec7e297c4fe3ed46b7c9ce62
|
4
|
+
data.tar.gz: 0dfcfc208e51892329bab49da6dea0b33a04a5b90dd1769a898e9f82fd8d83eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c113f5bb72bc8f77c0e07383f4ad13975915023ac865a68257eea3990fc888e193d5177d38003cf851d9ca1946ab13234c5642e75889f04cf9e52a3e3ef5f1fa
|
7
|
+
data.tar.gz: f12d610d26f07fc2ec75905a8d9637d88b063ff48f6367dbd04fdeab424052f551d28802300206b5f6ee73bda8ceeac9cf0f7bdb17b5d57f58203eaa6b6003d0
|
@@ -0,0 +1 @@
|
|
1
|
+
default: --publish-quiet
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
name: CI
|
3
|
+
on:
|
4
|
+
- pull_request
|
5
|
+
- push
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby:
|
14
|
+
- 2.5
|
15
|
+
- 2.6
|
16
|
+
- 2.7
|
17
|
+
- 3.0
|
18
|
+
env:
|
19
|
+
BUNDLE_WITHOUT: release
|
20
|
+
name: Ruby ${{ matrix.ruby }}
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rake test
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
create:
|
5
|
+
ref_type: tag
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
release:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
if: github.repository == 'voxpupuli/modulesync'
|
11
|
+
env:
|
12
|
+
BUNDLE_WITHOUT: release
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Install Ruby 3.0
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: '3.0'
|
19
|
+
- name: Build gem
|
20
|
+
run: gem build *.gemspec
|
21
|
+
- name: Publish gem to rubygems.org
|
22
|
+
run: gem push *.gem
|
23
|
+
env:
|
24
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
25
|
+
- name: Setup GitHub packages access
|
26
|
+
run: |
|
27
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
28
|
+
chmod 0600 /home/runner/.gem/credentials
|
29
|
+
- name: Publish gem to GitHub packages
|
30
|
+
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
3
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.4
|
5
5
|
Exclude:
|
6
6
|
- 'vendor/**/*'
|
7
7
|
- 'tmp/**/*'
|
8
8
|
- 'pkg/**/*'
|
9
9
|
- 'lib/monkey_patches.rb'
|
10
10
|
- 'spec/**/*'
|
11
|
+
- 'Gemfile'
|
12
|
+
- 'Rakefile'
|
11
13
|
|
12
14
|
Style/HashSyntax:
|
13
15
|
Enabled: false
|
@@ -23,3 +25,8 @@ Layout/IndentHeredoc:
|
|
23
25
|
# sane line length
|
24
26
|
Metrics/LineLength:
|
25
27
|
Max: 120
|
28
|
+
Exclude:
|
29
|
+
- 'features/**/*'
|
30
|
+
|
31
|
+
Style/FrozenStringLiteralComment:
|
32
|
+
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,70 +1,51 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-04-22 16:30:35 +0200 using RuboCop version 0.50.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 1
|
10
10
|
Lint/UselessAssignment:
|
11
11
|
Exclude:
|
12
12
|
- 'lib/modulesync.rb'
|
13
|
-
- 'lib/modulesync/cli.rb'
|
14
13
|
|
15
|
-
# Offense count:
|
14
|
+
# Offense count: 10
|
16
15
|
Metrics/AbcSize:
|
17
|
-
Max:
|
16
|
+
Max: 67
|
18
17
|
|
19
|
-
# Offense count:
|
18
|
+
# Offense count: 2
|
20
19
|
# Configuration parameters: CountComments.
|
21
20
|
Metrics/ClassLength:
|
22
|
-
Max:
|
21
|
+
Max: 128
|
23
22
|
|
24
|
-
# Offense count:
|
23
|
+
# Offense count: 3
|
25
24
|
Metrics/CyclomaticComplexity:
|
26
|
-
Max:
|
25
|
+
Max: 12
|
27
26
|
|
28
|
-
# Offense count:
|
27
|
+
# Offense count: 13
|
29
28
|
# Configuration parameters: CountComments.
|
30
29
|
Metrics/MethodLength:
|
31
|
-
Max:
|
30
|
+
Max: 36
|
32
31
|
|
33
|
-
# Offense count:
|
34
|
-
# Configuration parameters: CountComments.
|
35
|
-
Metrics/ModuleLength:
|
36
|
-
Max: 140
|
37
|
-
|
38
|
-
# Offense count: 4
|
32
|
+
# Offense count: 3
|
39
33
|
Metrics/PerceivedComplexity:
|
40
|
-
Max:
|
34
|
+
Max: 13
|
41
35
|
|
42
|
-
# Offense count:
|
43
|
-
# Configuration parameters: Exclude.
|
36
|
+
# Offense count: 8
|
44
37
|
Style/Documentation:
|
45
38
|
Exclude:
|
39
|
+
- 'spec/**/*'
|
40
|
+
- 'test/**/*'
|
46
41
|
- 'lib/modulesync.rb'
|
47
42
|
- 'lib/modulesync/cli.rb'
|
48
|
-
- 'lib/modulesync/constants.rb'
|
49
|
-
- 'lib/modulesync/git.rb'
|
50
43
|
- 'lib/modulesync/hook.rb'
|
51
44
|
- 'lib/modulesync/renderer.rb'
|
52
45
|
- 'lib/modulesync/util.rb'
|
53
46
|
|
54
|
-
# Offense count: 1
|
55
|
-
Style/EachWithObject:
|
56
|
-
Exclude:
|
57
|
-
- 'lib/modulesync/util.rb'
|
58
|
-
|
59
|
-
# Offense count: 1
|
60
|
-
# Configuration parameters: MinBodyLength.
|
61
|
-
Style/GuardClause:
|
62
|
-
Exclude:
|
63
|
-
- 'lib/modulesync/cli.rb'
|
64
|
-
|
65
47
|
# Offense count: 1
|
66
48
|
# Cop supports --auto-correct.
|
67
|
-
|
68
|
-
Style/Semicolon:
|
49
|
+
Style/EachWithObject:
|
69
50
|
Exclude:
|
70
51
|
- 'lib/modulesync/util.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,86 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
## [2.1.0](https://github.com/voxpupuli/modulesync/tree/2.1.0) (2021-06-15)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/modulesync/compare/2.0.2...2.1.0)
|
8
|
+
|
9
|
+
**Merged pull requests:**
|
10
|
+
|
11
|
+
- publish to github packages + test on ruby 3 [\#222](https://github.com/voxpupuli/modulesync/pull/222) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
- Rework exception handling [\#217](https://github.com/voxpupuli/modulesync/pull/217) ([neomilium](https://github.com/neomilium))
|
13
|
+
- Split generic and specific code [\#215](https://github.com/voxpupuli/modulesync/pull/215) ([neomilium](https://github.com/neomilium))
|
14
|
+
- Refactor repository related code [\#214](https://github.com/voxpupuli/modulesync/pull/214) ([neomilium](https://github.com/neomilium))
|
15
|
+
- Tests: Add tests for bump feature [\#213](https://github.com/voxpupuli/modulesync/pull/213) ([neomilium](https://github.com/neomilium))
|
16
|
+
- Refactor puppet modules properties [\#212](https://github.com/voxpupuli/modulesync/pull/212) ([neomilium](https://github.com/neomilium))
|
17
|
+
- Switch from Travis CI to GitHub Actions [\#205](https://github.com/voxpupuli/modulesync/pull/205) ([neomilium](https://github.com/neomilium))
|
18
|
+
|
19
|
+
## [2.0.2](https://github.com/voxpupuli/modulesync/tree/2.0.2) (2021-04-03)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/voxpupuli/modulesync/compare/2.0.1...2.0.2)
|
22
|
+
|
23
|
+
**Fixed bugs:**
|
24
|
+
|
25
|
+
- Fix language-dependent Git output handling [\#200](https://github.com/voxpupuli/modulesync/pull/200) ([neomilium](https://github.com/neomilium))
|
26
|
+
|
27
|
+
**Closed issues:**
|
28
|
+
|
29
|
+
- Add linting \(rubocop\) to Travis CI configuration [\#153](https://github.com/voxpupuli/modulesync/issues/153)
|
30
|
+
- Language sensitive GIT handling [\#85](https://github.com/voxpupuli/modulesync/issues/85)
|
31
|
+
|
32
|
+
**Merged pull requests:**
|
33
|
+
|
34
|
+
- Fix spelling of PR CLI option \(kebab-case\) [\#209](https://github.com/voxpupuli/modulesync/pull/209) ([bittner](https://github.com/bittner))
|
35
|
+
- Correctly state which config file to update [\#208](https://github.com/voxpupuli/modulesync/pull/208) ([bittner](https://github.com/bittner))
|
36
|
+
- Fix exit status code on failures [\#204](https://github.com/voxpupuli/modulesync/pull/204) ([neomilium](https://github.com/neomilium))
|
37
|
+
- Remove monkey patches [\#203](https://github.com/voxpupuli/modulesync/pull/203) ([neomilium](https://github.com/neomilium))
|
38
|
+
- Improve tests capabilities by using local/fake remote repositories [\#202](https://github.com/voxpupuli/modulesync/pull/202) ([neomilium](https://github.com/neomilium))
|
39
|
+
- Minor modernization and cosmetic fix [\#201](https://github.com/voxpupuli/modulesync/pull/201) ([neomilium](https://github.com/neomilium))
|
40
|
+
|
41
|
+
## [2.0.1](https://github.com/voxpupuli/modulesync/tree/2.0.1) (2020-10-06)
|
42
|
+
|
43
|
+
[Full Changelog](https://github.com/voxpupuli/modulesync/compare/2.0.0...2.0.1)
|
44
|
+
|
45
|
+
**Fixed bugs:**
|
46
|
+
|
47
|
+
- Use remote\_branch for PRs when specified [\#194](https://github.com/voxpupuli/modulesync/pull/194) ([raphink](https://github.com/raphink))
|
48
|
+
|
49
|
+
**Merged pull requests:**
|
50
|
+
|
51
|
+
- Allow newer puppet-blacksmith versions [\#197](https://github.com/voxpupuli/modulesync/pull/197) ([bastelfreak](https://github.com/bastelfreak))
|
52
|
+
|
53
|
+
## [2.0.0](https://github.com/voxpupuli/modulesync/tree/2.0.0) (2020-08-18)
|
54
|
+
|
55
|
+
[Full Changelog](https://github.com/voxpupuli/modulesync/compare/1.3.0...2.0.0)
|
56
|
+
|
57
|
+
**Breaking changes:**
|
58
|
+
|
59
|
+
- Drop support for Ruby 2.4 and older [\#191](https://github.com/voxpupuli/modulesync/pull/191) ([bastelfreak](https://github.com/bastelfreak))
|
60
|
+
|
61
|
+
**Implemented enhancements:**
|
62
|
+
|
63
|
+
- Symbolize keys in managed\_modules except for module names [\#185](https://github.com/voxpupuli/modulesync/pull/185) ([raphink](https://github.com/raphink))
|
64
|
+
|
65
|
+
**Fixed bugs:**
|
66
|
+
|
67
|
+
- GitLab MR: undefined method `\[\]' for nil:NilClass \(NoMethodError\) [\#187](https://github.com/voxpupuli/modulesync/issues/187)
|
68
|
+
- msync fails with nilClass error [\#172](https://github.com/voxpupuli/modulesync/issues/172)
|
69
|
+
- Fix NoMethodError for --pr option \(caused by `module_options = nil`\) / introduce --noop [\#188](https://github.com/voxpupuli/modulesync/pull/188) ([bittner](https://github.com/bittner))
|
70
|
+
- Allow empty module options in self.pr\(\) [\#186](https://github.com/voxpupuli/modulesync/pull/186) ([raphink](https://github.com/raphink))
|
71
|
+
|
72
|
+
## [1.3.0](https://github.com/voxpupuli/modulesync/tree/1.3.0) (2020-07-03)
|
73
|
+
|
74
|
+
* Expose --managed_modules_conf [#184](https://github.com/voxpupuli/modulesync/pull/184)
|
75
|
+
* Allow absolute path for config files [#183](https://github.com/voxpupuli/modulesync/pull/183)
|
76
|
+
* Add pr_target_branch option [#182](https://github.com/voxpupuli/modulesync/pull/182)
|
77
|
+
* Allow to specify namespace in module_options [#181](https://github.com/voxpupuli/modulesync/pull/181)
|
78
|
+
* Allow to override PR parameters per module [#178](https://github.com/voxpupuli/modulesync/pull/178)
|
79
|
+
* Include the gitlab library (if we interact with gitlab), not github [#179](https://github.com/voxpupuli/modulesync/pull/179)
|
80
|
+
|
3
81
|
## 2020-07-03 - 1.2.0
|
4
82
|
|
5
|
-
Add support for GitLab merge requests (MRs) [#175](https://github.com/voxpupuli/modulesync/pull/175)
|
83
|
+
* Add support for GitLab merge requests (MRs) [#175](https://github.com/voxpupuli/modulesync/pull/175)
|
6
84
|
|
7
85
|
## 2020-05-01 - 1.1.0
|
8
86
|
|
@@ -218,3 +296,6 @@ Also fixes the README to document the very important -m flag.
|
|
218
296
|
|
219
297
|
This release adds support for other SSH-based git servers, which means
|
220
298
|
gitlab is now supported.
|
299
|
+
|
300
|
+
|
301
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
data/HISTORY.md
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
## [1.3.0](https://github.com/voxpupuli/modulesync/tree/1.3.0) (2020-07-03)
|
2
|
+
|
3
|
+
* Expose --managed_modules_conf [#184](https://github.com/voxpupuli/modulesync/pull/184)
|
4
|
+
* Allow absolute path for config files [#183](https://github.com/voxpupuli/modulesync/pull/183)
|
5
|
+
* Add pr_target_branch option [#182](https://github.com/voxpupuli/modulesync/pull/182)
|
6
|
+
* Allow to specify namespace in module_options [#181](https://github.com/voxpupuli/modulesync/pull/181)
|
7
|
+
* Allow to override PR parameters per module [#178](https://github.com/voxpupuli/modulesync/pull/178)
|
8
|
+
* Include the gitlab library (if we interact with gitlab), not github [#179](https://github.com/voxpupuli/modulesync/pull/179)
|
9
|
+
|
10
|
+
## 2020-07-03 - 1.2.0
|
11
|
+
|
12
|
+
* Add support for GitLab merge requests (MRs) [#175](https://github.com/voxpupuli/modulesync/pull/175)
|
13
|
+
|
14
|
+
## 2020-05-01 - 1.1.0
|
15
|
+
|
16
|
+
This release provides metadata in the ERB template scope which makes it easy to read files from inside the module. A possible application is reading metadata.json and generating CI configs based on that.
|
17
|
+
|
18
|
+
* Add metadata to ERB template scope - [#168](https://github.com/voxpupuli/modulesync/pull/168)
|
19
|
+
* Skip issuing a PR if one already exists for -b option - [#171](https://github.com/voxpupuli/modulesync/pull/171)
|
20
|
+
* Correct the type on the pr-labels option to prevent a deprecation warning - [#173](https://github.com/voxpupuli/modulesync/pull/173)
|
21
|
+
|
22
|
+
## 2019-09-19 - 1.0.0
|
23
|
+
|
24
|
+
This is the first stable release! 🎉
|
25
|
+
|
26
|
+
* Use namespace in directory structure when cloning repositories - [#152](https://github.com/voxpupuli/modulesync/pull/152)
|
27
|
+
* Fix minor typo in help output - [#165](https://github.com/voxpupuli/modulesync/pull/165)
|
28
|
+
* Small improvements and fixes - [#166](https://github.com/voxpupuli/modulesync/pull/166)
|
29
|
+
* Fix overwriting of :global values - [#169](https://github.com/voxpupuli/modulesync/pull/169)
|
30
|
+
|
31
|
+
## 2018-12-27 - 0.10.0
|
32
|
+
|
33
|
+
This is another awesome release!
|
34
|
+
|
35
|
+
* Add support to submit PRs to GitHub when changes are pushed - [#147](https://github.com/voxpupuli/modulesync/pull/147)
|
36
|
+
* Fix "flat files" still mentioned in README - [#151](https://github.com/voxpupuli/modulesync/pull/151)
|
37
|
+
|
38
|
+
## 2018-02-15 - 0.9.0
|
39
|
+
|
40
|
+
## Summary
|
41
|
+
|
42
|
+
This is an awesome release - Now honors the repo default branch[#142](https://github.com/voxpupuli/modulesync/pull/142)
|
43
|
+
|
44
|
+
### Bugfixes
|
45
|
+
|
46
|
+
* Monkey patch ls_files until ruby-git/ruby-git#320 is resolved
|
47
|
+
* Reraise exception rather than exit so we can rescue a derived StandardError when using skip_broken option
|
48
|
+
|
49
|
+
### Enhancements
|
50
|
+
|
51
|
+
* Add new option to produce a failure exit code on warnings
|
52
|
+
* Remove hard coding of managed_modules.yml which means that options passed to ModuleSync.update can override the filename
|
53
|
+
|
54
|
+
## 2017-11-03 - 0.8.2
|
55
|
+
|
56
|
+
### Summary
|
57
|
+
|
58
|
+
This release fixes:
|
59
|
+
* Bug that caused .gitignore file handle to be left open - [#131](https://github.com/voxpupuli/modulesync/pull/131).
|
60
|
+
* Fixed switch_branch to use current_branch instead of master - [#130](https://github.com/voxpupuli/modulesync/pull/130).
|
61
|
+
* Fixed bug where failed runs wouldn't return correct exit code - [#125](https://github.com/voxpupuli/modulesync/pull/125).
|
62
|
+
* Fix typo in README link to Voxpupuli modulesync_config [#123](https://github.com/voxpupuli/modulesync/pull/123).
|
63
|
+
|
64
|
+
## 2017-05-08 - 0.8.1
|
65
|
+
|
66
|
+
### Summary
|
67
|
+
|
68
|
+
This release fixes a nasty bug with CLI vs configuration file option handling: Before [#117](https://github.com/voxpupuli/modulesync/pull/117) it was not possible to override options set in `modulesync.yml` on the command line, which could cause confusion in many cases. Now the configuration file is only used to populate the default values of the options specified in the README, and setting them on the command line will properly use those new values.
|
69
|
+
|
70
|
+
## 2017-05-05 - 0.8.0
|
71
|
+
|
72
|
+
### Summary
|
73
|
+
|
74
|
+
This release now prefers `.erb` suffixes on template files. To convert your moduleroot directory, run this command in your configs repo:
|
75
|
+
|
76
|
+
find moduleroot/ -type f -exec git mv {} {}.erb \;
|
77
|
+
|
78
|
+
Note that any `.erb`-suffixed configuration keys in `config_defaults.yml`, and `.sync.yml` need to be removed by hand. (This was unreleased functionality, will not affect most users.)
|
79
|
+
|
80
|
+
#### Refactoring
|
81
|
+
|
82
|
+
- Prefer `.erb` suffixes on template files, issue deprecation warning for templates without the extension
|
83
|
+
- Require Ruby 2.0 or higher
|
84
|
+
|
85
|
+
#### Bugfixes
|
86
|
+
|
87
|
+
- Fix dependency on `git` gem for diff functionality
|
88
|
+
- Fix error from `git` gem when diff contained line ending changes
|
89
|
+
|
90
|
+
## 2017-02-13 - 0.7.2
|
91
|
+
|
92
|
+
Fixes an issue releasing 0.7.1, no functional changes.
|
93
|
+
|
94
|
+
## 2017-02-13 - 0.7.1
|
95
|
+
|
96
|
+
Fixes an issue releasing 0.7.0, no functional changes.
|
97
|
+
|
98
|
+
## 2017-02-13 - 0.7.0
|
99
|
+
|
100
|
+
### Summary
|
101
|
+
|
102
|
+
This is the first release from Vox Pupuli, which has taken over maintenance of
|
103
|
+
modulesync.
|
104
|
+
|
105
|
+
#### Features
|
106
|
+
- New `msync update` arguments:
|
107
|
+
- `--git-base` to override `git_base`, e.g. for read-only git clones
|
108
|
+
- `-s` to skip the current module and continue on error
|
109
|
+
- `-x` for a negative filter (blacklist) of modules not to update
|
110
|
+
- Add `-a` argument to `msync hook` to pass additional arguments
|
111
|
+
- Add `:git_base` and `:namespace` data to `@configs` hash
|
112
|
+
- Allow `managed_modules.yml` to list modules with a different namespace
|
113
|
+
- Entire directories can be listed with `unmanaged: true`
|
114
|
+
|
115
|
+
#### Refactoring
|
116
|
+
- Replace CLI optionparser with thor
|
117
|
+
|
118
|
+
#### Bugfixes
|
119
|
+
- Fix git 1.8.0 compatibility, detecting when no files are changed
|
120
|
+
- Fix `delete: true` feature, now deletes files correctly
|
121
|
+
- Fix handling of `:global` config entries, not interpreted as a path
|
122
|
+
- Fix push without force to remote branch when no files have changed (#102)
|
123
|
+
- Output template name when ERB rendering fails
|
124
|
+
- Remove extraneous whitespace in `--noop` output
|
125
|
+
|
126
|
+
## 2015-08-13 - 0.6.1
|
127
|
+
|
128
|
+
### Summary
|
129
|
+
|
130
|
+
This is a bugfix release to fix an issue caused by the --project-root flag.
|
131
|
+
|
132
|
+
#### Bugfixes
|
133
|
+
|
134
|
+
- Fix bug in git pull function (#55)
|
135
|
+
|
136
|
+
##2015-08-11 - 0.6.0
|
137
|
+
|
138
|
+
### Summary
|
139
|
+
|
140
|
+
This release adds two new flags to help modulesync better integrate with CI tools.
|
141
|
+
|
142
|
+
#### Features
|
143
|
+
|
144
|
+
- Add --project-root flag
|
145
|
+
- Create --offline flag to disable git functionality
|
146
|
+
|
147
|
+
#### Bugfixes
|
148
|
+
|
149
|
+
- Fix :remote option for repo
|
150
|
+
|
151
|
+
#### Maintenance
|
152
|
+
|
153
|
+
- Added tests
|
154
|
+
|
155
|
+
## 2015-06-30 - 0.5.0
|
156
|
+
|
157
|
+
### Summary
|
158
|
+
|
159
|
+
This release adds the ability to sync a non-bare local git repo.
|
160
|
+
|
161
|
+
#### Features
|
162
|
+
|
163
|
+
- Allow one to sync non-bare local git repository
|
164
|
+
|
165
|
+
## 2015-06-24 - 0.4.0
|
166
|
+
|
167
|
+
### Summary
|
168
|
+
|
169
|
+
This release adds a --remote-branch flag and adds a global key for template
|
170
|
+
config.
|
171
|
+
|
172
|
+
#### Features
|
173
|
+
|
174
|
+
- Expose --remote-branch
|
175
|
+
- Add a global config key
|
176
|
+
|
177
|
+
#### Bugfixes
|
178
|
+
|
179
|
+
- Fix markdown syntax in README
|
180
|
+
|
181
|
+
## 2015-03-12 - 0.3.0
|
182
|
+
|
183
|
+
### Summary
|
184
|
+
|
185
|
+
This release contains a breaking change to some parameters exposed in
|
186
|
+
modulesync.yml. In particular, it abandons the user of git_user and
|
187
|
+
git_provider in favor of the parameter git_base to specify the base part of a
|
188
|
+
git URL to pull from. It also adds support for gerrit by adding a remote_branch
|
189
|
+
parameter for modulesync.yml that can differ from the local branch, plus a
|
190
|
+
number of new flags for updating modules.
|
191
|
+
|
192
|
+
#### Backwards-incompatible changes
|
193
|
+
|
194
|
+
- Remove git_user and git_provider_address as parameters in favor of using
|
195
|
+
git_base as a whole
|
196
|
+
|
197
|
+
#### Features
|
198
|
+
|
199
|
+
- Expose the puppet module name in the ERB templates
|
200
|
+
- Add support for gerrit by:
|
201
|
+
- Adding a --amend flag
|
202
|
+
- Adding a remote_branch parameter for modulesync.yml config file that can
|
203
|
+
differ from the local branch
|
204
|
+
- Adding a script to handle the pre-commit hook for adding a commit id
|
205
|
+
- Using git_base to specify an arbitrary git URL instead of an SCP-style one
|
206
|
+
- Add a --force flag (usually needed with the --amend flag if not using gerrit)
|
207
|
+
- Add --bump, --tag, --tag-pattern, and --changelog flags
|
208
|
+
|
209
|
+
#### Bugfixes
|
210
|
+
|
211
|
+
- Stop requiring .gitignore to exist
|
212
|
+
- Fix non-master branch functionality
|
213
|
+
- Add workarounds for older git versions
|
214
|
+
|
215
|
+
## 2014-11-16 - 0.2.0
|
216
|
+
|
217
|
+
### Summary
|
218
|
+
|
219
|
+
This release adds the --filter flag to filter what modules to sync.
|
220
|
+
Also fixes the README to document the very important -m flag.
|
221
|
+
|
222
|
+
## 2014-9-29 - 0.1.0
|
223
|
+
|
224
|
+
### Summary
|
225
|
+
|
226
|
+
This release adds support for other SSH-based git servers, which means
|
227
|
+
gitlab is now supported.
|