99_game 3.1.0.pre.103 → 3.1.0

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjcxYWFmNmQ1N2FmYTE4YzQwMjlmOWY3ZWZkMjEyNjBjN2JmNGYzZA==
4
+ Njk2NmJmNDcwY2Y4YTY5ZTU5YjkxZjFiOTRjYjkxMDQwYmYwYmNiYg==
5
5
  data.tar.gz: !binary |-
6
- MzJjNGNjMjJmOTMzZGMxNGY4MzJmYzU1NTk5Mzc3ZTQxZTgwNzdjMA==
6
+ YjRlM2IwZGZjMGNiOWUxZTQ1MmQ2ZDZkYmIwZDkzY2EzNmEzNGQzZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjJmYmY0YTZlYzAzMzIyZWE1NjVhMTg2ZjRhYzRjMDIzYjM2NjdiYzlkNGM2
10
- NDUwNDY5OTVhMTg0NDY3OWMzYjIyNDEzODhmY2Y2Yjk3MDkyNGM4ZDQ2YTI5
11
- MTljM2RhNGI2ZDUyNDFiNDlmMDNlNTllMmJhMGI2YzE5MzU5N2U=
9
+ MTExNWI4YWE0MjRkZTUxYzcxYTM1Mzg4MjU3ZWNiMWNhN2NlODc5OWQ5ZDVj
10
+ OTQ3OTY1MDI0M2RjY2I0ZDgxNjgwNWUzMzU3Mzg4YThkNDRhMDVkODQ1ZThk
11
+ ZGIzMjBhMWFhYzA4N2ZjMTE3ZTA5NmZlOWY0NWY1YTBhNDg5NDY=
12
12
  data.tar.gz: !binary |-
13
- YjZkNzYyNTg2MGQ0ZmUzMzQ0MDRjZGI5MTVlZjE3NDZiMGZmODA4ZWM0MTQ3
14
- NzgxN2ZjYjljOGRlMTc0NjVhMzE3NGU0YWY3ZDZhOGQ5NzNkYTQ3NGVkNGE2
15
- NjBjYzkwM2VhMzUwNzM1YWYzOGE1MjA1NjViODI1MTFiMmUwODg=
13
+ MTA2OGJjYjk4NjE1YmY2YTk3ODFlZDc2MGE0MWJlZjA5YzQ1MjYyZDJmZDk4
14
+ MTQzMWY3NjQ3OWU5YTliZGY1Y2NmMTA4MzI5YmZhMmQ2ZjlkMGZkZmQyYWYx
15
+ ZjE0ODRkNzBlZDYzYTVhNjFkNzIzZDQ3ZWMzYjFlMmM1OWRiOGQ=
data/lib/99_game.rb CHANGED
@@ -37,7 +37,7 @@ require "card_deck"
37
37
  # Expected errors
38
38
  class CardError < Exception; end
39
39
  class CardDeck::Card # Represents a card in the deck
40
- # Backup method for Card#value
40
+ # Value of the card
41
41
  def value
42
42
  return case @num
43
43
  when "Ace" then 1
@@ -80,7 +80,7 @@ class Hand # Creates an object that holds and can play cards. Interacts with Dec
80
80
  end
81
81
  # Allows you to see your cards.
82
82
  def view
83
- print "\tThese are your cards: "
83
+ print "\tThese are your cards: "
84
84
  @hand.each {|card| print "\t#{card.num}"}
85
85
  end
86
86
  alias inspect hand
@@ -1,4 +1,4 @@
1
- create_deck = proc {Deck.new true}
1
+ create_deck = proc {Deck.new jokers: true}
2
2
  deck = create_deck.call
3
3
  describe Deck do
4
4
  describe create_deck.call.cards.length do
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 99_game
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.pre.103
4
+ version: 3.1.0
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-02 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: card_deck
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.0'
27
27
  description: ! 'This is a text-based interpretation of the card game 99. Comes with
28
28
  the gem in the form of an executable. Make sure to read the rules in `99_game -h`
29
29
  before playing.
@@ -56,12 +56,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ! '>='
58
58
  - !ruby/object:Gem::Version
59
- version: 1.8.7
59
+ version: 1.9.2
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ! '>'
62
+ - - ! '>='
63
63
  - !ruby/object:Gem::Version
64
- version: 1.3.1
64
+ version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
67
  rubygems_version: 2.4.2