reflog-review 0.0.3 → 0.0.4
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 +4 -4
- data/lib/reflog_review.rb +7 -6
- data/reflow-review.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd54c214701dc41fcec477af78478912617cb393
|
|
4
|
+
data.tar.gz: a6dcace439a7ac346fa370b257f267df6ce066a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88c7fcdfa1a8d22386cf9fda18e7f6358d14a8564d439cdf57024dfb7415ce78fbf65df6a33f3ffca51c9e72c59129e9a99fa1614f032f2d88a91acc56ab967b
|
|
7
|
+
data.tar.gz: 3c857d357647ff2b82721ee5627e506e0be3b105e53d8772cf630e73b2ac67b59165229329e74f6c615628b3b8dd16608baf93d5330ae6294492f8ad060632f0
|
data/lib/reflog_review.rb
CHANGED
|
@@ -13,8 +13,9 @@ class ReflogReview
|
|
|
13
13
|
puts [
|
|
14
14
|
"j - next commit",
|
|
15
15
|
"k - previous commit",
|
|
16
|
-
"p - pick commit",
|
|
17
16
|
"s - show current head",
|
|
17
|
+
"p - pick commit",
|
|
18
|
+
"q - quit",
|
|
18
19
|
"? - print help",
|
|
19
20
|
].join("\n").colorize(:light_red)
|
|
20
21
|
end
|
|
@@ -31,22 +32,22 @@ class ReflogReview
|
|
|
31
32
|
show_head
|
|
32
33
|
end
|
|
33
34
|
|
|
35
|
+
def command_p
|
|
36
|
+
log.pick and command_q
|
|
37
|
+
end
|
|
38
|
+
|
|
34
39
|
def command_q
|
|
35
40
|
puts "\n\nYou just lost the game.".colorize(:black)
|
|
36
41
|
exit
|
|
37
42
|
end
|
|
38
43
|
|
|
39
|
-
def command_p
|
|
40
|
-
log.pick and command_q
|
|
41
|
-
end
|
|
42
|
-
|
|
43
44
|
def method_missing(method, *args)
|
|
44
45
|
puts "Invalid input."
|
|
45
46
|
command_?
|
|
46
47
|
end
|
|
47
48
|
|
|
48
49
|
def prompt!
|
|
49
|
-
status = "Is this the drone you are looking for [j,k,p,q,?]? "
|
|
50
|
+
status = "Is this the drone you are looking for [j,k,s,p,q,?]? "
|
|
50
51
|
print status.colorize(:light_blue)
|
|
51
52
|
end
|
|
52
53
|
|
data/reflow-review.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
|
3
3
|
s.name = 'reflog-review'
|
|
4
4
|
s.email = 'blainesch@gmail.com'
|
|
5
5
|
s.homepage = 'https://github.com/blainesch/reflog-review'
|
|
6
|
-
s.version = '0.0.
|
|
6
|
+
s.version = '0.0.4'
|
|
7
7
|
s.summary = 'Easily review your reflog and recover commits.'
|
|
8
8
|
s.description = 'You never really lose a commit in GIT, but sometimes it is harder then it should be to recover it. This tool allows you easily review commits in the reflog one at a time. '
|
|
9
9
|
s.licenses = ['MIT']
|
metadata
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reflog-review
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blaine Schmeisser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pry
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
description: 'You never really lose a commit in GIT, but sometimes it is harder then
|
|
@@ -67,17 +67,17 @@ require_paths:
|
|
|
67
67
|
- bin
|
|
68
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
|
-
- -
|
|
70
|
+
- - '>='
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
|
-
- -
|
|
75
|
+
- - '>='
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
77
|
version: '0'
|
|
78
78
|
requirements: []
|
|
79
79
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.
|
|
80
|
+
rubygems_version: 2.0.14.1
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Easily review your reflog and recover commits.
|