hu 1.5.4 → 1.5.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44c3bbe831213ab424e095749429eece9943e18e
4
- data.tar.gz: 7a3e254d8113a4e3c2b97f7e5e3dae10ea454665
3
+ metadata.gz: d1953813520b23befdc17abe944d71ea64f4845f
4
+ data.tar.gz: ce2a23649c56d6fab1a6e91d89b1b4f499a17101
5
5
  SHA512:
6
- metadata.gz: 38a76e3ff6310d5f3d7ea0017b377e02c74187b5495cf4fede677851f18ca945f6b4cf3889d1819615a495050e1a0f93473df3150a3c0464d4f0699a07e628f2
7
- data.tar.gz: c6ccf17a80155e4f04d54158aec305a829f71e0c110e29fd42dc34ed81faec01067ee418a5a407fa92258fba40fbb93dedcbdbd10699566080067b42f8b36896
6
+ metadata.gz: 39a47006bc86cd654d4aac160c2315517a97f03042e58042184a4cf58ceeb2a6e30e58d2a7178d7f624e35427f34b1a53bcb44ef7814b06e5a0675b7291f5613
7
+ data.tar.gz: 2ce87b36dfeda0ccbe00742fa675da113dc3c892afc695bcaca7ad02b7c0f4a26784d62488b2b86a384a17913dce6aea8d4b81016e1e85de490f62d2e68e0b6f
data/hu.gemspec CHANGED
@@ -42,7 +42,6 @@ Gem::Specification.new do |spec|
42
42
  spec.add_dependency 'rugged'
43
43
  spec.add_dependency 'paint'
44
44
  spec.add_dependency 'lolcat'
45
- spec.add_dependency 'analytics-ruby'
46
45
  spec.add_dependency 'config'
47
46
  spec.add_dependency 'awesome_print'
48
47
  end
@@ -5,7 +5,7 @@ module Hu
5
5
  class Cli < Optix::Cli
6
6
  class Deploy < Optix::Cli
7
7
  ::TTY::Formats::FORMATS[:hu] = { frames: '🌑🌒🌓🌔🌕🌖🌗🌘'.chars, interval: 10 }
8
- ::TTY::Formats::FORMATS[:huroku] = { frames: '⣾⣽⣻⢿⡿⣟⣯⣷'.chars, interval: 10 }
8
+ ::TTY::Formats::FORMATS[:huroku] = { frames: '⣷⣯⣟⡿⢿⣻⣽⣾'.chars, interval: 10 }
9
9
 
10
10
  $stdout.sync
11
11
  @@shutting_down = false
@@ -75,6 +75,7 @@ module Hu
75
75
  begin
76
76
  @git = Rugged::Repository.discover('.')
77
77
  rescue Rugged::RepositoryError => e
78
+ print TTY::Cursor.clear_line + TTY::Cursor.show
78
79
  puts
79
80
  puts "Git error: #{e}".color(:red)
80
81
  puts 'You need to be inside the working copy of the app that you wish to deploy.'.color(:red)
@@ -85,15 +86,17 @@ module Hu
85
86
  Dir.chdir(@git.workdir)
86
87
 
87
88
  if @git.config['branch.master.remote'] != 'origin'
89
+ print TTY::Cursor.clear_line + TTY::Cursor.show
88
90
  puts
89
91
  puts "ERROR: Remote of branch 'master' does not point to 'origin'.".color(:red)
90
92
  puts
91
- puts ' Sorry, we need an origin here. We really do.'
93
+ puts " Please run 'git config branch.master.remote origin'"
92
94
  puts
93
95
  exit 1
94
96
  end
95
97
 
96
98
  if @git.config['gitflow.branch.master'].nil?
99
+ print TTY::Cursor.clear_line + TTY::Cursor.show
97
100
  puts
98
101
  puts "ERROR: This repository doesn't seem to be git-flow enabled.".color(:red)
99
102
  puts
@@ -104,6 +107,7 @@ module Hu
104
107
 
105
108
  unless @git.config['gitflow.prefix.versiontag'].nil? ||
106
109
  @git.config['gitflow.prefix.versiontag'].empty?
110
+ print TTY::Cursor.clear_line + TTY::Cursor.show
107
111
  puts
108
112
  puts 'ERROR: git-flow version prefix configured.'.color(:red)
109
113
  puts
@@ -122,6 +126,7 @@ module Hu
122
126
  app = heroku_app_by_git(push_url)
123
127
 
124
128
  if app.nil?
129
+ print TTY::Cursor.clear_line + TTY::Cursor.show
125
130
  puts
126
131
  puts "ERROR: Found no heroku app for git remote #{push_url}".color(:red)
127
132
  puts ' Are you logged into the right heroku account?'.color(:red)
@@ -134,6 +139,7 @@ module Hu
134
139
  pipeline_name, stag_app_id, prod_app_id = heroku_pipeline_details(app)
135
140
 
136
141
  if app['id'] != stag_app_id
142
+ print TTY::Cursor.clear_line + TTY::Cursor.show
137
143
  puts
138
144
  puts "ERROR: The git remote 'heroku' points to app '#{app['name']}'".color(:red)
139
145
  puts " which is not in stage 'staging'".color(:red) +
@@ -233,7 +239,7 @@ module Hu
233
239
  end
234
240
 
235
241
  if release_branch_exists && git_revisions[:release] == git_revisions[stag_app_name]
236
- puts ' Phase 2/3 '.inverse + ' Your local ' + "release/#{release_tag}".bright + ' (formerly ' + 'develop'.bright + ') is live at ' + stag_app_name.to_s.bright + '.'
242
+ puts ' Phase 2/3 '.inverse + ' Your local ' + "release/#{release_tag}".bright + ' (formerly ' + 'develop'.bright + ') is live on ' + stag_app_name.to_s.bright + '.'
237
243
  puts ' Please test here: ' + (app['web_url']).to_s.bright
238
244
  puts ' If everything looks good, you may proceed and finish the release.'
239
245
  puts ' If there are problems: Quit, delete the release branch and start fixing.'
@@ -587,6 +593,7 @@ module Hu
587
593
  unbusy if opts[:spinner]
588
594
  color = (status.exitstatus == 0) ? :green : :red
589
595
  if status.exitstatus != 0 || !opts[:quiet]
596
+ print TTY::Cursor.clear_line + TTY::Cursor.show
590
597
  puts "\n> ".color(color) + line.color(:black).bright
591
598
  puts output
592
599
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '1.5.4'
3
+ VERSION = '1.5.5'
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: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -304,20 +304,6 @@ dependencies:
304
304
  - - ">="
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
- - !ruby/object:Gem::Dependency
308
- name: analytics-ruby
309
- requirement: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - ">="
312
- - !ruby/object:Gem::Version
313
- version: '0'
314
- type: :runtime
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - ">="
319
- - !ruby/object:Gem::Version
320
- version: '0'
321
307
  - !ruby/object:Gem::Dependency
322
308
  name: config
323
309
  requirement: !ruby/object:Gem::Requirement
@@ -389,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
389
375
  version: '0'
390
376
  requirements: []
391
377
  rubyforge_project:
392
- rubygems_version: 2.5.1
378
+ rubygems_version: 2.5.2
393
379
  signing_key:
394
380
  specification_version: 4
395
381
  summary: Heroku Utility.