checkout 0.0.1 → 0.0.3

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
  SHA256:
3
- metadata.gz: 9c75d1c6f22af03e13951212b14d071f6c366adb321d9241e5a51eca72b1b246
4
- data.tar.gz: b00253ff8e61ae442a82fb0341e6d3c34ad6ea47020d2069a8c62bb010ba3b0e
3
+ metadata.gz: b3c87ea6b9bb456e1c23566bfc7d96a60aa9eeb7e91afddb1ab0d0c4c3fff580
4
+ data.tar.gz: b951e528a996d723877fca73999ffde0b59c09284bab9e488c73e4fb558e94a7
5
5
  SHA512:
6
- metadata.gz: 02ae34a3a0f35bbb7c8352dd089af08a59681a9252e6d783f070187ca4f39674d62587ff9186c6013ffda82cb7bfc4b21f55221018786de6018d287fff922940
7
- data.tar.gz: 26c4e6b4f5de190b56bf92686724aca28694f90d3b03b3dc452415bd3c473bcdf7e425e21f3ec1419ab41a0628f6765bb1457cc53366e2560f23f95aa06e2e8d
6
+ metadata.gz: cd6a7b9c91d7c99907b1973bf7a281f294ab8923a67bf1e1a012367d1a143a5dadbf750e256cfea4b459c9e12f772d70282a5970efe999da600478071e08b050
7
+ data.tar.gz: 2a3a672ad7d3ef335d44054c744c9db45cd669675f553e82b35f07f1738284742f83ee1c5828265db82f2a0aa6a1cf300e7500720ca6e455daf62ec10924c7cd
@@ -6,21 +6,16 @@ module Checkout
6
6
 
7
7
  def initialize(max)
8
8
  if max.nil?
9
- puts "max is 10"
10
9
  @max ||= 10
11
10
  else
12
- puts "max is #{max}"
13
11
  @max ||= max.to_i
14
12
  end
15
13
  run!
16
14
  end
17
15
 
18
16
  def run!
19
- puts "asking"
20
17
  ask_for_selection
21
- puts 'mapping selection'
22
18
  map_selection_to_branch
23
- puts 'checking out'
24
19
  checkout
25
20
  end
26
21
 
@@ -34,10 +29,7 @@ module Checkout
34
29
  end
35
30
 
36
31
  def map_selection_to_branch
37
- puts "selection is #{selection}"
38
32
  @branch ||= branch_choice_object[selection.to_i]
39
- puts "branch is #{@branch}"
40
- puts "branch choice object is #{branch_choice_object}"
41
33
  end
42
34
 
43
35
  def branches
@@ -53,10 +45,6 @@ module Checkout
53
45
 
54
46
  def display_branches
55
47
  branch_choice_object.each do |k, v|
56
- puts "k is #{k}"
57
- puts "v is #{v}"
58
- puts "k dot size is #{k.to_s.size}"
59
- puts "branch is #{branch}"
60
48
  dashes = "-" * (5 - k.to_s.size)
61
49
  puts "#{k.to_s.colorize(:yellow)} #{dashes} #{v.colorize(:green)}"
62
50
  end
@@ -1,3 +1,3 @@
1
1
  module Checkout
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Lerner