Rakefile in picturehouse_uk-1.0.2 vs Rakefile in picturehouse_uk-2.0.0
- old
+ new
@@ -1,20 +1,33 @@
#!/usr/bin/env rake
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'lib/picturehouse_uk'
- t.test_files = FileList['test/lib/picturehouse_uk/*_test.rb', 'test/lib/picturehouse_uk/internal/*_test.rb']
+ t.test_files = FileList[
+ 'test/lib/picturehouse_uk/*_test.rb',
+ 'test/lib/picturehouse_uk/internal/*_test.rb'
+ ]
t.verbose = true
end
-task :build do
- system "gem build picturehouse_uk.gemspec"
+Rake::TestTask.new do |t|
+ t.libs << 'lib/picturehouse_uk'
+ t.name = :live
+ t.test_files = FileList[
+ 'test/live/*_test.rb'
+ ]
+ t.verbose = true
end
-task :release => :build do
- system "gem push picturehouse_uk-#{PicturehouseUk::VERSION}"
+# http://erniemiller.org/2014/02/05/7-lines-every-gems-rakefile-should-have/
+task :console do
+ require 'irb'
+ require 'irb/completion'
+ require 'picturehouse_uk'
+ ARGV.clear
+ IRB.start
end
-task :default => :test
+task default: :test