Rakefile in fanforce-plugin-factory-1.6.1 vs Rakefile in fanforce-plugin-factory-2.0.0.rc1
- old
+ new
@@ -27,10 +27,12 @@
task :register do
scaffolding_dir = File.expand_path('../lib/fanforce/plugin_factory/scaffolding', __FILE__)
Dir.glob("#{scaffolding_dir}/**/*", File::FNM_DOTMATCH).each do |scaffold_filepath|
- next if scaffold_filepath =~ /\.registry/ or File.directory?(scaffold_filepath)
+ next if scaffold_filepath =~ /\.registry$/
+ next if scaffold_filepath =~ /\/initialize\.txt/
+ next if File.directory?(scaffold_filepath)
file_parts = scaffold_filepath.split('/')
registry_filepath = "#{file_parts[0...-1].join('/')}/._#{file_parts[-1]}.registry"
file = Fanforce::PluginFactory::CLI::ScaffoldingFile.new(scaffold_filepath)