bin/methadone in methadone-1.9.2 vs bin/methadone in methadone-1.9.3

- old
+ new

@@ -55,11 +55,11 @@ license = options[:license] warn "warning: your app has no license" unless license license = nil if license == 'NONE' if license - copy_file "#{options[:license]}_LICENSE.txt", :as => "LICENSE.txt" + copy_file "#{options[:license]}_LICENSE.txt", :as => "LICENSE.txt" else #Remove the MIT license generated by `bundle gem` debug "Making sure no LICENSE.txt file exists at the root of the repo" FileUtils.rm_f "LICENSE.txt" end @@ -67,10 +67,10 @@ #Ensure the gemspec file mentions the correct license gemspec_content = File.read(gemspec) if gemspec_content =~ /(^\s*#{gem_variable}\.license\s*=\s*).*/ gemspec_content.gsub!(/(^\s*#{gem_variable}\.license\s*=\s*).*/,"\\1#{license.to_s.inspect}") else - gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n #{gem_variable}.license=#{license.to_s.inspect}") + gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n#{" #{gem_variable}.license".ljust(20)} = #{license.to_s.inspect.upcase}") end File.open(gemspec,'w') {|f| f.write gemspec_content } copy_file "README.rdoc", :binding => binding if using_readme