toolmantim-bananajour 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/bin/bananajour CHANGED
@@ -5,6 +5,7 @@ require "#{File.dirname(__FILE__)}/../lib/bananajour"
5
5
 
6
6
  Thread.abort_on_exception = true
7
7
 
8
+ Bananajour.setup! if !Bananajour.setup?
8
9
  Bananajour.check_git!
9
10
  Bananajour.check_git_config!
10
11
 
@@ -1,3 +1,3 @@
1
1
  module Bananajour
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
data/lib/bananajour.rb CHANGED
@@ -27,6 +27,14 @@ module Bananajour
27
27
  include GravatarHelpers
28
28
  include Commands
29
29
 
30
+ def setup?
31
+ repositories_path.exists?
32
+ end
33
+
34
+ def setup!
35
+ repositories_path.create_dir
36
+ end
37
+
30
38
  def path
31
39
  Fancypath("~/.bananajour").expand_path
32
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolmantim-bananajour
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-04 00:00:00 -07:00
12
+ date: 2009-06-09 00:00:00 -07:00
13
13
  default_executable: bananajour
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency