public
Description: Ruby library for comparing poker hands and determining the winner.
Homepage:
Clone URL: git://github.com/robolson/ruby-poker.git
Jonathan Wilkins (author)
Tue Oct 27 11:05:51 -0700 2009
robolson (committer)
Mon Nov 09 23:04:53 -0800 2009
ruby-poker / Rakefile
100644 70 lines (60 sloc) 1.977 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
require 'rubygems'
require 'rake'
 
begin
  require 'metric_fu'
rescue LoadError
end
 
RUBYPOKER_VERSION = "0.3.2"
 
spec = Gem::Specification.new do |s|
  s.name = "ruby-poker"
  s.version = RUBYPOKER_VERSION
  s.date = "2009-07-27"
  s.rubyforge_project = "rubypoker"
  s.platform = Gem::Platform::RUBY
  s.summary = "Poker library in Ruby"
  s.description = "Ruby library for comparing poker hands and determining the winner."
  s.author = "Rob Olson"
  s.email = "rob@thinkingdigitally.com"
  s.homepage = "http://github.com/robolson/ruby-poker"
  s.has_rdoc = true
  s.files = ["CHANGELOG",
                "examples/deck.rb",
                "examples/quick_example.rb",
                "lib/ruby-poker.rb",
                "lib/ruby-poker/card.rb",
                "lib/ruby-poker/poker_hand.rb",
                "LICENSE",
                "Rakefile",
                "README.rdoc",
                "ruby-poker.gemspec"]
  s.test_files = ["test/test_helper.rb", "test/test_card.rb", "test/test_poker_hand.rb"]
  s.require_paths << 'lib'
 
  s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "LICENSE"]
  s.rdoc_options << '--title' << 'Ruby Poker Documentation' <<
                    '--main' << 'README.rdoc' <<
                    '--inline-source' << '-q'
 
  s.add_development_dependency('thoughtbot-shoulda', '> 2.0.0')
end
 
require 'rake/gempackagetask'
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = true
  pkg.need_zip = true
end
 
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.verbose = true
  test.warning = true
end
 
desc "Start autotest"
task :autotest do
  ruby "-I lib -w /usr/bin/autotest"
end
 
require 'rake/rdoctask'
Rake::RDocTask.new(:docs) do |rdoc|
  rdoc.main = 'README.rdoc'
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "Ruby Poker #{RUBYPOKER_VERSION}"
  rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG', 'LICENSE', 'lib/**/*.rb')
end
 
task :default => :test