bin/opensource in opensource-0.3.1 vs bin/opensource in opensource-0.3.3

- old
+ new

@@ -1,12 +1,13 @@ #!/usr/bin/env ruby +# encoding: UTF-8 require 'optparse' require_relative '../lib/opensource' options = {} -LICENSES = Dir.new('../templates').map do |filename| +LICENSES = Dir.new("#{Dir.pwd}/templates").map do |filename| File.basename(filename, '.erb') if !['.', '..'].include?(filename) end.compact OptionParser.new do |opts| opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} OPTIONS"