Permalink
Browse files

include OptionParser in gemfile if binary is created

  • Loading branch information...
1 parent 3f5d559 commit fe5a7eca1e72df77507f21e71696df1d7e09af80 George Drummond committed Oct 30, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/mafia.rb
  2. +1 −1 lib/version.rb
View
@@ -39,6 +39,7 @@ def create_version_file
def create_bin_file
if yes? "\n\nCreate a binary to run your application?", :green
template("bin.tt", "#{name}/bin/#{name}")
+ insert_into_file "#{name}/#{name}.gemspec", " s.add_dependency \"OptionParser\"\n", :after => "s.add_dependency \"sass\"\n"
@jamtur01

jamtur01 Oct 31, 2011

Contributor

You don't need to do this - optparse is included in Ruby's std libs.

irb

require 'optparse'
=> true

end
end
View
@@ -1,3 +1,3 @@
module Mafia
- VERSION = "0.1.2"
+ VERSION = "0.1.3"
end

0 comments on commit fe5a7ec

Please sign in to comment.