Rakefile in cd-1.0.1 vs Rakefile in cd-1.0.2
- old
+ new
@@ -1,9 +1,9 @@
# # #
# Get gemspec info
-gemspec_file = Dir['*.gemspec'].first
+gemspec_file = Dir['*.gemspec'].first
gemspec = eval File.read(gemspec_file), binding, gemspec_file
info = "#{gemspec.name} | #{gemspec.version} | " \
"#{gemspec.runtime_dependencies.size} dependencies | " \
"#{gemspec.files.size} files"
@@ -26,5 +26,17 @@
desc "#{gemspec.name} | IRB"
task :irb do
sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
end
+
+
+# # #
+# Run specs
+
+desc "#{gemspec.name} | Spec"
+task :spec do
+ # sh "for file in spec/*_spec.rb; do ruby $file; done"
+ ruby "spec/cd_spec.rb"
+end
+task default: :spec
+