PlayRockPaperScissorsGame 2.8.9 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +2 -6
- data/docs/Code.md +2 -2
- data/docs/Comparing_Code.md +2 -2
- data/docs/_site/about.html +1 -1
- data/docs/_site/code.html +3 -3
- data/docs/_site/comparing_code.html +3 -3
- data/docs/_site/how_to_build.html +1 -1
- data/docs/_site/how_to_run.html +1 -1
- data/docs/_site/index.html +1 -1
- data/docs/_site/testing.html +1 -1
- data/js redex.js +4 -0
- data/lib/Constants.rb +4 -4
- data/lib/PrivateMethods.rb +2 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- metadata +2 -1
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9cd29ccfca95822d18853e439ecd29c4762b069
|
4
|
+
data.tar.gz: 70e3524e209afe6c2968379a4c9a2ec7b34dbc1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a28e509087b58980a7ecc131c1fdd118a52149d4f64288df1a3c63ad59db1df8f07eb2470389dbee917d416a81b4b338a62eb510fad2d32dfac737d8c0abd2a9
|
7
|
+
data.tar.gz: 7e5e653720b284b3df3d69f94a25755d72bb99d42217525adc6701223c270550807ed7f116ca83cd41b5ce82d5c1ff48099810346749ac05f31abe876a3258c7
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
_��?Ͷ��3dH��e�J�S&m����������_i|Tŏ���u)+3�x1�-}`��NI��T\AQQ�j|鲞n�?P��0^zW��6?�6G,�"IL��%5�x�f�Y��4��������e7_�S!��to��/���B��R���\�µ% |����uВOѺ{�i�[�H�.�h�B�7E���4���E�۵1��U����sKc��g�2�6E�����Od�S0�5���W�V�]Qq��cc�6r��
|
2
|
+
x?.|
|
data.tar.gz.sig
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
A
|
2
|
-
��
|
3
|
-
=���b�3�R�V�=,K�(�m�R��r
|
4
|
-
Ӡ�fKS��4��H��
|
5
|
-
UT����8z�L�
|
6
|
-
�/)v?kE�=I�ö�]|&4�M=�}+a��
|
1
|
+
NP��ȼ;��GG���"sf��ץ��єۂ���o1�Gm���`V��psQ��%C�6W�i�J�������Aڼ�*2�6��VPLY�^M�v��g�M����*&��{�}�;�m�����%Q<
|
2
|
+
,��ظ�q��o@��pr���R����|`�N���&�γ������^:)��u��1������Y��i�N���S�d0ҕ���')1�fA��ծ��� V�C��we��%�
|
data/docs/Code.md
CHANGED
@@ -35,7 +35,7 @@ Master Code
|
|
35
35
|
class PlayRockPaperScissorsGame
|
36
36
|
|
37
37
|
module RockPaperScissors
|
38
|
-
VERSION = "2.
|
38
|
+
VERSION = "2.9.0"
|
39
39
|
end
|
40
40
|
|
41
41
|
# import the colorize gem
|
@@ -141,7 +141,7 @@ class PlayRockPaperScissorsGame
|
|
141
141
|
def final_outcome(pl,co)
|
142
142
|
return :WIN if pl > co
|
143
143
|
return :LOSE if pl < co
|
144
|
-
# there will never be a tie
|
144
|
+
# there will never be a tie for the final outcome due to the code in the play() method
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|
data/docs/Comparing_Code.md
CHANGED
@@ -137,7 +137,7 @@ Subtlety is usually painted all over advanced ruby code. While this does make th
|
|
137
137
|
class PlayRockPaperScissorsGame
|
138
138
|
|
139
139
|
module RockPaperScissors
|
140
|
-
VERSION = "2.
|
140
|
+
VERSION = "2.9.0"
|
141
141
|
end
|
142
142
|
|
143
143
|
# import the colorize gem
|
@@ -243,7 +243,7 @@ class PlayRockPaperScissorsGame
|
|
243
243
|
def final_outcome(pl,co)
|
244
244
|
return :WIN if pl > co
|
245
245
|
return :LOSE if pl < co
|
246
|
-
# there will never be a tie
|
246
|
+
# there will never be a tie for the final outcome due to the code in the play() method
|
247
247
|
end
|
248
248
|
end
|
249
249
|
end
|
data/docs/_site/about.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/code.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
70
70
|
|
71
71
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
72
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.
|
72
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.9.0"</span>
|
73
73
|
<span class="k">end</span>
|
74
74
|
|
75
75
|
<span class="c1"># import the colorize gem</span>
|
@@ -175,7 +175,7 @@
|
|
175
175
|
<span class="k">def</span> <span class="nf">final_outcome</span><span class="p">(</span><span class="n">pl</span><span class="p">,</span><span class="n">co</span><span class="p">)</span>
|
176
176
|
<span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="n">pl</span> <span class="o">></span> <span class="n">co</span>
|
177
177
|
<span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="n">pl</span> <span class="o"><</span> <span class="n">co</span>
|
178
|
-
<span class="c1"># there will never be a tie
|
178
|
+
<span class="c1"># there will never be a tie for the final outcome due to the code in the play() method</span>
|
179
179
|
<span class="k">end</span>
|
180
180
|
<span class="k">end</span>
|
181
181
|
<span class="k">end</span>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
@@ -189,7 +189,7 @@
|
|
189
189
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
190
190
|
|
191
191
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
192
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.
|
192
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.9.0"</span>
|
193
193
|
<span class="k">end</span>
|
194
194
|
|
195
195
|
<span class="c1"># import the colorize gem</span>
|
@@ -295,7 +295,7 @@
|
|
295
295
|
<span class="k">def</span> <span class="nf">final_outcome</span><span class="p">(</span><span class="n">pl</span><span class="p">,</span><span class="n">co</span><span class="p">)</span>
|
296
296
|
<span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="n">pl</span> <span class="o">></span> <span class="n">co</span>
|
297
297
|
<span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="n">pl</span> <span class="o"><</span> <span class="n">co</span>
|
298
|
-
<span class="c1"># there will never be a tie
|
298
|
+
<span class="c1"># there will never be a tie for the final outcome due to the code in the play() method</span>
|
299
299
|
<span class="k">end</span>
|
300
300
|
<span class="k">end</span>
|
301
301
|
<span class="k">end</span>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/how_to_run.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/index.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/testing.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=194ff5f58ef99c57d32add4004dd12b84a31377f"/>
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
12
12
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/js redex.js
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
var phone_number_regex = /^(?!.*911.*\d{4})((\+?1[\/ ]?)?(?![\(\. -]?555.*)\( ?[2-9][0-9]{2} ?\) ?|(\+?1[\.\/ -])?[2-9][0-9]{2}[\.\/ -]?)(?!555.?01..)([2-9][0-9]{2})[\.\/ -]?([0-9]{4})$/ // javascript phone number regex
|
2
|
+
/*
|
3
|
+
* use http://regexr.com/ for testing regular expressions
|
4
|
+
*/
|
data/lib/Constants.rb
CHANGED
@@ -2,10 +2,10 @@ require "colorized_string"
|
|
2
2
|
ColorizedString.colors
|
3
3
|
ColorizedString.modes
|
4
4
|
module Constants
|
5
|
-
NTRY_TO_SYM = {
|
6
|
-
'p' => :PAPER,
|
7
|
-
'r' => :ROCK,
|
8
|
-
's' => :SCISSORS
|
5
|
+
NTRY_TO_SYM = { # define entry to symbol (key to value)
|
6
|
+
'p' => :PAPER , 'paper' => :PAPER ,
|
7
|
+
'r' => :ROCK , 'rock' => :ROCK ,
|
8
|
+
's' => :SCISSORS, 'scissors' => :SCISSORS
|
9
9
|
}
|
10
10
|
VALID_ENTRIES = NTRY_TO_SYM.keys # create valid entries
|
11
11
|
COMPUTER_CHOICES = NTRY_TO_SYM.values # define computer choices
|
data/lib/PrivateMethods.rb
CHANGED
@@ -31,7 +31,8 @@ module PrivateMethods
|
|
31
31
|
def final_outcome(pl,co)
|
32
32
|
return :WIN if pl > co
|
33
33
|
return :LOSE if pl < co
|
34
|
-
return :TIE if pl = co
|
34
|
+
# return :TIE if pl = co
|
35
|
+
# there will never be a tie for the final outcome due to the code in the play() method
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
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.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- exec/uninstall.sh
|
184
184
|
- exec/update.bat
|
185
185
|
- exec/update.sh
|
186
|
+
- js redex.js
|
186
187
|
- lib/Constants.rb
|
187
188
|
- lib/PrivateMethods.rb
|
188
189
|
- lib/rps/version.rb
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
cp�ri�#(Vy̭��o��~�
|
2
|
+
�Fa��.$MF�Ƚ.� ���6_Wy�S8�ZV��k_j*^�A���Re�/{�D �� ����'�T��Uړ
|