PlayRockPaperScissorsGame 1.7.4 → 1.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fce8c420198c19a1b5cc1bb1326ab45e88064f1
4
- data.tar.gz: 17cd148ee059571d6aae118dc1e76c6e61ba26fa
3
+ metadata.gz: 218a89fd77653624848eb49bfebc7a5b02f01eda
4
+ data.tar.gz: d789869331c6f7a0f52fa198c00e8612cc78ee9c
5
5
  SHA512:
6
- metadata.gz: f41bf9cf1afafa4c482a68c4343eb8074a04a29b50570454f735cea9c2fc215a616d90bcef458822253410fdf2fe37a422bd70258caa1de19e7d38b7858fea3a
7
- data.tar.gz: 7e6e7e3ad9712f1d32c18ca3144c80f17cec9dda3c60444f227086f22c386f8d9e41ccc5eb97c73b51b5c84e0645ff1726bedb9bd2732710c44c14b279da8428
6
+ metadata.gz: ca9d04e4f87633906cb21dde2fe75b56e50239a629344dd93bf849938b8dbb41111fb44333089b3f0b003f159ee7a88a01b954cdd7cdb11f978b843ff9dc7087
7
+ data.tar.gz: de634187bc937eb8b0a38bfc6553d62cf270d6483516781cfe6d1b11ff3da8239cfd91fc4295f10a0e0bf241e0ed2d3b5589ca2594d71413181e4f2e9ffc8d71
@@ -16,6 +16,7 @@ class PlayRockPaperScissorsGame
16
16
  ColorizedString.modes;
17
17
 
18
18
  module Constants
19
+ protected;
19
20
  NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
20
21
  VALID_ENTRIES = NTRY_TO_SYM.keys;
21
22
  COMPUTER_CHOICES = NTRY_TO_SYM.values;
@@ -69,6 +70,7 @@ class PlayRockPaperScissorsGame
69
70
  gets;
70
71
  end;
71
72
  module PrivateMethods
73
+ private;
72
74
  class << self
73
75
  def player_choice
74
76
  loop do
data/bin/rps CHANGED
@@ -16,6 +16,7 @@ class PlayRockPaperScissorsGame
16
16
  ColorizedString.modes;
17
17
 
18
18
  module Constants
19
+ protected;
19
20
  NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
20
21
  VALID_ENTRIES = NTRY_TO_SYM.keys;
21
22
  COMPUTER_CHOICES = NTRY_TO_SYM.values;
@@ -69,6 +70,7 @@ class PlayRockPaperScissorsGame
69
70
  gets;
70
71
  end;
71
72
  module PrivateMethods
73
+ private;
72
74
  class << self
73
75
  def player_choice
74
76
  loop do
@@ -2,6 +2,7 @@ require "colorized_string";
2
2
  ColorizedString.colors;
3
3
  ColorizedString.modes;
4
4
  module Constants
5
+ protected;
5
6
  NTRY_TO_SYM = {
6
7
  'p' => :PAPER,
7
8
  'r' => :ROCK,
@@ -2,6 +2,7 @@ require "colorized_string";
2
2
  ColorizedString.colors;
3
3
  ColorizedString.modes;
4
4
  module PrivateMethods
5
+ private;
5
6
  class << self
6
7
  def player_choice
7
8
  loop do
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "PlayRockPaperScissorsGame"
3
- spec.version = "1.7.4"
3
+ spec.version = "1.7.5"
4
4
  spec.date = "2017-04-01"
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; For issues: https://github.com/bag3318/RockPaperScissors/issues"
@@ -13,6 +13,7 @@ class RakeTest
13
13
  ColorizedString.modes;
14
14
 
15
15
  module Constants
16
+ protected;
16
17
  NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
17
18
  VALID_ENTRIES = NTRY_TO_SYM.keys;
18
19
  COMPUTER_CHOICES = NTRY_TO_SYM.values;
@@ -65,7 +66,9 @@ class RakeTest
65
66
  end;
66
67
  gets;
67
68
  end;
69
+ private
68
70
  module PrivateMethods
71
+ private;
69
72
  class << self
70
73
  def player_choice
71
74
  loop do
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: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318