PlayRockPaperScissorsGame 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/PlayRockPaperScissorsGame +2 -2
- data/bin/rps +2 -2
- data/lib/ref/Constants.rb +1 -0
- data/lib/ref/PrivateVars.rb +1 -1
- data/rps.gemspec +1 -1
- data/test/test_rps.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 522a2ac5460cb0477c5124a710d03bb775132c1b
|
4
|
+
data.tar.gz: ef000b4089ac7d53e1fec806ba5978695ebb4344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf338ac716743a57b7c248b561bb8f5aa8897037f0cf0d5de3468c1e59e8f87d68c2389f16c26a9b845f58ec9116c9d9da847dd19416f5004d65855efb6081fd
|
7
|
+
data.tar.gz: fef5b3b6ad343e52d708a6e3d83bee8d6aedbca90a21f552394960705432314560e60d102341eb808fee3cd62fc271733b83474da76dd0460d74a1fbe23524a2
|
@@ -11,7 +11,7 @@
|
|
11
11
|
class PlayRockPaperScissorsGame
|
12
12
|
|
13
13
|
class RPS
|
14
|
-
|
14
|
+
protected;
|
15
15
|
module Constants
|
16
16
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
17
17
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
@@ -66,7 +66,7 @@ class PlayRockPaperScissorsGame
|
|
66
66
|
end;
|
67
67
|
gets;
|
68
68
|
end;
|
69
|
-
private
|
69
|
+
private;
|
70
70
|
module PrivateVars
|
71
71
|
class << self
|
72
72
|
def player_choice
|
data/bin/rps
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
class PlayRockPaperScissorsGame
|
12
12
|
|
13
13
|
class RPS
|
14
|
-
|
14
|
+
protected;
|
15
15
|
module Constants
|
16
16
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
17
17
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
@@ -66,7 +66,7 @@ class PlayRockPaperScissorsGame
|
|
66
66
|
end;
|
67
67
|
gets;
|
68
68
|
end;
|
69
|
-
private
|
69
|
+
private;
|
70
70
|
module PrivateVars
|
71
71
|
class << self
|
72
72
|
def player_choice
|
data/lib/ref/Constants.rb
CHANGED
data/lib/ref/PrivateVars.rb
CHANGED
data/rps.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "PlayRockPaperScissorsGame"
|
3
|
-
spec.version = "1.4.
|
3
|
+
spec.version = "1.4.3"
|
4
4
|
spec.date = "2017-03-30"
|
5
5
|
spec.summary = "A Rock Paper Scissors Ruby Gem"
|
6
6
|
spec.description = "A Ruby-programmed rock paper scissors game. To install: gem install PlayRockPaperScissorsGame; To run: rps; or: PlayRockPaperScissorsGame"
|
data/test/test_rps.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
class Test
|
10
10
|
|
11
11
|
class Rake < Test
|
12
|
-
|
12
|
+
protected;
|
13
13
|
module Constants
|
14
14
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
15
15
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
@@ -64,7 +64,7 @@ class Test
|
|
64
64
|
end;
|
65
65
|
gets;
|
66
66
|
end;
|
67
|
-
private
|
67
|
+
private;
|
68
68
|
module PrivateVars
|
69
69
|
class << self
|
70
70
|
def player_choice
|