PlayRo2kPaperScissorsGame 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +2 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +7 -0
  5. data/Gemfile +11 -0
  6. data/LICENSE +21 -0
  7. data/README.md +38 -0
  8. data/Rakefile +17 -0
  9. data/bin/PlayRockPaperScissorsGame +101 -0
  10. data/bin/rps +101 -0
  11. data/certs/gem-public_cert.pem +21 -0
  12. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/jekyll-theme-cayman.scssc +0 -0
  13. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/normalize.scssc +0 -0
  14. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/rouge-github.scssc +0 -0
  15. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/variables.scssc +0 -0
  16. data/docs/CODE_OF_CONDUCT.md +84 -0
  17. data/docs/CONTRIBUTING.md +43 -0
  18. data/docs/Gemfile +4 -0
  19. data/docs/LICENSE +116 -0
  20. data/docs/Testing.md +24 -0
  21. data/docs/_config.yml +11 -0
  22. data/docs/_layouts/default.html +48 -0
  23. data/docs/_sass/jekyll-theme-cayman.scss +345 -0
  24. data/docs/_sass/normalize.scss +424 -0
  25. data/docs/_sass/rouge-github.scss +209 -0
  26. data/docs/_sass/variables.scss +23 -0
  27. data/docs/_site/CODE_OF_CONDUCT.html +127 -0
  28. data/docs/_site/CONTRIBUTING.html +86 -0
  29. data/docs/_site/Testing.html +68 -0
  30. data/docs/_site/assets/css/style.css +318 -0
  31. data/docs/_site/index.html +126 -0
  32. data/docs/_site/script/bootstrap +6 -0
  33. data/docs/_site/script/cibuild +6 -0
  34. data/docs/_site/script/release +42 -0
  35. data/docs/_site/script/server +3 -0
  36. data/docs/assets/css/style.scss +4 -0
  37. data/docs/index.md +59 -0
  38. data/docs/jekyll-theme-cayman.gemspec +18 -0
  39. data/docs/script/bootstrap +6 -0
  40. data/docs/script/cibuild +6 -0
  41. data/docs/script/release +42 -0
  42. data/docs/script/server +3 -0
  43. data/docs/thumbnail.png +0 -0
  44. data/exec/rps.bash +73 -0
  45. data/exec/run.bat +26 -0
  46. data/exec/uninstall.sh +32 -0
  47. data/lib/ref/Constants.rb +24 -0
  48. data/lib/ref/PrivateMethods.rb +30 -0
  49. data/lib/rps.rb +66 -0
  50. data/lib/rps/version.rb +3 -0
  51. data/rps.gemspec +38 -0
  52. data/test/test_rps.rb +97 -0
  53. metadata +188 -0
  54. metadata.gz.sig +0 -0
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+ gem "github-pages", group: :jekyll_plugins
@@ -0,0 +1,116 @@
1
+ CC0 1.0 Universal
2
+
3
+ Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an "owner") of an original work of
8
+ authorship and/or a database (each, a "Work").
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific
12
+ works ("Commons") that the public can reliably and without fear of later
13
+ claims of infringement build upon, modify, incorporate in other works, reuse
14
+ and redistribute as freely as possible in any form whatsoever and for any
15
+ purposes, including without limitation commercial purposes. These owners may
16
+ contribute to the Commons to promote the ideal of a free culture and the
17
+ further production of creative, cultural and scientific works, or to gain
18
+ reputation or greater distribution for their Work in part through the use and
19
+ efforts of others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation
22
+ of additional consideration or compensation, the person associating CC0 with a
23
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
24
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
25
+ and publicly distribute the Work under its terms, with knowledge of his or her
26
+ Copyright and Related Rights in the Work and the meaning and intended legal
27
+ effect of CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights ("Copyright and
31
+ Related Rights"). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+
34
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
35
+ and translate a Work;
36
+
37
+ ii. moral rights retained by the original author(s) and/or performer(s);
38
+
39
+ iii. publicity and privacy rights pertaining to a person's image or likeness
40
+ depicted in a Work;
41
+
42
+ iv. rights protecting against unfair competition in regards to a Work,
43
+ subject to the limitations in paragraph 4(a), below;
44
+
45
+ v. rights protecting the extraction, dissemination, use and reuse of data in
46
+ a Work;
47
+
48
+ vi. database rights (such as those arising under Directive 96/9/EC of the
49
+ European Parliament and of the Council of 11 March 1996 on the legal
50
+ protection of databases, and under any national implementation thereof,
51
+ including any amended or successor version of such directive); and
52
+
53
+ vii. other similar, equivalent or corresponding rights throughout the world
54
+ based on applicable law or treaty, and any national implementations thereof.
55
+
56
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
57
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59
+ and Related Rights and associated claims and causes of action, whether now
60
+ known or unknown (including existing as well as future claims and causes of
61
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
62
+ duration provided by applicable law or treaty (including future time
63
+ extensions), (iii) in any current or future medium and for any number of
64
+ copies, and (iv) for any purpose whatsoever, including without limitation
65
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66
+ the Waiver for the benefit of each member of the public at large and to the
67
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
68
+ shall not be subject to revocation, rescission, cancellation, termination, or
69
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
70
+ by the public as contemplated by Affirmer's express Statement of Purpose.
71
+
72
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
73
+ judged legally invalid or ineffective under applicable law, then the Waiver
74
+ shall be preserved to the maximum extent permitted taking into account
75
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
77
+ non transferable, non sublicensable, non exclusive, irrevocable and
78
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
79
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
80
+ provided by applicable law or treaty (including future time extensions), (iii)
81
+ in any current or future medium and for any number of copies, and (iv) for any
82
+ purpose whatsoever, including without limitation commercial, advertising or
83
+ promotional purposes (the "License"). The License shall be deemed effective as
84
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
85
+ License for any reason be judged legally invalid or ineffective under
86
+ applicable law, such partial invalidity or ineffectiveness shall not
87
+ invalidate the remainder of the License, and in such case Affirmer hereby
88
+ affirms that he or she will not (i) exercise any of his or her remaining
89
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
90
+ and causes of action with respect to the Work, in either case contrary to
91
+ Affirmer's express Statement of Purpose.
92
+
93
+ 4. Limitations and Disclaimers.
94
+
95
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
96
+ surrendered, licensed or otherwise affected by this document.
97
+
98
+ b. Affirmer offers the Work as-is and makes no representations or warranties
99
+ of any kind concerning the Work, express, implied, statutory or otherwise,
100
+ including without limitation warranties of title, merchantability, fitness
101
+ for a particular purpose, non infringement, or the absence of latent or
102
+ other defects, accuracy, or the present or absence of errors, whether or not
103
+ discoverable, all to the greatest extent permissible under applicable law.
104
+
105
+ c. Affirmer disclaims responsibility for clearing rights of other persons
106
+ that may apply to the Work or any use thereof, including without limitation
107
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
108
+ disclaims responsibility for obtaining any necessary consents, permissions
109
+ or other rights required for any use of the Work.
110
+
111
+ d. Affirmer understands and acknowledges that Creative Commons is not a
112
+ party to this document and has no duty or obligation with respect to this
113
+ CC0 or use of the Work.
114
+
115
+ For more information, please see
116
+ <http://creativecommons.org/publicdomain/zero/1.0/>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ How to test this Gem
6
+ ====================
7
+
8
+ What you will need
9
+ ------------------
10
+
11
+ 1. Ruby &amp; Ruby Gems installed
12
+ 2. Rake installed
13
+ 3. The RockPaperScissors repo cloned or downloaded
14
+
15
+ ## Start Testing
16
+
17
+ 1. Open `Terminal`/`Command Prompt` and `cd` to the directory of the repo's folder
18
+ 2. Type: `rake test` and hit <kbd>enter</kbd>/<kbd>return</kbd>
19
+
20
+ -----------
21
+
22
+ ## Site Nav
23
+
24
+ [Home](./) | [Contributing](CONTRIBUTING) | [Code of Conduct](CODE_OF_CONDUCT)
@@ -0,0 +1,11 @@
1
+ title: Play Rock Paper Scissors Game
2
+ description: A Ruby Programmed Rock Paper Scissors Game
3
+ show_downloads: true
4
+ google_analytics:
5
+ theme: jekyll-theme-cayman
6
+ exclude: [
7
+ Gemfile,
8
+ jekyll-theme-cayman.gemspec,
9
+ thumbnail.png,
10
+ LICENSE
11
+ ]
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>{{ page.title | default: site.title }}</title>
6
+ <meta name="description" content="{{ page.description | default: site.description | default: site.github.project_tagline }}"/>
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <meta name="theme-color" content="#157878">
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=' | append: site.github.build_revision | relative_url }}">
11
+ </head>
12
+ <body>
13
+ <section class="page-header">
14
+ <h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
15
+ <h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
16
+ {% if site.github.is_project_page %}
17
+ <a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
18
+ <a href="https://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
19
+ {% endif %}
20
+ {% if site.show_downloads %}
21
+ <a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
22
+ <a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
23
+ {% endif %}
24
+ </section>
25
+
26
+ <section class="main-content">
27
+ {{ content }}
28
+
29
+ <footer class="site-footer">
30
+ {% if site.github.is_project_page %}
31
+ <span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
32
+ {% endif %}
33
+ </footer>
34
+ </section>
35
+
36
+ {% if site.google_analytics %}
37
+ <script type="text/javascript">
38
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
39
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
40
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
41
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
42
+
43
+ ga('create', '{{ site.google_analytics }}', 'auto');
44
+ ga('send', 'pageview');
45
+ </script>
46
+ {% endif %}
47
+ </body>
48
+ </html>
@@ -0,0 +1,345 @@
1
+ @import "normalize";
2
+ @import "rouge-github";
3
+ @import "variables";
4
+
5
+ @mixin large {
6
+ @media screen and (min-width: #{$large-breakpoint}) {
7
+ @content;
8
+ }
9
+ }
10
+
11
+ @mixin medium {
12
+ @media screen and (min-width: #{$medium-breakpoint}) and (max-width: #{$large-breakpoint}) {
13
+ @content;
14
+ }
15
+ }
16
+
17
+ @mixin small {
18
+ @media screen and (max-width: #{$medium-breakpoint}) {
19
+ @content;
20
+ }
21
+ }
22
+
23
+ * {
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ body {
28
+ padding: 0;
29
+ margin: 0;
30
+ font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
31
+ font-size: 16px;
32
+ line-height: 1.5;
33
+ color: $body-text-color;
34
+ }
35
+
36
+ a {
37
+ color: $body-link-color;
38
+ text-decoration: none;
39
+
40
+ &:hover {
41
+ text-decoration: underline;
42
+ }
43
+ }
44
+
45
+ .btn {
46
+ display: inline-block;
47
+ margin-bottom: 1rem;
48
+ color: rgba(255, 255, 255, 0.7);
49
+ background-color: rgba(255, 255, 255, 0.08);
50
+ border-color: rgba(255, 255, 255, 0.2);
51
+ border-style: solid;
52
+ border-width: 1px;
53
+ border-radius: 0.3rem;
54
+ transition: color 0.2s, background-color 0.2s, border-color 0.2s;
55
+
56
+ &:hover {
57
+ color: rgba(255, 255, 255, 0.8);
58
+ text-decoration: none;
59
+ background-color: rgba(255, 255, 255, 0.2);
60
+ border-color: rgba(255, 255, 255, 0.3);
61
+ }
62
+
63
+ + .btn {
64
+ margin-left: 1rem;
65
+ }
66
+
67
+ @include large {
68
+ padding: 0.75rem 1rem;
69
+ }
70
+
71
+ @include medium {
72
+ padding: 0.6rem 0.9rem;
73
+ font-size: 0.9rem;
74
+ }
75
+
76
+ @include small {
77
+ display: block;
78
+ width: 100%;
79
+ padding: 0.75rem;
80
+ font-size: 0.9rem;
81
+
82
+ + .btn {
83
+ margin-top: 1rem;
84
+ margin-left: 0;
85
+ }
86
+ }
87
+ }
88
+
89
+ .page-header {
90
+ color: $header-heading-color;
91
+ text-align: center;
92
+ background-color: $header-bg-color;
93
+ background-image: linear-gradient(120deg, $header-bg-color-secondary, $header-bg-color);
94
+
95
+ @include large {
96
+ padding: 5rem 6rem;
97
+ }
98
+
99
+ @include medium {
100
+ padding: 3rem 4rem;
101
+ }
102
+
103
+ @include small {
104
+ padding: 2rem 1rem;
105
+ }
106
+ }
107
+
108
+ .project-name {
109
+ margin-top: 0;
110
+ margin-bottom: 0.1rem;
111
+
112
+ @include large {
113
+ font-size: 3.25rem;
114
+ }
115
+
116
+ @include medium {
117
+ font-size: 2.25rem;
118
+ }
119
+
120
+ @include small {
121
+ font-size: 1.75rem;
122
+ }
123
+ }
124
+
125
+ .project-tagline {
126
+ margin-bottom: 2rem;
127
+ font-weight: normal;
128
+ opacity: 0.7;
129
+
130
+ @include large {
131
+ font-size: 1.25rem;
132
+ }
133
+
134
+ @include medium {
135
+ font-size: 1.15rem;
136
+ }
137
+
138
+ @include small {
139
+ font-size: 1rem;
140
+ }
141
+ }
142
+
143
+ .main-content {
144
+ word-wrap: break-word;
145
+
146
+ :first-child {
147
+ margin-top: 0;
148
+ }
149
+
150
+ @include large {
151
+ max-width: 64rem;
152
+ padding: 2rem 6rem;
153
+ margin: 0 auto;
154
+ font-size: 1.1rem;
155
+ }
156
+
157
+ @include medium {
158
+ padding: 2rem 4rem;
159
+ font-size: 1.1rem;
160
+ }
161
+
162
+ @include small {
163
+ padding: 2rem 1rem;
164
+ font-size: 1rem;
165
+ }
166
+
167
+ img {
168
+ max-width: 100%;
169
+ }
170
+
171
+ h1,
172
+ h2,
173
+ h3,
174
+ h4,
175
+ h5,
176
+ h6 {
177
+ margin-top: 2rem;
178
+ margin-bottom: 1rem;
179
+ font-weight: normal;
180
+ color: $section-headings-color;
181
+ }
182
+
183
+ p {
184
+ margin-bottom: 1em;
185
+ }
186
+
187
+ code {
188
+ padding: 2px 4px;
189
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
190
+ font-size: 0.9rem;
191
+ color: $code-text-color;
192
+ background-color: $code-bg-color;
193
+ border-radius: 0.3rem;
194
+ }
195
+
196
+ pre {
197
+ padding: 0.8rem;
198
+ margin-top: 0;
199
+ margin-bottom: 1rem;
200
+ font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
201
+ color: $code-text-color;
202
+ word-wrap: normal;
203
+ background-color: $code-bg-color;
204
+ border: solid 1px $border-color;
205
+ border-radius: 0.3rem;
206
+
207
+ > code {
208
+ padding: 0;
209
+ margin: 0;
210
+ font-size: 0.9rem;
211
+ color: $code-text-color;
212
+ word-break: normal;
213
+ white-space: pre;
214
+ background: transparent;
215
+ border: 0;
216
+ }
217
+ }
218
+
219
+ .highlight {
220
+ margin-bottom: 1rem;
221
+
222
+ pre {
223
+ margin-bottom: 0;
224
+ word-break: normal;
225
+ }
226
+ }
227
+
228
+ .highlight pre,
229
+ pre {
230
+ padding: 0.8rem;
231
+ overflow: auto;
232
+ font-size: 0.9rem;
233
+ line-height: 1.45;
234
+ border-radius: 0.3rem;
235
+ -webkit-overflow-scrolling: touch;
236
+ }
237
+
238
+ pre code,
239
+ pre tt {
240
+ display: inline;
241
+ max-width: initial;
242
+ padding: 0;
243
+ margin: 0;
244
+ overflow: initial;
245
+ line-height: inherit;
246
+ word-wrap: normal;
247
+ background-color: transparent;
248
+ border: 0;
249
+
250
+ &:before,
251
+ &:after {
252
+ content: normal;
253
+ }
254
+ }
255
+
256
+ ul,
257
+ ol {
258
+ margin-top: 0;
259
+ }
260
+
261
+ blockquote {
262
+ padding: 0 1rem;
263
+ margin-left: 0;
264
+ color: $blockquote-text-color;
265
+ border-left: 0.3rem solid $border-color;
266
+
267
+ > :first-child {
268
+ margin-top: 0;
269
+ }
270
+
271
+ > :last-child {
272
+ margin-bottom: 0;
273
+ }
274
+ }
275
+
276
+ table {
277
+ display: block;
278
+ width: 100%;
279
+ overflow: auto;
280
+ word-break: normal;
281
+ word-break: keep-all; // For Firefox to horizontally scroll wider tables.
282
+ -webkit-overflow-scrolling: touch;
283
+
284
+ th {
285
+ font-weight: bold;
286
+ }
287
+
288
+ th,
289
+ td {
290
+ padding: 0.5rem 1rem;
291
+ border: 1px solid $table-border-color;
292
+ }
293
+ }
294
+
295
+ dl {
296
+ padding: 0;
297
+
298
+ dt {
299
+ padding: 0;
300
+ margin-top: 1rem;
301
+ font-size: 1rem;
302
+ font-weight: bold;
303
+ }
304
+
305
+ dd {
306
+ padding: 0;
307
+ margin-bottom: 1rem;
308
+ }
309
+ }
310
+
311
+ hr {
312
+ height: 2px;
313
+ padding: 0;
314
+ margin: 1rem 0;
315
+ background-color: $hr-border-color;
316
+ border: 0;
317
+ }
318
+ }
319
+
320
+ .site-footer {
321
+ padding-top: 2rem;
322
+ margin-top: 2rem;
323
+ border-top: solid 1px $hr-border-color;
324
+
325
+ @include large {
326
+ font-size: 1rem;
327
+ }
328
+
329
+ @include medium {
330
+ font-size: 1rem;
331
+ }
332
+
333
+ @include small {
334
+ font-size: 0.9rem;
335
+ }
336
+ }
337
+
338
+ .site-footer-owner {
339
+ display: block;
340
+ font-weight: bold;
341
+ }
342
+
343
+ .site-footer-credits {
344
+ color: $blockquote-text-color;
345
+ }