libdolt 0.33.15 → 0.33.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/libdolt/git/commit.rb +5 -4
- data/lib/libdolt/version.rb +1 -1
- data/test/libdolt/git/commit_test.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjkzMzNkNTM2NGRiZTRhOGI1MzEyMWQ0MDNhNzI2MGI0YThiMzkxMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODE3ODE1YjdkNTQ4ZWNlMzYxY2EyOGU0ODNiZTUzOWZiZDY2NDE5Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTgwMTFiYTAyYWY2MmQyMjY1MzM4NzM3NmJiMmVkMjA3M2MxMzEzZmQzOWYw
|
10
|
+
OWE0YjdhNTM2MzMxNTZiMzUxZTFkYTA3NGQ1YmNlZmYwZmE5NDU4MjEzNTYw
|
11
|
+
M2M5MzEzNWY1M2UzMDAzY2ExNDc0ZDBjMWU3MDIzZDAwNmQ5NDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDIyNDRmM2E4ZjE5Y2NiZDdhOTIzNDljMzVmMjdhY2M5YjYwM2JiZTUwMWJi
|
14
|
+
NDExZjdkYzY5MTJlNjIzODA1OWJiMDI3MTQ2MDdjMzhiYzYxY2Q1Zjk5ZTRl
|
15
|
+
N2YxMjQyYWY4ZGJjZjIwNjAyYzMyM2IxNGY1YzJiNWYwODIzZWE=
|
data/lib/libdolt/git/commit.rb
CHANGED
@@ -29,7 +29,7 @@ module Dolt
|
|
29
29
|
|
30
30
|
def self.extract_commit(lines)
|
31
31
|
commit = { :oid => lines.shift.split(" ")[1] }
|
32
|
-
while (line = lines.shift) != ""
|
32
|
+
while (line = lines.shift) && line != ""
|
33
33
|
pieces = line.split(": ")
|
34
34
|
extract_property(commit, pieces[0], pieces[1])
|
35
35
|
end
|
@@ -56,7 +56,7 @@ module Dolt
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.extract_commit_summary(lines)
|
59
|
-
return "" if
|
59
|
+
return "" if commit_end?(lines.first)
|
60
60
|
summary = lines.shift
|
61
61
|
lines.shift if lines.first == ""
|
62
62
|
summary = summary.sub(/^ /, "")
|
@@ -66,14 +66,15 @@ module Dolt
|
|
66
66
|
def self.extract_commit_message(lines)
|
67
67
|
message = ""
|
68
68
|
|
69
|
-
while !lines.first.nil? && !
|
69
|
+
while !lines.first.nil? && !commit_end?(lines.first)
|
70
70
|
message << lines.shift
|
71
71
|
end
|
72
72
|
|
73
73
|
HTMLEscape.entityfy(message)
|
74
74
|
end
|
75
75
|
|
76
|
-
def self.
|
76
|
+
def self.commit_end?(line)
|
77
|
+
return true unless line
|
77
78
|
line =~ /^commit [a-z0-9]{40}$/
|
78
79
|
end
|
79
80
|
end
|
data/lib/libdolt/version.rb
CHANGED
@@ -50,9 +50,6 @@ Date: Tue Sep 11 19:57:22 2012 +0200
|
|
50
50
|
commit eabcd577e921d01aeaf777d2daac565f88ab174c
|
51
51
|
Author: Christian Johansen <christian@gitorious.com>
|
52
52
|
Date: Tue Sep 11 15:25:50 2012 +0200
|
53
|
-
|
54
|
-
Moron was taken, going with Addlepate
|
55
|
-
|
56
53
|
GIT
|
57
54
|
|
58
55
|
@commits = Dolt::Git::Commit.parse_log(@log)
|