git-switcher 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df7005e2b2f5000c5ccb2e924e4946b0f554216f
4
- data.tar.gz: 3f94a02a094a377b5af5926bf340f8e152906148
3
+ metadata.gz: a7f2f0273333dea50c03a0dec985bb080d4dc85a
4
+ data.tar.gz: 51ed894299ffd98fe7678e052941b7084364e089
5
5
  SHA512:
6
- metadata.gz: 3342dacefbb8d13e2dc36a4be67b44681b350175f040953d9762f1adca1bae586f56b6f7ec4e626cda53d152b40daa2fce6d85967b7302767cfccb1aa7de1041
7
- data.tar.gz: 28a476a5218d371a4dcf8bacc66ca3a601d282c2f0a468f3d65ef7fa2809feb607bbe9afc6fb8069e9c1ec7b0994f842c6acfbb191d404f8f8614bfe2347c641
6
+ metadata.gz: eb13ffa3101557beb5619621cdc61d89d1587e547f9773b2e817d1e23b05b628d1773d9b9ca69d29cd68c28630acacc3b2d2e41236daf93fdc6e202322607df9
7
+ data.tar.gz: 0e6ee6069a34d013de102a8ee37fb66a1443f65b5bdbdd7cf3e6193e2622d4262a12cf98b5d546da23f2721e16f6362140d4da515b592e3c3e89516043190b0d
@@ -38,10 +38,12 @@ module Git
38
38
  remote_branches = @repo.branches.find_all(&:remote?)
39
39
  local_branches = @repo.branches.find_all(&:local?)
40
40
 
41
+ shortcuts = (1..Float::INFINITY).each
42
+
41
43
  @submenus = [
42
- submenu_for('REMOTE BRANCHES', remote_branches, shortcuts('a')),
43
- submenu_for('LOCAL BRANCHES', local_branches, shortcuts(1)),
44
- submenu_for('TAGS', @repo.tags, shortcuts(100)),
44
+ submenu_for('REMOTE BRANCHES', remote_branches, shortcuts),
45
+ submenu_for('LOCAL BRANCHES', local_branches, shortcuts),
46
+ submenu_for('TAGS', @repo.tags, shortcuts),
45
47
  ].compact
46
48
 
47
49
  @menu_items = @submenus.map(&:menu_items).flatten
@@ -1,7 +1,7 @@
1
1
  module Git
2
2
  module Switcher
3
3
  NAME = 'git-switcher'.freeze
4
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.0.2'.freeze
5
5
 
6
6
  def self.version
7
7
  "#{NAME} v#{VERSION}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-switcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-24 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow