card_deck 1.0.1.pre.137 → 1.1.0.pre.149

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/card_deck.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTVhMTQwY2YzNmVmOThiMjRiMjE2ZmEyZGNmZmU4ZWYyZTRhMDljMQ==
4
+ MjZlNTRkOGZlMTFiMDQzYWZjM2RkOGIyYWEyMTZlODgyZTU3YzBjMA==
5
5
  data.tar.gz: !binary |-
6
- ZmVlMmZlNDFkZTIxZmZlMzRiOTFmZWUyYjdmMjBjOTdkNzcxNzc1NA==
6
+ NDNhYWQ1ZDg4Y2E3MzYyMTk2ZDVlNGUxYTAyY2QzYWI1YTc5NTQ3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjZhZjcyNTUyZjQ0YmI2OGU1Yjk2MGY0NjcyMGJkOTBmZjU2N2ExM2ViNGEz
10
- OTBkZWQ0YTg1Y2E3OTIyMzc5MDIyZjkyYTdlZDNlNDQ4MGI1ZjUzZmQyMDli
11
- ODQwNzhkZjM4ZTRkOTE3NmIzMzI1NDU0YmI2MTdhZWMwMDZmM2Q=
9
+ OTJiYmI2MDcxMTE5NzEzNTUxZDZjMjM2ZDk4ZDRhYWZhM2Q0YmU3ZmUyYWY0
10
+ OWU5YWFiNzBkYTdkMGNmMjEyZmY0N2E1ODc2OTdlOGNjNDVhNGY2MTQ4MDdj
11
+ NjYwNGM4N2JjOTRlMmFmZDIxNzY2NzNlOTE2M2U1NDZhMDEyNGU=
12
12
  data.tar.gz: !binary |-
13
- ODQ1ZTI0NzZhYzU5OTUyNjIwNDZjNGYwMmVjYjNhYjI3ZTIxZmU1MGYxNjUz
14
- NDI5ZGMxMzg1NTczNGQ4ZWYxMWVmNDFkM2MxYWUxMTJhZWQ2ZWVmNGQ4NDU3
15
- OTE2NWFmYzIzNzFjMWM1NGUyNGQ5NDJmMWU5NTMyMGIxZDA5ODc=
13
+ ZmY4Y2E5YWMxOWQyYTYwMjcxNTA0ZWM2MzFhNTAwYTY2MDkzNWY1MDkzMTc5
14
+ ZGNjYTE4YThiNTkyZGVlNDg3NTRmN2ZlM2VjNGJkOTEwZjQ4OWNkNjc4MzJj
15
+ YjE0ZmY2NjU3ODVhMGIxMGY0OGU2OTE2NmM0OWU5ZTI5MmU1ZDA=
data/lib/card_deck.rb CHANGED
@@ -45,8 +45,8 @@
45
45
  # The cards in the deck
46
46
  attr_accessor :cards
47
47
  alias inspect cards
48
- # Creates a new Deck. Includes Jokers when parameter jokers = true
49
- def initialize(jokers=false)
48
+ # Creates a new Deck. Includes Jokers when parmeter args == {jokers: true}
49
+ def initialize(args=Hash.new(false))
50
50
  @cards = Array.new
51
51
  for suit in Card::SUIT
52
52
  stock 'Ace', suit
@@ -55,7 +55,7 @@
55
55
  stock 'Queen', suit
56
56
  stock 'King', suit
57
57
  end
58
- 2.times {stock 'Joker'} if jokers
58
+ 2.times {stock 'Joker'} if args[:jokers]
59
59
  end
60
60
  private
61
61
  def stock(num, suit=nil) # Creates a Card to add to Deck#cards
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card_deck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre.137
4
+ version: 1.1.0.pre.149
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Perlmutter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-31 00:00:00.000000000 Z
11
+ date: 2014-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec