toolmantim-bananajour 2.1.8 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +1 -1
- data/lib/bananajour/version.rb +1 -1
- data/sinatra/lib/diff_helpers.rb +16 -4
- metadata +2 -2
data/Readme.md
CHANGED
@@ -5,7 +5,7 @@ Local git repository hosting with a sexy web interface and Bonjour discovery. It
|
|
5
5
|
|
6
6
|
Unlike Gitjour, the repositories you're serving are not your working git repositories, they're served from `~/.bananajour/repositories`. You can push to your bananajour repositories from your working copies just like you do with github.
|
7
7
|
|
8
|
-
Bananajour is the baby of [Tim Lucas](http://toolmantim.com/) with much railscamp hackage by [Nathan de Vries](http://github.com/atnan), [Lachlan Hardy](http://github.com/lachlanhardy), [Josh Bassett](http://github.com/nullobject), [Myles Byrne](http://github.com/quackingduck), [Ben Hoskings](http://github.com/benhoskings), [Brett Goulder](http://github.com/brettgo1), [Tony Issakov](https://github.com/tissak), and [Mark Bennett](http://github.com/MarkBennett). The rad logo was by [Carla Hackett](http://carlahackettdesign.com/).
|
8
|
+
Bananajour is the baby of [Tim Lucas](http://toolmantim.com/) with much railscamp hackage by [Nathan de Vries](http://github.com/atnan), [Lachlan Hardy](http://github.com/lachlanhardy), [Josh Bassett](http://github.com/nullobject), [Myles Byrne](http://github.com/quackingduck), [Ben Hoskings](http://github.com/benhoskings), [Brett Goulder](http://github.com/brettgo1), [Tony Issakov](https://github.com/tissak), and [Mark Bennett](http://github.com/MarkBennett). The rad logo was by [Carla Hackett](http://carlahackettdesign.com/). Other various fixes and contributions by [Travis Swicegood](http://github.com/tswicegood) and [Nate Haas](http://github.com/natehaas).
|
9
9
|
|
10
10
|
![Screenshot of local view of Bananajour 2.1.3](http://cloud.github.com/downloads/toolmantim/bananajour/screenshot.png)
|
11
11
|
|
data/lib/bananajour/version.rb
CHANGED
data/sinatra/lib/diff_helpers.rb
CHANGED
@@ -8,10 +8,22 @@ module DiffHelpers
|
|
8
8
|
def parse_diff(diff)
|
9
9
|
raw_diff = diff.diff.split(/\n/)
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
if diff.a_blob.nil?
|
12
|
+
filename = diff.b_blob.name
|
13
|
+
line_num = 1
|
14
|
+
lines = diff.b_blob.data.split(/\n/).map do |line|
|
15
|
+
line_num += 1
|
16
|
+
OpenStruct.new(
|
17
|
+
:body => line[0..-1],
|
18
|
+
:op => DIFF_INS,
|
19
|
+
:num => line_num - 1
|
20
|
+
)
|
21
|
+
end
|
22
|
+
else
|
23
|
+
filename = parse_filename(raw_diff[0..1])
|
24
|
+
first_line_num = parse_first_line_num(raw_diff[2])
|
25
|
+
lines = parse_lines(raw_diff[3..-1], first_line_num)
|
26
|
+
end
|
15
27
|
[filename, lines]
|
16
28
|
end
|
17
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolmantim-bananajour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Lucas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-09 00:00:00 -07:00
|
13
13
|
default_executable: bananajour
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|