lazyatom-gem-this 0.1.4 → 0.1.5

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/Rakefile +1 -1
  2. data/bin/gem-this +2 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
15
15
 
16
16
  # Change these as appropriate
17
17
  s.name = "gem-this"
18
- s.version = "0.1.4"
18
+ s.version = "0.1.5"
19
19
  s.summary = "Make existing code into a gem, without any fuss."
20
20
  s.author = "James Adam"
21
21
  s.email = "james@lazyatom.com"
data/bin/gem-this CHANGED
@@ -44,7 +44,8 @@ def using_git?
44
44
  end
45
45
 
46
46
  def add_to_gitignore
47
- ignores = File.readlines(".gitignore") if File.exist?(".gitignore")
47
+ return unless File.exist?(".gitignore")
48
+ ignores = File.readlines(".gitignore")
48
49
  ignores += ["pkg", "rdoc"]
49
50
  File.open(".gitignore", "w") { |f| f.write ignores.map { |l| l.strip }.uniq.join("\n") }
50
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazyatom-gem-this
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Adam