gitkeep 0.2.3 → 0.2.40

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 (3) hide show
  1. data/bin/gitkeep +7 -7
  2. data/lib/gitkeep.rb +3 -2
  3. metadata +2 -2
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'gitkeep'
4
+
3
5
  if !ARGV.delete('-h').nil?
4
- put 'gitkeep version 0.2.3'
5
- put 'options:'
6
- put "-d \t drymode"
7
- put "-i \t interactive"
8
- put "-a \t adding .gitkeep files to your git index"
6
+ puts 'gitkeep version '+Gitkeep::VERSION
7
+ puts 'options:'
8
+ puts "-d \t drymode"
9
+ puts "-i \t interactive"
10
+ puts "-a \t adding .gitkeep files to your git index"
9
11
  exit
10
12
  end
11
13
 
12
- require 'gitkeep'
13
-
14
14
  gitkeep = Gitkeep.new
15
15
 
16
16
  # set options
@@ -2,17 +2,18 @@ require 'find'
2
2
 
3
3
  class Gitkeep
4
4
 
5
+ VERSION = '0.2.4'
5
6
  attr_accessor :dryrun, :interactive, :__test
6
7
  attr_reader :file_count, :error_count
7
8
 
9
+ @@ignores = ['.git']
10
+
8
11
  def initialize
9
12
  @__test = false
10
13
  @dryrun = false
11
14
  @interactive = false
12
15
  @file_count = 0
13
16
  @error_count = 0
14
-
15
- @@ignores = ['.git']
16
17
  end
17
18
 
18
19
  def create(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitkeep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.40
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: create .gitkeep files in all empty directories in your project
15
15
  email: arthurz.mobile@gmail.com