ginatra 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/ginatra-directory +4 -6
  2. data/ginatra.gemspec +1 -1
  3. metadata +3 -3
@@ -28,8 +28,7 @@ HELP
28
28
 
29
29
  def self.add(globs)
30
30
  Ginatra::Config.load!
31
- Ginatra::Config[:git_dirs] << globs
32
- Ginatra::Config[:git_dirs].flatten
31
+ Ginatra::Config[:git_dirs] += globs
33
32
  logger.info "Added #{globs.join(" ")} to your config"
34
33
  Ginatra::Config.dump!
35
34
  end
@@ -51,10 +50,9 @@ HELP
51
50
  end
52
51
  end
53
52
 
54
- command, *args = ARGV[0], ARGV[1..-1]
53
+ command, args = ARGV[0], ARGV[1..-1]
55
54
  if command !~ /^(add|remove|list)$/
56
55
  puts Ginatra::Directory::HELP
57
- exit
56
+ else
57
+ Ginatra::Directory.send(command, args)
58
58
  end
59
- Ginatra::Directory.send(command, *args)
60
-
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ginatra"
3
- s.version = "2.2.3"
3
+ s.version = "2.2.4"
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"
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: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 3
10
- version: 2.2.3
9
+ - 4
10
+ version: 2.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Elliott