Rakefile in whirly-0.1.1 vs Rakefile in whirly-0.2.0
- old
+ new
@@ -29,11 +29,32 @@
sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
end
# # #
+# Run Specs
+
+desc "#{gemspec.name} | Spec"
+task :spec do
+ sh "for file in spec/*.rb; do ruby $file; done"
+end
+task default: :spec
+
+
+# # #
# Update spinners
+
desc "Update spinners"
task :update_spinners do
- sh "git submodule update"
- cp "data/external/cli-spinners/spinners.json", "data/spinners.json"
+ sh "git submodule update --recursive --remote"
+ cp "data/external/cli-spinners/spinners.json", "data/cli-spinners.json"
end
+
+
+# # #
+# Record ASCIICAST
+
+desc "Record an asciicast via asciinema"
+task :record_acsiicast do
+ sh "cd && asciinema rec whirly-bundled-spinners-v0.2.0.json --title='Whirly v0.2.0 Bundled Spinners' --command='ruby #{File.dirname(__FILE__)}/examples/asciinema_bundled_spinners.rb'"
+end
+