papa 0.7.1 → 0.7.2

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: 285f47870177f6ef71e7bc121621a2435fd2f1dab19ebd9e7691fa90203a135c
4
- data.tar.gz: fc85b82f7e2bf51e784fa3b7ea660d31650e7b808798169ab63843e8c3b9aac8
3
+ metadata.gz: 7680cd9a9cfed387fe46e40c8d004b5ebfb585847437f59d5455a56c56693f94
4
+ data.tar.gz: 9aefb5cf418d21e414e413ab11eb0ae8d06e898987be284c2b8e704db08520f1
5
5
  SHA512:
6
- metadata.gz: 2422f3bae3108b7d6afc44d1879da26f34132b8c28821b4b70591e2db1259771d6a1ccc490e0b6d4eecff96344d1e30df228ca3310dde2fa9e245d319657ae11
7
- data.tar.gz: 13586d90a60695d0fe5c66a51ec2278ce225b92011edcf220424106e225cc540b30872aba891aeddf9345a36ec5b55265c5c340439c5211d0c53dad2eb29eb24
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
@@ -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, timestamp].join('_') + '.log'
14
+ @log_path = [timestamp, 'papa', command].join('_') + '.log'
15
15
  end
16
16
  end
17
17
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Papa
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2018-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor