PlayRockPaperScissorsGame 2.7.6 → 2.7.7
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 +0 -0
- data/docs/Code.md +4 -6
- data/docs/Comparing_Code.md +15 -8
- data/docs/How_to_Build.md +1 -0
- data/docs/Testing.md +1 -0
- data/docs/_config.yml +2 -1
- data/docs/_includes/footer.html +4 -4
- data/docs/_site/Code.html +12 -14
- data/docs/_site/Comparing_Code.html +16 -13
- data/docs/_site/How_to_Build.html +6 -6
- data/docs/_site/Testing.html +6 -6
- data/docs/_site/about.html +6 -6
- data/docs/_site/how_to_run.html +6 -6
- data/docs/_site/index.html +7 -7
- data/docs/index.md +1 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -5
- metadata.gz.sig +0 -0
- data/docs/_site/script/bootstrap +0 -6
- data/docs/_site/script/cibuild +0 -6
- data/docs/_site/script/release +0 -42
- data/docs/_site/script/server +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc0756f65b3ae745eb63dd7c5f8f3a0ea0ea21a
|
4
|
+
data.tar.gz: 47e4ded395acfd7cd452cabe748d6cde254358a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce6022b6891e0970cfbc3335d8c6510498f8ca4c8181b1ea89161b1530f85ce20a672997910c535bc7e336c21153a2abc37d2089b6b94c34c017ce31d8ab9cc4
|
7
|
+
data.tar.gz: 369946bd2f1faffa5acdcd7538839a94a0c99ef6606b362103772cf3fe830844064fb1a6b2c09f7d44adddf1e97f07f7095991849744f13963195db91fe29215
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
title: Master Code - Play Rock Paper Scissors Game
|
4
|
-
permalink: /
|
4
|
+
permalink: /code.html
|
5
5
|
---
|
6
6
|
|
7
7
|
Master Code
|
@@ -9,18 +9,16 @@ Master Code
|
|
9
9
|
|
10
10
|
**The master code will look like this:**
|
11
11
|
|
12
|
-
> Note: the code is a
|
12
|
+
> Note: the code is a __`Ruby executable`__ and from my [RubyGem](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
13
13
|
|
14
14
|
[//]: # (`$ rps`)
|
15
15
|
[//]: # (`> rps`)
|
16
16
|
|
17
|
-
`% rps`
|
17
|
+
<!-- `% rps` -->
|
18
18
|
|
19
|
-
<!--
|
20
19
|
```
|
21
20
|
% rps
|
22
21
|
```
|
23
|
-
-->
|
24
22
|
|
25
23
|
[//]: # "start ruby"
|
26
24
|
```ruby
|
@@ -37,7 +35,7 @@ Master Code
|
|
37
35
|
class PlayRockPaperScissorsGame
|
38
36
|
|
39
37
|
module RockPaperScissors
|
40
|
-
VERSION = "2.7.
|
38
|
+
VERSION = "2.7.7"
|
41
39
|
end
|
42
40
|
|
43
41
|
# import the colorize gem
|
data/docs/Comparing_Code.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
title: Comparing Code - Play Rock Paper Scissors Game
|
4
|
-
permalink: /
|
4
|
+
permalink: /comparing_code.html
|
5
5
|
---
|
6
6
|
|
7
7
|
# Comparing Beginner's RPS Code to Advanced RPS Code
|
@@ -32,7 +32,7 @@ permalink: /Comparing_Code.html
|
|
32
32
|
|
33
33
|
+ Unorganized
|
34
34
|
- Lacks modularization
|
35
|
-
* Many `if`
|
35
|
+
* Many `if`/`elsif`/`else` statements
|
36
36
|
|
37
37
|
### Beginner's Analysis
|
38
38
|
|
@@ -50,7 +50,11 @@ In this particular case, the advanced code is longer and more confusing, though
|
|
50
50
|
|
51
51
|
### What Beginner's Code Looks Like
|
52
52
|
|
53
|
-
`% ruby beginner-rps.rb`
|
53
|
+
[//]: # "`% ruby beginner-rps.rb`"
|
54
|
+
|
55
|
+
```bash
|
56
|
+
% ruby beginner-rps.rb
|
57
|
+
```
|
54
58
|
|
55
59
|
```ruby
|
56
60
|
options = ["rock", "paper", "scissors"]
|
@@ -103,19 +107,23 @@ An advanced coder's code could be longer or shorter than a beginner's code.
|
|
103
107
|
|
104
108
|
Advanced code usually has seldom repetition and more subtle programming.
|
105
109
|
|
106
|
-
Advanced coders tend to shy away from many `if`, `elsif`, & `else` statements. This is primarily due to the way an advanced coder thinks. One might replace multiple `elsif`s with a `case` statement --adding more structure and organization to the code
|
110
|
+
Advanced coders tend to shy away from many `if`, `elsif`, & `else` statements. This is primarily due to the way an advanced coder thinks. One might replace multiple `elsif`s with a `case` statement --adding more structure and organization to the code--.
|
107
111
|
|
108
112
|
Subtlety is usually painted all over advanced ruby code. While this does make the code harder to understand, it certainly adds more structure professionalism to the code.
|
109
113
|
|
110
114
|
### What Advanced Code Looks Like
|
111
115
|
|
112
|
-
`% ruby advanced-rps.rb`
|
116
|
+
[//]: # (`% ruby advanced-rps.rb`)
|
117
|
+
|
118
|
+
```shell
|
119
|
+
% ruby advanced-rps.rb
|
120
|
+
```
|
113
121
|
|
114
122
|
```ruby
|
115
123
|
class PlayRockPaperScissorsGame
|
116
124
|
|
117
125
|
module RockPaperScissors
|
118
|
-
VERSION = "2.7.
|
126
|
+
VERSION = "2.7.7"
|
119
127
|
end
|
120
128
|
|
121
129
|
# import colorize gem
|
@@ -204,7 +212,7 @@ class PlayRockPaperScissorsGame
|
|
204
212
|
if Constants::NTRY_TO_SYM.key?(choice) # if the choice is one of the keys in NTRY_TO_SYM
|
205
213
|
return Constants::NTRY_TO_SYM[choice] # return their choice to be outputed in the play() method
|
206
214
|
elsif choice != Constants::VALID_ENTRIES # else if the the choice is not one of the valid entries
|
207
|
-
puts ColorizedString["That entry is invalid. Please re-enter."].colorize(:red) # output
|
215
|
+
puts ColorizedString["That entry is invalid. Please re-enter."].colorize(:red) # output invalid entry message
|
208
216
|
else
|
209
217
|
return nil
|
210
218
|
end
|
@@ -230,4 +238,3 @@ end
|
|
230
238
|
|
231
239
|
PlayRockPaperScissorsGame.new.play(2)
|
232
240
|
```
|
233
|
-
|
data/docs/How_to_Build.md
CHANGED
data/docs/Testing.md
CHANGED
data/docs/_config.yml
CHANGED
@@ -17,9 +17,10 @@ exclude:
|
|
17
17
|
- jekyll-theme-cayman.gemspec
|
18
18
|
- thumbnail.png
|
19
19
|
- LICENSE
|
20
|
+
- script
|
20
21
|
gems:
|
21
22
|
- github-pages
|
22
23
|
# Sass/SCSS
|
23
24
|
sass:
|
24
25
|
sass_dir: _sass
|
25
|
-
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
|
26
|
+
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
|
data/docs/_includes/footer.html
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
<tr>
|
6
6
|
<td><a href="./">Home</a></td>
|
7
7
|
<td><a href="{{ domain }}how_to_run">How to Run</a></td>
|
8
|
-
<td><a href="{{ domain }}
|
9
|
-
<td><a href="{{ domain }}
|
10
|
-
<td><a href="{{ domain }}
|
11
|
-
<td><a href="{{ domain }}
|
8
|
+
<td><a href="{{ domain }}code">Master Code</a></td>
|
9
|
+
<td><a href="{{ domain }}comparing_code">Comparing Code</a></td>
|
10
|
+
<td><a href="{{ domain }}testing">How to Test</a></td>
|
11
|
+
<td><a href="{{ domain }}how_to_build">How to Build</a></td>
|
12
12
|
<td><a href="{{ domain }}about">About</a></td>
|
13
13
|
</tr>
|
14
14
|
</table>
|
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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -48,16 +48,14 @@
|
|
48
48
|
<p><strong>The master code will look like this:</strong></p>
|
49
49
|
|
50
50
|
<blockquote>
|
51
|
-
<p>Note: the code is a <strong>Ruby executable</strong> and from my <a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">RubyGem</a></p>
|
51
|
+
<p>Note: the code is a <strong><code class="highlighter-rouge">Ruby executable</code></strong> and from my <a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">RubyGem</a></p>
|
52
52
|
</blockquote>
|
53
53
|
|
54
|
-
|
54
|
+
<!-- `% rps` -->
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
```
|
60
|
-
-->
|
56
|
+
<div class="highlighter-rouge"><pre class="highlight"><code>% rps
|
57
|
+
</code></pre>
|
58
|
+
</div>
|
61
59
|
|
62
60
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="c1">#!/usr/bin/env ruby</span>
|
63
61
|
|
@@ -72,7 +70,7 @@
|
|
72
70
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
73
71
|
|
74
72
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
75
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.
|
73
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.7"</span>
|
76
74
|
<span class="k">end</span>
|
77
75
|
|
78
76
|
<span class="c1"># import the colorize gem</span>
|
@@ -199,10 +197,10 @@
|
|
199
197
|
<tr>
|
200
198
|
<td><a href="./">Home</a></td>
|
201
199
|
<td><a href="how_to_run">How to Run</a></td>
|
202
|
-
<td><a href="
|
203
|
-
<td><a href="
|
204
|
-
<td><a href="
|
205
|
-
<td><a href="
|
200
|
+
<td><a href="code">Master Code</a></td>
|
201
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
202
|
+
<td><a href="testing">How to Test</a></td>
|
203
|
+
<td><a href="how_to_build">How to Build</a></td>
|
206
204
|
<td><a href="about">About</a></td>
|
207
205
|
</tr>
|
208
206
|
</table>
|
@@ -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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<ul>
|
86
86
|
<li>Unorganized</li>
|
87
87
|
<li>Lacks modularization</li>
|
88
|
-
<li>Many <code class="highlighter-rouge">if</code>
|
88
|
+
<li>Many <code class="highlighter-rouge">if</code>/<code class="highlighter-rouge">elsif</code>/<code class="highlighter-rouge">else</code> statements</li>
|
89
89
|
</ul>
|
90
90
|
|
91
91
|
<h3 id="beginners-analysis">Beginner’s Analysis</h3>
|
@@ -104,7 +104,9 @@
|
|
104
104
|
|
105
105
|
<h3 id="what-beginners-code-looks-like">What Beginner’s Code Looks Like</h3>
|
106
106
|
|
107
|
-
<
|
107
|
+
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">% </span>ruby beginner-rps.rb
|
108
|
+
</code></pre>
|
109
|
+
</div>
|
108
110
|
|
109
111
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="n">options</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"rock"</span><span class="p">,</span> <span class="s2">"paper"</span><span class="p">,</span> <span class="s2">"scissors"</span><span class="p">]</span>
|
110
112
|
<span class="n">computer_choice</span> <span class="o">=</span> <span class="n">options</span><span class="p">[</span><span class="nb">rand</span><span class="p">(</span><span class="n">options</span><span class="p">.</span><span class="nf">length</span><span class="p">)]</span>
|
@@ -161,18 +163,20 @@
|
|
161
163
|
|
162
164
|
<p>Advanced code usually has seldom repetition and more subtle programming.</p>
|
163
165
|
|
164
|
-
<p>Advanced coders tend to shy away from many <code class="highlighter-rouge">if</code>, <code class="highlighter-rouge">elsif</code>, & <code class="highlighter-rouge">else</code> statements. This is primarily due to the way an advanced coder thinks. One might replace multiple <code class="highlighter-rouge">elsif</code>s with a <code class="highlighter-rouge">case</code> statement –adding more structure and organization to the code
|
166
|
+
<p>Advanced coders tend to shy away from many <code class="highlighter-rouge">if</code>, <code class="highlighter-rouge">elsif</code>, & <code class="highlighter-rouge">else</code> statements. This is primarily due to the way an advanced coder thinks. One might replace multiple <code class="highlighter-rouge">elsif</code>s with a <code class="highlighter-rouge">case</code> statement –adding more structure and organization to the code–.</p>
|
165
167
|
|
166
168
|
<p>Subtlety is usually painted all over advanced ruby code. While this does make the code harder to understand, it certainly adds more structure professionalism to the code.</p>
|
167
169
|
|
168
170
|
<h3 id="what-advanced-code-looks-like">What Advanced Code Looks Like</h3>
|
169
171
|
|
170
|
-
<
|
172
|
+
<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">% </span>ruby advanced-rps.rb
|
173
|
+
</code></pre>
|
174
|
+
</div>
|
171
175
|
|
172
176
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
173
177
|
|
174
178
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
175
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.
|
179
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.7"</span>
|
176
180
|
<span class="k">end</span>
|
177
181
|
|
178
182
|
<span class="c1"># import colorize gem</span>
|
@@ -261,7 +265,7 @@
|
|
261
265
|
<span class="k">if</span> <span class="no">Constants</span><span class="o">::</span><span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">key?</span><span class="p">(</span><span class="n">choice</span><span class="p">)</span> <span class="c1"># if the choice is one of the keys in NTRY_TO_SYM</span>
|
262
266
|
<span class="k">return</span> <span class="no">Constants</span><span class="o">::</span><span class="no">NTRY_TO_SYM</span><span class="p">[</span><span class="n">choice</span><span class="p">]</span> <span class="c1"># return their choice to be outputed in the play() method</span>
|
263
267
|
<span class="k">elsif</span> <span class="n">choice</span> <span class="o">!=</span> <span class="no">Constants</span><span class="o">::</span><span class="no">VALID_ENTRIES</span> <span class="c1"># else if the the choice is not one of the valid entries</span>
|
264
|
-
<span class="nb">puts</span> <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"That entry is invalid. Please re-enter."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:red</span><span class="p">)</span> <span class="c1"># output
|
268
|
+
<span class="nb">puts</span> <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"That entry is invalid. Please re-enter."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:red</span><span class="p">)</span> <span class="c1"># output invalid entry message</span>
|
265
269
|
<span class="k">else</span>
|
266
270
|
<span class="k">return</span> <span class="kp">nil</span>
|
267
271
|
<span class="k">end</span>
|
@@ -289,7 +293,6 @@
|
|
289
293
|
</code></pre>
|
290
294
|
</div>
|
291
295
|
|
292
|
-
|
293
296
|
|
294
297
|
<footer class="site-footer">
|
295
298
|
|
@@ -298,10 +301,10 @@
|
|
298
301
|
<tr>
|
299
302
|
<td><a href="./">Home</a></td>
|
300
303
|
<td><a href="how_to_run">How to Run</a></td>
|
301
|
-
<td><a href="
|
302
|
-
<td><a href="
|
303
|
-
<td><a href="
|
304
|
-
<td><a href="
|
304
|
+
<td><a href="code">Master Code</a></td>
|
305
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
306
|
+
<td><a href="testing">How to Test</a></td>
|
307
|
+
<td><a href="how_to_build">How to Build</a></td>
|
305
308
|
<td><a href="about">About</a></td>
|
306
309
|
</tr>
|
307
310
|
</table>
|
@@ -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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -76,10 +76,10 @@
|
|
76
76
|
<tr>
|
77
77
|
<td><a href="./">Home</a></td>
|
78
78
|
<td><a href="how_to_run">How to Run</a></td>
|
79
|
-
<td><a href="
|
80
|
-
<td><a href="
|
81
|
-
<td><a href="
|
82
|
-
<td><a href="
|
79
|
+
<td><a href="code">Master Code</a></td>
|
80
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
81
|
+
<td><a href="testing">How to Test</a></td>
|
82
|
+
<td><a href="how_to_build">How to Build</a></td>
|
83
83
|
<td><a href="about">About</a></td>
|
84
84
|
</tr>
|
85
85
|
</table>
|
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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -69,10 +69,10 @@
|
|
69
69
|
<tr>
|
70
70
|
<td><a href="./">Home</a></td>
|
71
71
|
<td><a href="how_to_run">How to Run</a></td>
|
72
|
-
<td><a href="
|
73
|
-
<td><a href="
|
74
|
-
<td><a href="
|
75
|
-
<td><a href="
|
72
|
+
<td><a href="code">Master Code</a></td>
|
73
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
74
|
+
<td><a href="testing">How to Test</a></td>
|
75
|
+
<td><a href="how_to_build">How to Build</a></td>
|
76
76
|
<td><a href="about">About</a></td>
|
77
77
|
</tr>
|
78
78
|
</table>
|
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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -76,10 +76,10 @@ I have decided to code a Ruby-programmed RPS game that uses full CLI<sup>2</sup>
|
|
76
76
|
<tr>
|
77
77
|
<td><a href="./">Home</a></td>
|
78
78
|
<td><a href="how_to_run">How to Run</a></td>
|
79
|
-
<td><a href="
|
80
|
-
<td><a href="
|
81
|
-
<td><a href="
|
82
|
-
<td><a href="
|
79
|
+
<td><a href="code">Master Code</a></td>
|
80
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
81
|
+
<td><a href="testing">How to Test</a></td>
|
82
|
+
<td><a href="how_to_build">How to Build</a></td>
|
83
83
|
<td><a href="about">About</a></td>
|
84
84
|
</tr>
|
85
85
|
</table>
|
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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -127,10 +127,10 @@
|
|
127
127
|
<tr>
|
128
128
|
<td><a href="./">Home</a></td>
|
129
129
|
<td><a href="how_to_run">How to Run</a></td>
|
130
|
-
<td><a href="
|
131
|
-
<td><a href="
|
132
|
-
<td><a href="
|
133
|
-
<td><a href="
|
130
|
+
<td><a href="code">Master Code</a></td>
|
131
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
132
|
+
<td><a href="testing">How to Test</a></td>
|
133
|
+
<td><a href="how_to_build">How to Build</a></td>
|
134
134
|
<td><a href="about">About</a></td>
|
135
135
|
</tr>
|
136
136
|
</table>
|
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=da1d8208e0befd1bb912bc0b2c4852063e7def9a"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
28
|
|
29
29
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="
|
30
|
+
<a href="" class="btn">Report a Bug</a>
|
31
31
|
|
32
32
|
|
33
33
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<p>My <code class="highlighter-rouge">Play Rock Paper Scissors Game</code> is programmed in the Ruby programming language.</p>
|
47
47
|
|
48
|
-
<p>Rock paper scissors is a classic game created many years ago. I incorporated this game with the <code class="highlighter-rouge">Ruby</code> programming language.</p>
|
48
|
+
<p>Rock paper scissors is a classic game that was created many years ago. I incorporated this game with the <code class="highlighter-rouge">Ruby</code> programming language.</p>
|
49
49
|
|
50
50
|
<p><strong>I hope you will enjoy it! :]</strong></p>
|
51
51
|
|
@@ -57,10 +57,10 @@
|
|
57
57
|
<tr>
|
58
58
|
<td><a href="./">Home</a></td>
|
59
59
|
<td><a href="how_to_run">How to Run</a></td>
|
60
|
-
<td><a href="
|
61
|
-
<td><a href="
|
62
|
-
<td><a href="
|
63
|
-
<td><a href="
|
60
|
+
<td><a href="code">Master Code</a></td>
|
61
|
+
<td><a href="comparing_code">Comparing Code</a></td>
|
62
|
+
<td><a href="testing">How to Test</a></td>
|
63
|
+
<td><a href="how_to_build">How to Build</a></td>
|
64
64
|
<td><a href="about">About</a></td>
|
65
65
|
</tr>
|
66
66
|
</table>
|
data/docs/index.md
CHANGED
@@ -8,6 +8,6 @@ permalink: /index.html
|
|
8
8
|
|
9
9
|
My `Play Rock Paper Scissors Game` is programmed in the Ruby programming language.
|
10
10
|
|
11
|
-
Rock paper scissors is a classic game created many years ago. I incorporated this game with the `Ruby` programming language.
|
11
|
+
Rock paper scissors is a classic game that was created many years ago. I incorporated this game with the `Ruby` programming language.
|
12
12
|
|
13
13
|
**I hope you will enjoy it! :\]**
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
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.7.
|
4
|
+
version: 2.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -156,10 +156,6 @@ files:
|
|
156
156
|
- docs/_site/assets/js/pace.min.js
|
157
157
|
- docs/_site/how_to_run.html
|
158
158
|
- docs/_site/index.html
|
159
|
-
- docs/_site/script/bootstrap
|
160
|
-
- docs/_site/script/cibuild
|
161
|
-
- docs/_site/script/release
|
162
|
-
- docs/_site/script/server
|
163
159
|
- docs/about.md
|
164
160
|
- docs/assets/css/pace.css
|
165
161
|
- docs/assets/css/style.scss
|
metadata.gz.sig
CHANGED
Binary file
|
data/docs/_site/script/bootstrap
DELETED
data/docs/_site/script/cibuild
DELETED
data/docs/_site/script/release
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# Tag and push a release.
|
3
|
-
|
4
|
-
set -e
|
5
|
-
|
6
|
-
# Make sure we're in the project root.
|
7
|
-
|
8
|
-
cd $(dirname "$0")/..
|
9
|
-
|
10
|
-
# Make sure the darn thing works
|
11
|
-
|
12
|
-
bundle update
|
13
|
-
|
14
|
-
# Build a new gem archive.
|
15
|
-
|
16
|
-
rm -rf jekyll-theme-cayman-*.gem
|
17
|
-
gem build -q jekyll-theme-cayman.gemspec
|
18
|
-
|
19
|
-
# Make sure we're on the master branch.
|
20
|
-
|
21
|
-
(git branch | grep -q 'master') || {
|
22
|
-
echo "Only release from the master branch."
|
23
|
-
exit 1
|
24
|
-
}
|
25
|
-
|
26
|
-
# Figure out what version we're releasing.
|
27
|
-
|
28
|
-
tag=v`ls jekyll-theme-cayman-*.gem | sed 's/^jekyll-theme-cayman-\(.*\)\.gem$/\1/'`
|
29
|
-
|
30
|
-
# Make sure we haven't released this version before.
|
31
|
-
|
32
|
-
git fetch -t origin
|
33
|
-
|
34
|
-
(git tag -l | grep -q "$tag") && {
|
35
|
-
echo "Whoops, there's already a '${tag}' tag."
|
36
|
-
exit 1
|
37
|
-
}
|
38
|
-
|
39
|
-
# Tag it and bag it.
|
40
|
-
|
41
|
-
gem push jekyll-theme-cayman-*.gem && git tag "$tag" &&
|
42
|
-
git push origin master && git push origin "$tag"
|
data/docs/_site/script/server
DELETED