ginatra 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,8 @@ end
75
75
  command = ARGV[0]
76
76
  if command !~ /^(stop|status|start|restart)$/
77
77
  puts Ginatra::Daemon::HELP
78
- exit
78
+ else
79
+ Ginatra::Daemon.send(command)
79
80
  end
80
- Ginatra::Daemon.send(command)
81
+
81
82
 
@@ -42,7 +42,7 @@ HELP
42
42
  Ginatra::Config.dump!
43
43
  end
44
44
 
45
- def self.list(*args)
45
+ def self.list(args)
46
46
  Ginatra::Config.load!
47
47
  puts "Directories Ginatra will look for repos in:"
48
48
  puts Ginatra::Config[:git_dirs].map{|r| " - #{r}"}.join("\n")
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ginatra"
3
- s.version = "2.2.4"
3
+ s.version = "2.2.5"
4
4
  s.summary = "A Gitweb Clone in Sinatra and Grit"
5
5
  s.description = "Host your own git repository browser through the power of Sinatra and Grit"
6
6
  s.email = "sam@lenary.co.uk"
@@ -2,16 +2,14 @@
2
2
  require "bundler"
3
3
  Bundler.setup(:default)
4
4
  require 'sinatra/base'
5
-
6
-
7
5
  require "sinatra/partials"
8
6
 
9
7
  # Written myself. i know, what the hell?!
10
8
  module Ginatra
11
9
 
12
- autoload :Config, "ginatra/config"
13
- autoload :Helpers, "ginatra/helpers"
14
- autoload :Repo, "ginatra/repo"
10
+ autoload :Config, "ginatra/config"
11
+ autoload :Helpers, "ginatra/helpers"
12
+ autoload :Repo, "ginatra/repo"
15
13
  autoload :RepoList, "ginatra/repo_list"
16
14
 
17
15
  # A standard error class for inheritance.
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require File.expand_path(File.dirname(__FILE__) + "/spec_helper")
2
2
 
3
3
  describe "Ginatra" do
4
4
 
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require File.expand_path(File.dirname(__FILE__) + "/spec_helper")
2
2
 
3
3
  describe "Ginatra" do
4
4
  describe "Repo" do
@@ -2,7 +2,7 @@
2
2
  require 'bundler'
3
3
  Bundler.setup(:default, :test)
4
4
  require 'rspec'
5
- require "ginatra"
5
+ require 'ginatra'
6
6
  require 'webrat'
7
7
  require 'rack/test'
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ginatra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 4
10
- version: 2.2.4
9
+ - 5
10
+ version: 2.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Elliott