card_deck 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/card_deck.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daa2127760a7fc314d8d860e303434efaa5c910a
4
- data.tar.gz: 2b6cd77e45a58c53849d4f9c54a677d06e7fb829
3
+ metadata.gz: dd7691dfe8a8198b2af07624449f799148a78f0b
4
+ data.tar.gz: e860aed43b51d026c1235d039bd97e5d019eb7df
5
5
  SHA512:
6
- metadata.gz: 92dc4d99a30bc1af343d1d05a42d852cf5d55441e541c31e5324267800b630f42712da62a15db3e73d6c2fc9627372ac68c848739a008ca0c9936ceccf040371
7
- data.tar.gz: 7ef948ffd37e9485a97bbde8f2387416791e3829ccc70b94a2c0ba6a5e23db8c2666765318edca5b64dad9270da8e8325a8f31f774845aeb5ee53cf6b201186d
6
+ metadata.gz: b153f724b90b457e5ebd3e77c4c551f0b701b558d3ed927206ce0d2e282689670c67602195f0228d3b39815b65164a2242117722ccd81df7ef1a4aba76afcdba
7
+ data.tar.gz: 7bba989982a40cb920f161a0dd6cc0dd05e2d835cc33dc176257607d32a2b037d2c165b31ec61dce272213a8654395d994f6bb818a741c33c174890788f78772
data/lib/card_deck.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # The gem
2
2
  module CardDeck
3
3
  # Gem Version
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  # Errors for when you incorrectly use a card.
6
6
  class CardError < StandardError; end
7
7
  class Card # The central part of any card game. It is what makes card games 'Card' games.
@@ -10,7 +10,7 @@
10
10
  # Legal arguments for parameter num in Card#new.
11
11
  NUM = %w(Ace King Queen Jack Joker) + (2..10).to_a
12
12
  # Legal arguments for parameter suit in Card#new
13
- SUIT = [HEARTS, SPADES, DIAMONDS, CLUBS, nil]
13
+ SUIT = [HEARTS, SPADES, DIAMONDS, CLUBS]
14
14
  # The card's number. Must be Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, or Joker
15
15
  attr_accessor :num
16
16
  # The card's suit. Must be Spades, Diamonds, Clubs, Hearts, or nil.
@@ -54,4 +54,4 @@
54
54
  @cards.push Card.new(num, suit)
55
55
  end
56
56
  end
57
- end
57
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card_deck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Perlmutter