robolson-ruby-poker 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,7 +1,11 @@
1
+ 2009-01-24 (0.3.1)
2
+ * Bug [#23623] undefined method <=> for nil:NilClass
3
+
1
4
  2008-12-30 (0.3.1)
2
- * Fixed bug (#20407) Raise an exception when creating a new hand with duplicates
5
+ * Bug (#20407) Raise an exception when creating a new hand with duplicates
3
6
  * Added PokerHand#uniq method
4
7
  * Removed deprecated `Gem::manage_gems` from Rakefile
8
+
5
9
  2008-05-17 (0.3.0)
6
10
  * Changed Card#== to compare based on card suit and face value. Before it only compared the face value of two cards. Warning: This change may potentially break your program if you were comparing Card objects directly.
7
11
  * Replaced `PokerHand#arranged_hand` with `PokerHand#sort_using_rank` which is more descriptive. This loosely corresponds to bug #20194.
data/Rakefile CHANGED
@@ -10,12 +10,12 @@ rescue LoadError
10
10
  nil
11
11
  end
12
12
 
13
- RUBYPOKER_VERSION = "0.3.0"
13
+ RUBYPOKER_VERSION = "0.3.1"
14
14
 
15
- Gem::Specification.new do |s|
15
+ spec = Gem::Specification.new do |s|
16
16
  s.name = "ruby-poker"
17
17
  s.version = RUBYPOKER_VERSION
18
- s.date = "2008-05-17"
18
+ s.date = "2009-01-24"
19
19
  s.rubyforge_project = "rubypoker"
20
20
  s.platform = Gem::Platform::RUBY
21
21
  s.summary = "Poker library in Ruby"
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  "test/test_poker_hand.rb"]
38
38
  s.require_paths << 'lib'
39
39
 
40
- s.extra_rdoc_files = ["README", "CHANGELOG", "LICENSE"]
40
+ s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "LICENSE"]
41
41
  s.rdoc_options << '--title' << 'Ruby Poker Documentation' <<
42
42
  '--main' << 'README.rdoc' <<
43
43
  '--inline-source' << '-q'
data/lib/ruby-poker.rb CHANGED
@@ -289,7 +289,7 @@ class PokerHand
289
289
  alias :to_ary :to_a
290
290
 
291
291
  def <=> other_hand
292
- self.score[0] <=> other_hand.score[0]
292
+ self.score[0].compact <=> other_hand.score[0].compact
293
293
  end
294
294
 
295
295
  # Add a card to the hand
data/ruby-poker.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ruby-poker"
3
- s.version = "0.3.0"
4
- s.date = "2008-05-17"
3
+ s.version = "0.3.1"
4
+ s.date = "2009-01-24"
5
5
  s.rubyforge_project = "rubypoker"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.summary = "Poker library in Ruby"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robolson-ruby-poker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Olson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-17 00:00:00 -07:00
12
+ date: 2009-01-24 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15