card_deck 1.0.1.pre.137 → 1.1.0.pre.149
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.
- checksums.yaml +8 -8
- data/lib/card_deck.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjZlNTRkOGZlMTFiMDQzYWZjM2RkOGIyYWEyMTZlODgyZTU3YzBjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDNhYWQ1ZDg4Y2E3MzYyMTk2ZDVlNGUxYTAyY2QzYWI1YTc5NTQ3Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTJiYmI2MDcxMTE5NzEzNTUxZDZjMjM2ZDk4ZDRhYWZhM2Q0YmU3ZmUyYWY0
|
10
|
+
OWU5YWFiNzBkYTdkMGNmMjEyZmY0N2E1ODc2OTdlOGNjNDVhNGY2MTQ4MDdj
|
11
|
+
NjYwNGM4N2JjOTRlMmFmZDIxNzY2NzNlOTE2M2U1NDZhMDEyNGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
49
|
-
def initialize(
|
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.
|
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-
|
11
|
+
date: 2014-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|