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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 205cd88c3b90457f1b3a5b4c5581f1c236b84931
4
- data.tar.gz: 14d2c641fa43582fea976913675330d033c7fc7b
3
+ metadata.gz: d9cd29ccfca95822d18853e439ecd29c4762b069
4
+ data.tar.gz: 70e3524e209afe6c2968379a4c9a2ec7b34dbc1d
5
5
  SHA512:
6
- metadata.gz: 30c714cd6d4f04fb8ab775634409837c40de0f74f0543c2f94ccd4e39289621e227bfc5d765b18ed238d37db64d344495b2f72213630641c9d1f6bef97cfeaf5
7
- data.tar.gz: 91392a8c7183534b0c05c0b60fc4fd4a3813ce935c93c3c754c5859f89d01a9875b57fcfb28b364b6d8add0f2fbef7ef6647d6053ff4bb4b2b6a573d0bb1fa68
6
+ metadata.gz: a28e509087b58980a7ecc131c1fdd118a52149d4f64288df1a3c63ad59db1df8f07eb2470389dbee917d416a81b4b338a62eb510fad2d32dfac737d8c0abd2a9
7
+ data.tar.gz: 7e5e653720b284b3df3d69f94a25755d72bb99d42217525adc6701223c270550807ed7f116ca83cd41b5ce82d5c1ff48099810346749ac05f31abe876a3258c7
@@ -1 +1,2 @@
1
- Ez�mfRlQ��f�}�����icg��9�!��zw�����j ����+��!r}�\|\�8Ő�&���-C o8Uɑ�a�Sk���@P�ɝ�l?cW�Z#Lƣ������|LmW"7jx��@8 Dm��ȟ�1��n´�3T$��ǹ�B���W�U��1yhMT��<�h1Gk9!Xq�Q�<z��ʑ��=�o���׬ttdvV�@��>iȖ�ͷS"b a0��1i�����~ "��0��
1
+ _��?Ͷ��3dH��eJS&m����������_i|Tŏ���u)+3x1�-}`��NI��T\AQQj|鲞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��g26E�����OdS05���WV]Qq��cc6r��
2
+ x?.|
data.tar.gz.sig CHANGED
@@ -1,6 +1,2 @@
1
- A�;��
2
- ��5��Qd��5{#����#��D�); Sセ�6�K��"1�ii�� ���!I3uL�sX�
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��iN���Sd0ҕ���')1�fA��ծ��� VC��we��%�
@@ -35,7 +35,7 @@ Master Code
35
35
  class PlayRockPaperScissorsGame
36
36
 
37
37
  module RockPaperScissors
38
- VERSION = "2.8.9"
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 fore the final outcome due to the code in the play() method
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
@@ -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.8.9"
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 fore the final outcome due to the code in the play() method
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
@@ -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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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"/>
@@ -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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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.8.9"</span>
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">&gt;</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">&lt;</span> <span class="n">co</span>
178
- <span class="c1"># there will never be a tie fore the final outcome due to the code in the play() method</span>
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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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.8.9"</span>
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">&gt;</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">&lt;</span> <span class="n">co</span>
298
- <span class="c1"># there will never be a tie fore the final outcome due to the code in the play() method</span>
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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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"/>
@@ -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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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"/>
@@ -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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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"/>
@@ -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=8195008b66ecb2a21909413ab088f826f6525ede"/>
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"/>
@@ -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
+ */
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RockPaperScissors
2
- VERSION = "2.8.9"
2
+ VERSION = "2.9.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "PlayRockPaperScissorsGame"
3
- spec.version = "2.8.9"
3
+ spec.version = "2.9.0"
4
4
  spec.date = "2017-08-31"
5
5
  spec.summary = "A Rock Paper Scissors Ruby Gem"
6
6
  spec.description = <<-EOF
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.8.9
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
- F�`P����޵�5���7>yGnr�V�,�yp���n���8��/n�I��˻� �w��>�c�[��$��e�
2
- \`�{��I.�(��S��#?M��5�^��P�ސeY���T��3��XL6bCS�͉tcV�1��]�S{�X�;iH� ��}���D�`����_�ΑOXv�=vB�c<4�<j.1�"4Tc.i�3�z�z�
1
+ cpri�#(Vy̭��o��~�
2
+ �Fa��.$MF�Ƚ.� ��޶�6_ WyS8ZV��k_j*^�A���Re�/{�D �� ����'T��Uړ