papa 0.7.1 → 0.7.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/papa/helper/logger.rb +1 -1
- data/lib/papa/task/common/add.rb +13 -0
- data/lib/papa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7680cd9a9cfed387fe46e40c8d004b5ebfb585847437f59d5455a56c56693f94
|
4
|
+
data.tar.gz: 9aefb5cf418d21e414e413ab11eb0ae8d06e898987be284c2b8e704db08520f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d81c125053b3782e434492d6147cb0e1547652de7ccc95b18affb79c9e3b140c4cae44143964474c6c4d069dbb779cc056afe26a06844b2a0c299ccf282410
|
7
|
+
data.tar.gz: e58806be7839fa5b449d546c879634abec82e63c8640d148d4b3116c3f58746c4b37cdfa966ee11e52c043fb3dd71980e059b59182e0d74645b4926bcf1d060d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.7.2
|
4
|
+
* Change log file file format to `{TIMESTAMP}_papa_{BUILD_TYPE}_{COMMAND}.log`
|
5
|
+
* Disallow the use of `papa [hotfix, release] add` with release and hotfix branches
|
6
|
+
|
3
7
|
## 0.7.1
|
4
8
|
* Add ability to specify subdomain/hostname when deploying integration branches
|
5
9
|
* Fetch only once when adding feature or bugfix branches to an integration branch
|
data/lib/papa/helper/logger.rb
CHANGED
@@ -11,7 +11,7 @@ module Papa
|
|
11
11
|
return @log_path if defined?(@log_path)
|
12
12
|
command = ARGV.first(2).join('_')
|
13
13
|
timestamp = Time.now.strftime('%Y_%m_%d_%I_%M_%S')
|
14
|
-
@log_path = ['papa', command
|
14
|
+
@log_path = [timestamp, 'papa', command].join('_') + '.log'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/papa/task/common/add.rb
CHANGED
@@ -13,6 +13,7 @@ module Papa
|
|
13
13
|
def initialize
|
14
14
|
check_if_build_branch_exists
|
15
15
|
check_if_branches_are_given
|
16
|
+
check_if_branches_are_valid
|
16
17
|
@success_branches = []
|
17
18
|
@failed_branches = []
|
18
19
|
end
|
@@ -26,6 +27,18 @@ module Papa
|
|
26
27
|
@branches = vi_file_helper.run
|
27
28
|
end
|
28
29
|
|
30
|
+
def check_if_branches_are_valid
|
31
|
+
invalid_branch_prefixes = ['hotfix', 'release']
|
32
|
+
@branches.each do |branch|
|
33
|
+
has_invalid_branches = invalid_branch_prefixes.any? do |invalid_branch_prefix|
|
34
|
+
branch.start_with?(invalid_branch_prefix)
|
35
|
+
end
|
36
|
+
return unless has_invalid_branches
|
37
|
+
Helper::Output.failure "Branch #{branch.bold} cannot be added to #{@build_type.bold} build branches."
|
38
|
+
exit 1
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
29
42
|
def perform_task
|
30
43
|
@success = true
|
31
44
|
@branches.each_with_index do |branch, index|
|
data/lib/papa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boggs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|