git-bro 0.1.0 → 0.2.0

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.
Files changed (66) hide show
  1. data/LICENSE +7 -0
  2. data/README.rdoc +37 -0
  3. data/bin/git-bro +85 -85
  4. data/docs/created.rid +1 -0
  5. data/docs/files/LICENSE.html +129 -0
  6. data/docs/files/README_rdoc.html +178 -0
  7. data/docs/fr_class_index.html +26 -0
  8. data/docs/fr_file_index.html +28 -0
  9. data/docs/fr_method_index.html +26 -0
  10. data/docs/index.html +24 -0
  11. data/docs/rdoc-style.css +208 -0
  12. data/lib/git-bro.rb +2 -1
  13. data/lib/git-bro/commands/serve.rb +2 -2
  14. data/lib/git-bro/core_extensions.rb +22 -0
  15. data/lib/git-bro/repository.rb +74 -40
  16. data/lib/git-bro/sinatra/helpers.rb +11 -0
  17. data/sinatra/app.rb +113 -0
  18. data/{bin → sinatra}/public/images/file.png +0 -0
  19. data/{bin → sinatra}/public/images/folder.png +0 -0
  20. data/sinatra/public/js/application.js +10 -0
  21. data/sinatra/public/js/jquery-1.4.2.js +6240 -0
  22. data/sinatra/views/application.sass +180 -0
  23. data/sinatra/views/coderay.sass +42 -0
  24. data/sinatra/views/commit.haml +5 -0
  25. data/sinatra/views/commit_details.haml +13 -0
  26. data/sinatra/views/commits.haml +31 -0
  27. data/sinatra/views/dir.haml +40 -0
  28. data/sinatra/views/file_content.haml +5 -0
  29. data/{bin → sinatra}/views/index.haml +0 -0
  30. data/{bin → sinatra}/views/layout.haml +5 -1
  31. data/sinatra/views/menu.haml +23 -0
  32. data/sinatra/views/tree.haml +5 -0
  33. data/test/git-bro.git/HEAD +1 -0
  34. data/test/git-bro.git/config +4 -0
  35. data/test/git-bro.git/description +1 -0
  36. data/test/git-bro.git/hooks/applypatch-msg.sample +15 -0
  37. data/test/git-bro.git/hooks/commit-msg.sample +24 -0
  38. data/test/git-bro.git/hooks/post-commit.sample +8 -0
  39. data/test/git-bro.git/hooks/post-receive.sample +15 -0
  40. data/test/git-bro.git/hooks/post-update.sample +8 -0
  41. data/test/git-bro.git/hooks/pre-applypatch.sample +14 -0
  42. data/test/git-bro.git/hooks/pre-commit.sample +18 -0
  43. data/test/git-bro.git/hooks/pre-rebase.sample +169 -0
  44. data/test/git-bro.git/hooks/prepare-commit-msg.sample +36 -0
  45. data/test/git-bro.git/hooks/update.sample +118 -0
  46. data/test/git-bro.git/info/exclude +6 -0
  47. data/test/git-bro.git/objects/pack/pack-668e7a3976d53d070420e5877925f8472aaf569d.idx +0 -0
  48. data/test/git-bro.git/objects/pack/pack-668e7a3976d53d070420e5877925f8472aaf569d.pack +0 -0
  49. data/test/git-bro.git/objects/pack/pack-6f8375d1e612aff7cf5777d6fb1d0ca463f8e49d.idx +0 -0
  50. data/test/git-bro.git/objects/pack/pack-6f8375d1e612aff7cf5777d6fb1d0ca463f8e49d.pack +0 -0
  51. data/test/git-bro.git/refs/heads/develop +1 -0
  52. data/test/git-bro.git/refs/heads/master +1 -0
  53. data/test/git-bro/test_repository.rb +46 -0
  54. data/test/helper.rb +6 -0
  55. metadata +113 -30
  56. data/README +0 -18
  57. data/bin/server.rb +0 -52
  58. data/bin/short_help.txt +0 -4
  59. data/bin/views/application.sass +0 -69
  60. data/bin/views/dir.haml +0 -23
  61. data/bin/views/dir_listing.haml +0 -3
  62. data/bin/views/file_content.haml +0 -3
  63. data/git-bro-0.0.1.gem +0 -0
  64. data/git-bro.gemspec +0 -65
  65. data/lib/git-bro/process.rb +0 -28
  66. data/rakefile.rb +0 -29
@@ -1,28 +0,0 @@
1
- require 'windows/process'
2
- require 'windows/handle'
3
-
4
- module Process
5
- VERSION = '0.0.1'
6
-
7
- extend Windows::Process
8
- extend Windows::Handle
9
-
10
- def self.create(cmdline, opts = {:close_handles => true})
11
- startinfo = Array.new(18,0).pack("LLLLLLLLLLLLSSLLLL")
12
- startinfo[0,4] = [startinfo.size].pack("L")
13
-
14
- pi = Array.new(4,0).pack("LLLL")
15
-
16
- res = CreateProcess(0, cmdline, 0, 0, FALSE, 0, 0, 0, startinfo, pi)
17
-
18
- unless res
19
- puts 'Start process failed!'
20
- return
21
- end
22
-
23
- if opts[:close_handles]
24
- CloseHandle(pi[0,4].unpack("L").first)
25
- CloseHandle(pi[4,4].unpack("L").first)
26
- end
27
- end
28
- end
data/rakefile.rb DELETED
@@ -1,29 +0,0 @@
1
- $:.unshift("lib")
2
- require "git-bro"
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |s|
7
- s.version = GitBro::VERSION
8
- s.name = 'git-bro'
9
- s.executables = "git-bro"
10
- s.summary = "Serve and browse your Git repositories"
11
- s.description = "Git-bro provides tools to serve your Git repositories"
12
- s.email = "dmtmax@gmail.com"
13
- s.homepage = "http://github.com/kolo/git-bro"
14
- s.authors = ["Dmitry Maksimov"]
15
- s.files = FileList["[a-z]*", "[A-Z]*", "{bin,docs,lib,test}/**/*"]
16
- s.add_dependency "grit"
17
- s.add_dependency "sinatra"
18
- end
19
- rescue LoadError
20
- puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
21
- end
22
-
23
- desc 'Builds gem, uninstall old one, install new version'
24
- task :reinstall do
25
- system("rake build")
26
- system("sudo gem uninstall -x git-bro")
27
- system("sudo gem install --no-ri --no-rdoc pkg/git-bro-#{GitBro::VERSION}.gem")
28
- end
29
-