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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +21 -12
  3. data/lib/acpc_dealer/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 374ade06952da1d17d263c1556a32917bfe6aba4
4
- data.tar.gz: a92a63b02fd4b17f2001c20e9a8b68ea535000a7
3
+ metadata.gz: 84685a9d64a2e33e0f48c390c5e516aabb86be95
4
+ data.tar.gz: 52898a8e908fd69988dbc035800e67b6959405b4
5
5
  SHA512:
6
- metadata.gz: 8b1310a85c305b0bd1a02aa0504bf829bebf1d0e41dd342a665e2615984eded44521bdca189a18d0e830feed99de2cdfdb4e5c8585f14bc53449533dd694f7a0
7
- data.tar.gz: ea02cfe5f8a4b5d4e457b6334b6c4fbe13a9f90128bd0c12d6e767dd71caa5b7c2951622a0f0ee130a6dfc9c176f4b3cee49d3d6844cafa4c5d5ab527502b2c4
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/extensiontask'
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
- desc 'Compile ACPC dealer'
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, :dealer]
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
- Dir.chdir(File.expand_path('../vendor/project_acpc_server', __FILE__)) do
38
- sh "make clean"
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
@@ -1,3 +1,3 @@
1
1
  module AcpcDealer
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_dealer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill