poker-ranking 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/card.rb +4 -0
  2. data/lib/poker_ranking.rb +1 -1
  3. metadata +1 -1
@@ -23,6 +23,10 @@ module PokerRanking
23
23
  "#{@rank} of #{@suit}"
24
24
  end
25
25
 
26
+ def data
27
+ { rank: @rank, suit: @suit }
28
+ end
29
+
26
30
  def ==(other_card)
27
31
  @value == other_card.value && @rank == other_card.rank
28
32
  end
@@ -2,5 +2,5 @@ require_relative 'hand'
2
2
  require_relative 'card'
3
3
 
4
4
  module PokerRanking
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poker-ranking
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: