Rakefile in acpc_dealer-2.0.2 vs Rakefile in acpc_dealer-2.0.3
- old
+ new
@@ -3,12 +3,10 @@
require 'rake/extensiontask'
require 'rake/testtask'
require File.expand_path('../lib/acpc_dealer/version', __FILE__)
-Rake::ExtensionTask.new('hand_evaluator')
-
desc 'Build gem'
task :default => :build
task :build => :compile
@@ -16,5 +14,12 @@
t.libs << "lib" << 'spec/support'
t.test_files = FileList['spec/**/*_spec.rb']
t.verbose = false
t.warning = false
end
+
+def gemspec
+ @clean_gemspec ||= eval(File.read(File.expand_path('../acpc_dealer.gemspec', __FILE__)))
+end
+
+Gem::PackageTask.new(gemspec) { |pkg| }
+Rake::ExtensionTask.new('hand_evaluator', gemspec)
\ No newline at end of file