hu 2.0.17 → 2.0.18

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hu/deploy.rb +15 -0
  3. data/lib/hu/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9d8ad87f70152123a1e17ccef621d16dba57c2ccb68781e4fcab7eb5334f713
4
- data.tar.gz: 40295e3e7d486d72e6ed518227e89fb0996c6e9798f570015d357a2d598ef21a
3
+ metadata.gz: 68277dcef232fc877eab01e78a1531ac033fc0c8e5b3079f9be563d7e57d486b
4
+ data.tar.gz: '0801f130f8f9d2a587627fa62814a6b39b65310eb1d3b2637c064ea8f7a04b69'
5
5
  SHA512:
6
- metadata.gz: 5ab9ddac725f8efc6030645cd965ac091b8e19fa5d8ac46edae98971be9735a0adbf56ff553b80dedaa74d441764967f1f4582046002f73d4c80a764bc2e4a18
7
- data.tar.gz: 2a7ffd6ebf4935614cccf8d4e57fe1c77151fe0b8a0fdbf165bda72661aeb77d6be71b1737913f29b07f3eebd359f71af66a1f1878014cc14e345b09bb56cef7
6
+ metadata.gz: 2ab6d7d28c718ed1366359bb88589ccdfe770277d2fc33df6d56d5a51d07d15a7bd8344cadffa9e817d68c86fe900a69b96d1db7765292f6b41e096eb0b5236e
7
+ data.tar.gz: d29b951bfec1e3a775f22243b74d00f6edeb801c065905ab4a673c14a2206ddf58b4fb0e4d99f8132e01229db48276bd6ae144f79656b15363b2f197db55c1d9
@@ -157,6 +157,21 @@ module Hu
157
157
  exit 1
158
158
  end
159
159
 
160
+ if @git.config['gitflow.prefix.release'] != 'release/'
161
+ print TTY::Cursor.clear_line + TTY::Cursor.show
162
+ puts
163
+ puts "ERROR: Your git-flow version seems to be suffering from a known bug.".color(:red)
164
+ puts
165
+ puts "Please run (copy/paste) all of the following commands to fix it:"
166
+ puts
167
+ puts 'git config gitflow.prefix.hotfix "hotfix/"'
168
+ puts 'git config gitflow.prefix.feature "feature/"'
169
+ puts 'git config gitflow.prefix.bugfix "bugfix/"'
170
+ puts 'git config gitflow.prefix.release "release/"'
171
+ puts 'git config gitflow.prefix.support "support/"'
172
+ exit 1
173
+ end
174
+
160
175
  dp 'detect git-flow prefix'
161
176
 
162
177
  unless @git.config['gitflow.prefix.versiontag'].nil? ||
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '2.0.17'
3
+ VERSION = '2.0.18'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe