lib/microgem/generator.rb in microgem-1.0.23 vs lib/microgem/generator.rb in microgem-1.1.0

- old
+ new

@@ -67,11 +67,11 @@ end def path name.gsub(/-[_-]*(?![_-]|$)/){ '/' } end - + def spec_name name.gsub(/-[_-]*(?![_-]|$)/){ '_' } end def last_name @@ -97,13 +97,13 @@ def current_year Date.today.year end def generate - directory ".", name, exclude_pattern: %r<_spec.rb|Gemfile|\.travis\.yml> + directory ".", name, exclude_pattern: %r<_spec.rb|Gemfile|\.github> if options[:specs] directory "spec", name + "/spec" - template ".travis.yml", name + "/.travis.yml" + directory ".github", name + "/.github" copy_file "Gemfile", name + "/Gemfile" end end end