mkgitignore 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/mkgitignore CHANGED
@@ -11,7 +11,7 @@ program :version, Mkgitignore::VERSION
11
11
  program :description, 'Create Gitignore files from the Github templates repo'
12
12
 
13
13
  program :help, 'Author', Mkgitignore::AUTHOR
14
- program :help, 'Website', Mkgitignore::EMAIL
14
+ program :help, 'Website', Mkgitignore::WEBSITE
15
15
  program :help_formatter, :compact
16
16
 
17
17
  default_command :help
data/lib/mkgitignore.rb CHANGED
@@ -114,7 +114,7 @@ module Mkgitignore
114
114
  end
115
115
 
116
116
  def self.writeGitignore(gitignore, nobackup)
117
- if !nobackup && File.exists?(Mkgitignore::GITIGNORE_FILE_NAME)
117
+ if nobackup.nil? && File.exists?(Mkgitignore::GITIGNORE_FILE_NAME)
118
118
  FileUtils.mv Mkgitignore::GITIGNORE_FILE_NAME, Mkgitignore::BACKUP_FILE_NAME, :force => true
119
119
  if File.exists?(Mkgitignore::GITIGNORE_FILE_NAME)
120
120
  puts "Failed to backup #{ Mkgitignore::GITIGNORE_FILE_NAME }".red
@@ -1,7 +1,8 @@
1
1
  module Mkgitignore
2
2
  AUTHOR = "Keith Smiley"
3
+ WEBSITE = "https://github.com/Keithbsmiley/mkgitignore"
3
4
  EMAIL = "keithbsmiley@gmail.com"
4
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
5
6
  GITIGNORE_URL = "https://api.github.com/repos/github/gitignore/contents/"
6
7
  GITIGNORE_FILE_NAME = ".gitignore"
7
8
  BACKUP_FILE_NAME = "backup.gitignore"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkgitignore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-12-17 00:00:00.000000000 Z
12
+ date: 2012-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: commander