hu 2.0.15 → 2.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hu/deploy.rb +11 -1
  3. data/lib/hu/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8117cf07f04c4322c004e7e8ced8e93834d55996931d31fdfb8e109a52726365
4
- data.tar.gz: 5630c03e30a4ce3b543e7e76131fcc6ae5609fa54f268b7bbbe4e558455eadc0
3
+ metadata.gz: 4a06118dd1c985f7cfa93598b815cd1509697b3c24b9536424dc36ba143c2f74
4
+ data.tar.gz: 799bc4c5bfc3da063fb28d42bac7839c61c26ecd356218517862a7afec0f1b43
5
5
  SHA512:
6
- metadata.gz: 51c06649e238e617c2091bb14db4760273703256ddd7312bd537d1fb347f70ca4605a0686495a97cee604a7ba33fba7a0250f3fb3712a97c5a82ee7497e574e6
7
- data.tar.gz: d9d738226d6d3c7392c8a58aed48661b1ee883dd5743c7f5f543cc3c60edaf969507b3ef6e82b6c02409a300eb119222ddacd708d967d8c509deb6e924430d96
6
+ metadata.gz: 790793b212a4580734d67224822c576d91584e9f8005dd3b1d076809c0a68c920798328c472a750935f3a2b7315d0baa189c4eddfffd26ed718586481b6fdbbf
7
+ data.tar.gz: c24241cdb66bd259daefa0ad543cfd3749327997d2a53bab3cfaaa596bbc14d69a4478982f850c341756efa34723ae00dc0b9a8d80265b8fa2d2e58910b8b1ce
@@ -118,6 +118,16 @@ module Hu
118
118
 
119
119
  Dir.chdir(@git.workdir)
120
120
 
121
+ unless branch_exists?("master")
122
+ print TTY::Cursor.clear_line + TTY::Cursor.show
123
+ puts
124
+ puts "ERROR: No 'master' branch.".color(:red)
125
+ puts
126
+ puts " Please run 'git checkout master'"
127
+ puts
128
+ exit 1
129
+ end
130
+
121
131
  if @git.config['branch.master.remote'] != 'origin'
122
132
  print TTY::Cursor.clear_line + TTY::Cursor.show
123
133
  puts
@@ -593,7 +603,7 @@ EOF
593
603
  puts msg.color(:red)
594
604
  puts <<EOF
595
605
 
596
- 1. Go to \e]8;;https://github.com/settings/tokens\007https://github.com/settings/tokens\e]8;;\007
606
+ 1. Go to \e[1mhttps://github.com/settings/tokens\e[0m
597
607
 
598
608
  2. Click on [Generate new token]
599
609
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '2.0.15'
3
+ VERSION = '2.0.16'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.15
4
+ version: 2.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler