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.
- data/LICENSE +7 -0
 - data/README.rdoc +37 -0
 - data/bin/git-bro +85 -85
 - data/docs/created.rid +1 -0
 - data/docs/files/LICENSE.html +129 -0
 - data/docs/files/README_rdoc.html +178 -0
 - data/docs/fr_class_index.html +26 -0
 - data/docs/fr_file_index.html +28 -0
 - data/docs/fr_method_index.html +26 -0
 - data/docs/index.html +24 -0
 - data/docs/rdoc-style.css +208 -0
 - data/lib/git-bro.rb +2 -1
 - data/lib/git-bro/commands/serve.rb +2 -2
 - data/lib/git-bro/core_extensions.rb +22 -0
 - data/lib/git-bro/repository.rb +74 -40
 - data/lib/git-bro/sinatra/helpers.rb +11 -0
 - data/sinatra/app.rb +113 -0
 - data/{bin → sinatra}/public/images/file.png +0 -0
 - data/{bin → sinatra}/public/images/folder.png +0 -0
 - data/sinatra/public/js/application.js +10 -0
 - data/sinatra/public/js/jquery-1.4.2.js +6240 -0
 - data/sinatra/views/application.sass +180 -0
 - data/sinatra/views/coderay.sass +42 -0
 - data/sinatra/views/commit.haml +5 -0
 - data/sinatra/views/commit_details.haml +13 -0
 - data/sinatra/views/commits.haml +31 -0
 - data/sinatra/views/dir.haml +40 -0
 - data/sinatra/views/file_content.haml +5 -0
 - data/{bin → sinatra}/views/index.haml +0 -0
 - data/{bin → sinatra}/views/layout.haml +5 -1
 - data/sinatra/views/menu.haml +23 -0
 - data/sinatra/views/tree.haml +5 -0
 - data/test/git-bro.git/HEAD +1 -0
 - data/test/git-bro.git/config +4 -0
 - data/test/git-bro.git/description +1 -0
 - data/test/git-bro.git/hooks/applypatch-msg.sample +15 -0
 - data/test/git-bro.git/hooks/commit-msg.sample +24 -0
 - data/test/git-bro.git/hooks/post-commit.sample +8 -0
 - data/test/git-bro.git/hooks/post-receive.sample +15 -0
 - data/test/git-bro.git/hooks/post-update.sample +8 -0
 - data/test/git-bro.git/hooks/pre-applypatch.sample +14 -0
 - data/test/git-bro.git/hooks/pre-commit.sample +18 -0
 - data/test/git-bro.git/hooks/pre-rebase.sample +169 -0
 - data/test/git-bro.git/hooks/prepare-commit-msg.sample +36 -0
 - data/test/git-bro.git/hooks/update.sample +118 -0
 - data/test/git-bro.git/info/exclude +6 -0
 - data/test/git-bro.git/objects/pack/pack-668e7a3976d53d070420e5877925f8472aaf569d.idx +0 -0
 - data/test/git-bro.git/objects/pack/pack-668e7a3976d53d070420e5877925f8472aaf569d.pack +0 -0
 - data/test/git-bro.git/objects/pack/pack-6f8375d1e612aff7cf5777d6fb1d0ca463f8e49d.idx +0 -0
 - data/test/git-bro.git/objects/pack/pack-6f8375d1e612aff7cf5777d6fb1d0ca463f8e49d.pack +0 -0
 - data/test/git-bro.git/refs/heads/develop +1 -0
 - data/test/git-bro.git/refs/heads/master +1 -0
 - data/test/git-bro/test_repository.rb +46 -0
 - data/test/helper.rb +6 -0
 - metadata +113 -30
 - data/README +0 -18
 - data/bin/server.rb +0 -52
 - data/bin/short_help.txt +0 -4
 - data/bin/views/application.sass +0 -69
 - data/bin/views/dir.haml +0 -23
 - data/bin/views/dir_listing.haml +0 -3
 - data/bin/views/file_content.haml +0 -3
 - data/git-bro-0.0.1.gem +0 -0
 - data/git-bro.gemspec +0 -65
 - data/lib/git-bro/process.rb +0 -28
 - data/rakefile.rb +0 -29
 
    
        data/lib/git-bro/process.rb
    DELETED
    
    | 
         @@ -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 
     | 
    
         
            -
             
     |