acpc_dealer 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +21 -12
- data/lib/acpc_dealer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84685a9d64a2e33e0f48c390c5e516aabb86be95
|
4
|
+
data.tar.gz: 52898a8e908fd69988dbc035800e67b6959405b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697e0100a2a5bea1e0a2e80aa0bcc000fe67846e8e731ec2e6352836b69529a4f453505209f65f7b69fd1b41386156bd801d130b3e61c4f843da0a878343f7e4
|
7
|
+
data.tar.gz: 36b731e3dd9bb69beab0c7c89fb93bc8af04a10d24e07b3e25c29eed201c5332b1de0f39edfa1ca67c2f4019cfe290746ff94f2069a9a52d9435b54a73f3e1b5
|
data/Rakefile
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require 'rake'
|
3
|
-
require 'rake/
|
3
|
+
require 'rake/clean'
|
4
|
+
require 'rbconfig'
|
4
5
|
require 'rake/testtask'
|
6
|
+
require 'rake/extensiontask'
|
7
|
+
require 'rubygems/package_task'
|
5
8
|
|
6
9
|
require File.expand_path('../lib/acpc_dealer/version', __FILE__)
|
7
10
|
|
8
11
|
desc 'Build gem'
|
9
12
|
task :default => [:build, :test]
|
10
13
|
|
11
|
-
|
12
|
-
task :dealer do
|
13
|
-
Dir.chdir(File.expand_path('../vendor/project_acpc_server', __FILE__)) do
|
14
|
-
sh "make"
|
15
|
-
end
|
16
|
-
end
|
14
|
+
task :compile => ['dealer:clean', 'dealer:compile']
|
17
15
|
|
18
|
-
task :build => [:clean, :compile
|
16
|
+
task :build => [:clean, :compile]
|
19
17
|
|
20
18
|
Rake::TestTask.new do |t|
|
21
19
|
t.libs << "lib" << 'spec/support'
|
@@ -31,11 +29,22 @@ end
|
|
31
29
|
Gem::PackageTask.new(gemspec) { |pkg| }
|
32
30
|
Rake::ExtensionTask.new('hand_evaluator', gemspec)
|
33
31
|
|
34
|
-
task :clean do
|
32
|
+
task :clean => 'dealer:clean' do
|
35
33
|
sh "rm -f lib/hand_evaluator.so"
|
34
|
+
end
|
36
35
|
|
37
|
-
|
38
|
-
|
36
|
+
namespace :dealer do
|
37
|
+
desc 'Compile ACPC dealer'
|
38
|
+
task :compile do
|
39
|
+
Dir.chdir(File.expand_path('../vendor/project_acpc_server', __FILE__)) do
|
40
|
+
sh "make"
|
41
|
+
end
|
39
42
|
end
|
40
|
-
end
|
41
43
|
|
44
|
+
desc 'Clean ACPC dealer'
|
45
|
+
task :clean do
|
46
|
+
Dir.chdir(File.expand_path('../vendor/project_acpc_server', __FILE__)) do
|
47
|
+
sh "make clean"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/lib/acpc_dealer/version.rb
CHANGED