codebase 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/codebase.rb CHANGED
@@ -7,8 +7,11 @@ HighLine.track_eof = false
7
7
 
8
8
  require 'codebase/command'
9
9
 
10
+ trap("INT") { puts; exit }
11
+
10
12
  module Codebase
11
-
13
+
14
+
12
15
  class Error < RuntimeError; end
13
16
  class NotConfiguredError < StandardError; end
14
17
  class MustBeInRepositoryError < StandardError; end
@@ -21,13 +21,13 @@ module Codebase
21
21
  puts
22
22
 
23
23
  ## Are you in a repository?
24
+ global = '--global'
24
25
  if in_repository?
25
26
  puts "You are currently in a repository directory."
26
27
  if agree("Would you like to only apply configuration to actions carried out from within this directory?")
27
28
  global = ''
28
29
  puts "OK, we'll add your API details to this repository only."
29
30
  else
30
- global = '--global'
31
31
  puts "OK, we'll configure your API details for your whole user account."
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke