webgit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/lib/webgit/app.rb +3 -0
- data/lib/webgit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7667f651a5abf9413e96c26f48e27a048698467
|
4
|
+
data.tar.gz: d675fa1002a14cff16e3332a1fe464987a557818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441dd9655b033d99e4cdd19091405c244ec69dc97ed7c98b4a7744789e28348640dbffadee4a41579711907a149957032ac713ead17c2dc2fdbf6406a6a92e2e
|
7
|
+
data.tar.gz: 87a59d71de65b7dc459590df87ea633c731fd38f08c4f1f8859a5245b53cc851894047fddb2add03c8e0067f2bee8ee61294797988db41674c9542445248d1f5
|
data/README.md
CHANGED
@@ -31,7 +31,16 @@ webgit
|
|
31
31
|
webgit <GIT_REPO_DIR> <PORT>
|
32
32
|
```
|
33
33
|
|
34
|
-
|
34
|
+
```
|
35
|
+
http://localhost:<PORT>/
|
36
|
+
|
37
|
+
# show commit via sha id
|
38
|
+
http://locahost:<PORT>/objects/HEAD/show
|
39
|
+
http://localhost:<PORT>/objects/<COMMIT_SHA>/show
|
40
|
+
|
41
|
+
# show tree via sha id
|
42
|
+
http://localhost:<PORT>/objects/<TREE_SHA>/show
|
43
|
+
```
|
35
44
|
|
36
45
|
|
37
46
|
## Development
|
@@ -42,7 +51,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
42
51
|
|
43
52
|
## Contributing
|
44
53
|
|
45
|
-
1. Fork it ( https://github.com/
|
54
|
+
1. Fork it ( https://github.com/jameszhan/webgit/fork )
|
46
55
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
47
56
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
48
57
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/webgit/app.rb
CHANGED
@@ -56,6 +56,9 @@ module Webgit
|
|
56
56
|
if obj.is_a? Rugged::Tree
|
57
57
|
@tree = obj
|
58
58
|
erb options[:tree_erb] || :tree
|
59
|
+
elsif obj.is_a? Rugged::Commit
|
60
|
+
@tree = obj.tree
|
61
|
+
erb options[:tree_erb] || :tree
|
59
62
|
elsif obj.is_a? Rugged::Blob
|
60
63
|
@blob = obj
|
61
64
|
@format = options[:name].split('.')[-1]
|
data/lib/webgit/version.rb
CHANGED