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 +4 -4
- data/lib/git/switcher/menu.rb +5 -3
- data/lib/git/switcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f2f0273333dea50c03a0dec985bb080d4dc85a
|
4
|
+
data.tar.gz: 51ed894299ffd98fe7678e052941b7084364e089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb13ffa3101557beb5619621cdc61d89d1587e547f9773b2e817d1e23b05b628d1773d9b9ca69d29cd68c28630acacc3b2d2e41236daf93fdc6e202322607df9
|
7
|
+
data.tar.gz: 0e6ee6069a34d013de102a8ee37fb66a1443f65b5bdbdd7cf3e6193e2622d4262a12cf98b5d546da23f2721e16f6362140d4da515b592e3c3e89516043190b0d
|
data/lib/git/switcher/menu.rb
CHANGED
@@ -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
|
43
|
-
submenu_for('LOCAL BRANCHES', local_branches, shortcuts
|
44
|
-
submenu_for('TAGS', @repo.tags, shortcuts
|
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
|
data/lib/git/switcher/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|