PlayRockPaperScissorsGame 2.2.2 → 2.2.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9096c4f1cfd8d5e5b0df101ed39ca4a9f84bc16d
4
- data.tar.gz: 0b06fa41fa4322237eb5519c2aa96e2b6736d5a2
3
+ metadata.gz: 936027de91c13edfc80fe800087739bef31d2bf0
4
+ data.tar.gz: e3ffaeb8745823c3063c39c30a0dbc24d3107516
5
5
  SHA512:
6
- metadata.gz: 22b91af2e56c563c3cc6bc78da81ecb40a988404004c17718262e79212100abb7675cea79352fbb0a3f6e828561686bb1863996de1431fad05e601f9f6b71173
7
- data.tar.gz: c2b80d23c00c460e8596df6891dfdd62740ce46586e006ef97c90c87a6c08a87885d0c3425a4dc091f5a4472a46b6b28bf79fea0fccd42a27e200d23bb3cc366
6
+ metadata.gz: 5089d16e2900dcbdcd36c0dd6ab22dcb7fcf1adddd1f08e7dd648078ca73507a465faa5502a52e36232c5a880dde48492b1c7721c9d860eb8eabb9db050acaca
7
+ data.tar.gz: d60cf2a95c5cf3d029e475a645a745e08ebad7b9fb38ca9c5f5a90efdc18f8947b14ca10e06f7aa4b985665b1bb6a36695aeb0aad3ef2c051fba032d16ade806
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -21,7 +21,7 @@ class PlayRockPaperScissorsGame
21
21
  VALID_ENTRIES = NTRY_TO_SYM.keys
22
22
  COMPUTER_CHOICES = NTRY_TO_SYM.values
23
23
  WINNERS = [[:SCISSORS, :PAPER], [:PAPER, :ROCK], [:ROCK, :SCISSORS]] # format: player choice, computer choice
24
- LOSERS = WINNERS.map { |i,j| [j,i] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
24
+ LOSERS = WINNERS.map { |i,j| [j,i] } # this will take the original `WINNERS` array and flip the symbols, thus returning a loss for the user/player
25
25
  INIT_STRINGS = ["You are about to enter a rock-paper-scissors best of 3 match.", "Press the return/enter key to continue...", ""]
26
26
  end
27
27
 
@@ -88,7 +88,7 @@ class PlayRockPaperScissorsGame
88
88
  return :LOSE if Constants::LOSERS.include?(plays)
89
89
  return :TIE if !:WIN | !:LOSE
90
90
  end
91
- def final_outcome(pl, co)
91
+ def final_outcome(pl,co)
92
92
  return :WIN if pl > co
93
93
  return :LOSE if pl < co
94
94
  return :TIE if pl = co
@@ -1,3 +1,3 @@
1
1
  module PlayRockPaperScissorsGame
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "PlayRockPaperScissorsGame"
3
- spec.version = "2.2.2"
4
- spec.date = "2017-04-03"
3
+ spec.version = "2.2.3"
4
+ spec.date = "2017-04-04"
5
5
  spec.summary = "A Rock Paper Scissors Ruby Gem"
6
6
  spec.description = <<-EOF
7
7
  A Ruby-programmed rock paper scissors game.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PlayRockPaperScissorsGame
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318
@@ -30,7 +30,7 @@ cert_chain:
30
30
  ft+uhriUZSVDBJRLSlrQEH2f0866a9dA4oUmvvFU46Mh6pozDjOcLJIp/tCnbVOc
31
31
  HSdXPrjfOoDbhBPH/4wUd5P0rDoNKN1hxH4SzA==
32
32
  -----END CERTIFICATE-----
33
- date: 2017-04-03 00:00:00.000000000 Z
33
+ date: 2017-04-04 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: bundler
metadata.gz.sig CHANGED
Binary file