rpsg 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/doc/created.rid +2 -2
  4. data/doc/js/navigation.js.gz +0 -0
  5. data/doc/js/search_index.js.gz +0 -0
  6. data/doc/js/searcher.js.gz +0 -0
  7. data/lib/rpsg/version.rb +1 -1
  8. data/rpsg.gemspec +2 -3
  9. metadata +2 -62
  10. data/docs/Gemfile +0 -6
  11. data/docs/LICENSE +0 -116
  12. data/docs/_config.yml +0 -73
  13. data/docs/_includes/footer.html +0 -20
  14. data/docs/_includes/header.html +0 -19
  15. data/docs/_layouts/default.html +0 -50
  16. data/docs/_pages/README.txt +0 -47
  17. data/docs/_pages/bundler.txt +0 -26
  18. data/docs/_pages/code.txt +0 -178
  19. data/docs/_pages/index.txt +0 -16
  20. data/docs/_pages/install.txt +0 -110
  21. data/docs/_pages/simple.txt +0 -45
  22. data/docs/_pages/test.md +0 -40
  23. data/docs/_pages/uninstall.txt +0 -19
  24. data/docs/_pages/update.txt +0 -19
  25. data/docs/_sass/jekyll-theme-cayman.scss +0 -346
  26. data/docs/_sass/normalize.scss +0 -424
  27. data/docs/_sass/pace.sass +0 -278
  28. data/docs/_sass/rouge-github.scss +0 -209
  29. data/docs/_sass/variables.scss +0 -23
  30. data/docs/_site/assets/css/style.css +0 -1
  31. data/docs/_site/assets/favicons/android-chrome-192x192.png +0 -0
  32. data/docs/_site/assets/favicons/android-chrome-256x256.png +0 -0
  33. data/docs/_site/assets/favicons/apple-touch-icon.png +0 -0
  34. data/docs/_site/assets/favicons/browserconfig.xml +0 -9
  35. data/docs/_site/assets/favicons/favicon-16x16.png +0 -0
  36. data/docs/_site/assets/favicons/favicon-32x32.png +0 -0
  37. data/docs/_site/assets/favicons/favicon.ico +0 -0
  38. data/docs/_site/assets/favicons/manifest.json +0 -18
  39. data/docs/_site/assets/favicons/mstile-150x150.png +0 -0
  40. data/docs/_site/assets/favicons/safari-pinned-tab.svg +0 -17
  41. data/docs/_site/assets/js/pace.min.js +0 -2
  42. data/docs/_site/bundler.html +0 -108
  43. data/docs/_site/code.html +0 -244
  44. data/docs/_site/index.html +0 -83
  45. data/docs/_site/install.html +0 -244
  46. data/docs/_site/readme.html +0 -132
  47. data/docs/_site/simple.html +0 -111
  48. data/docs/_site/test.html +0 -99
  49. data/docs/_site/uninstall.html +0 -92
  50. data/docs/_site/update.html +0 -92
  51. data/docs/assets/css/style.scss +0 -4
  52. data/docs/assets/favicons/android-chrome-192x192.png +0 -0
  53. data/docs/assets/favicons/android-chrome-256x256.png +0 -0
  54. data/docs/assets/favicons/apple-touch-icon.png +0 -0
  55. data/docs/assets/favicons/browserconfig.xml +0 -9
  56. data/docs/assets/favicons/favicon-16x16.png +0 -0
  57. data/docs/assets/favicons/favicon-32x32.png +0 -0
  58. data/docs/assets/favicons/favicon.ico +0 -0
  59. data/docs/assets/favicons/manifest.json +0 -18
  60. data/docs/assets/favicons/mstile-150x150.png +0 -0
  61. data/docs/assets/favicons/safari-pinned-tab.svg +0 -17
  62. data/docs/assets/js/pace.min.js +0 -2
  63. data/docs/jekyll-theme-cayman.gemspec +0 -18
  64. data/docs/script/bootstrap +0 -6
  65. data/docs/script/cibuild +0 -6
  66. data/docs/script/release +0 -42
  67. data/docs/script/server +0 -3
  68. data/docs/thumbnail.png +0 -0
@@ -1,23 +0,0 @@
1
- // Breakpoints
2
- $large-breakpoint: 64em;
3
- $medium-breakpoint: 42em;
4
-
5
- // Headers
6
- $header-heading-color: #fff;
7
- $header-bg-color: #159957;
8
- $header-bg-color-secondary: #155799;
9
-
10
- // Text
11
- $section-headings-color: #159957;
12
- $body-text-color: #606c71;
13
- $body-link-color: #1e6bb8;
14
- $blockquote-text-color: #819198;
15
-
16
- // Code
17
- $code-bg-color: #f3f6fa;
18
- $code-text-color: #567482;
19
-
20
- // Borders
21
- $border-color: #dce6f0;
22
- $table-border-color: #e9ebec;
23
- $hr-border-color: #eff0f1;
@@ -1 +0,0 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.highlight table td{padding:5px}.highlight table pre{margin:0}.highlight .cm{color:#999988;font-style:italic}.highlight .cp{color:#999999;font-weight:bold}.highlight .c1{color:#999988;font-style:italic}.highlight .cs{color:#999999;font-weight:bold;font-style:italic}.highlight .c,.highlight .cd{color:#999988;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .gd{color:#000000;background-color:#ffdddd}.highlight .ge{color:#000000;font-style:italic}.highlight .gr{color:#aa0000}.highlight .gh{color:#999999}.highlight .gi{color:#000000;background-color:#ddffdd}.highlight .go{color:#888888}.highlight .gp{color:#555555}.highlight .gs{font-weight:bold}.highlight .gu{color:#aaaaaa}.highlight .gt{color:#aa0000}.highlight .kc{color:#000000;font-weight:bold}.highlight .kd{color:#000000;font-weight:bold}.highlight .kn{color:#000000;font-weight:bold}.highlight .kp{color:#000000;font-weight:bold}.highlight .kr{color:#000000;font-weight:bold}.highlight .kt{color:#445588;font-weight:bold}.highlight .k,.highlight .kv{color:#000000;font-weight:bold}.highlight .mf{color:#009999}.highlight .mh{color:#009999}.highlight .il{color:#009999}.highlight .mi{color:#009999}.highlight .mo{color:#009999}.highlight .m,.highlight .mb,.highlight .mx{color:#009999}.highlight .sb{color:#d14}.highlight .sc{color:#d14}.highlight .sd{color:#d14}.highlight .s2{color:#d14}.highlight .se{color:#d14}.highlight .sh{color:#d14}.highlight .si{color:#d14}.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .s{color:#d14}.highlight .na{color:#008080}.highlight .bp{color:#999999}.highlight .nb{color:#0086B3}.highlight .nc{color:#445588;font-weight:bold}.highlight .no{color:#008080}.highlight .nd{color:#3c5d5d;font-weight:bold}.highlight .ni{color:#800080}.highlight .ne{color:#990000;font-weight:bold}.highlight .nf{color:#990000;font-weight:bold}.highlight .nl{color:#990000;font-weight:bold}.highlight .nn{color:#555555}.highlight .nt{color:#000080}.highlight .vc{color:#008080}.highlight .vg{color:#008080}.highlight .vi{color:#008080}.highlight .nv{color:#008080}.highlight .ow{color:#000000;font-weight:bold}.highlight .o{color:#000000;font-weight:bold}.highlight .w{color:#bbbbbb}.highlight{background-color:#f8f8f8}.pace{-webkit-pointer-events:none;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;z-index:2000;position:fixed;margin:auto;top:12px;left:0;right:0;bottom:0;width:200px;height:50px;overflow:hidden}.pace .pace-progress{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:block;position:absolute;right:100%;margin-right:-7px;width:93%;top:7px;height:14px;font-size:12px;background:#02dd00;color:#02dd00;line-height:60px;font-weight:bold;font-family:Helvetica,Arial,"Lucida Grande",sans-serif;-webkit-box-shadow:120px 0 #fff,240px 0 #fff;-ms-box-shadow:120px 0 #fff,240px 0 #fff;box-shadow:120px 0 #fff,240px 0 #fff}.pace .pace-progress:after{content:attr(data-progress-text);display:inline-block;position:fixed;width:45px;text-align:right;right:0;padding-right:16px;top:4px}.pace .pace-progress[data-progress-text="0%"]:after{right:-200px}.pace .pace-progress[data-progress-text="1%"]:after{right:-198.14px}.pace .pace-progress[data-progress-text="2%"]:after{right:-196.28px}.pace .pace-progress[data-progress-text="3%"]:after{right:-194.42px}.pace .pace-progress[data-progress-text="4%"]:after{right:-192.56px}.pace .pace-progress[data-progress-text="5%"]:after{right:-190.7px}.pace .pace-progress[data-progress-text="6%"]:after{right:-188.84px}.pace .pace-progress[data-progress-text="7%"]:after{right:-186.98px}.pace .pace-progress[data-progress-text="8%"]:after{right:-185.12px}.pace .pace-progress[data-progress-text="9%"]:after{right:-183.26px}.pace .pace-progress[data-progress-text="10%"]:after{right:-181.4px}.pace .pace-progress[data-progress-text="11%"]:after{right:-179.54px}.pace .pace-progress[data-progress-text="12%"]:after{right:-177.68px}.pace .pace-progress[data-progress-text="13%"]:after{right:-175.82px}.pace .pace-progress[data-progress-text="14%"]:after{right:-173.96px}.pace .pace-progress[data-progress-text="15%"]:after{right:-172.1px}.pace .pace-progress[data-progress-text="16%"]:after{right:-170.24px}.pace .pace-progress[data-progress-text="17%"]:after{right:-168.38px}.pace .pace-progress[data-progress-text="18%"]:after{right:-166.52px}.pace .pace-progress[data-progress-text="19%"]:after{right:-164.66px}.pace .pace-progress[data-progress-text="20%"]:after{right:-162.8px}.pace .pace-progress[data-progress-text="21%"]:after{right:-160.94px}.pace .pace-progress[data-progress-text="22%"]:after{right:-159.08px}.pace .pace-progress[data-progress-text="23%"]:after{right:-157.22px}.pace .pace-progress[data-progress-text="24%"]:after{right:-155.36px}.pace .pace-progress[data-progress-text="25%"]:after{right:-153.5px}.pace .pace-progress[data-progress-text="26%"]:after{right:-151.64px}.pace .pace-progress[data-progress-text="27%"]:after{right:-149.78px}.pace .pace-progress[data-progress-text="28%"]:after{right:-147.92px}.pace .pace-progress[data-progress-text="29%"]:after{right:-146.06px}.pace .pace-progress[data-progress-text="30%"]:after{right:-144.2px}.pace .pace-progress[data-progress-text="31%"]:after{right:-142.34px}.pace .pace-progress[data-progress-text="32%"]:after{right:-140.48px}.pace .pace-progress[data-progress-text="33%"]:after{right:-138.62px}.pace .pace-progress[data-progress-text="34%"]:after{right:-136.76px}.pace .pace-progress[data-progress-text="35%"]:after{right:-134.9px}.pace .pace-progress[data-progress-text="36%"]:after{right:-133.04px}.pace .pace-progress[data-progress-text="37%"]:after{right:-131.18px}.pace .pace-progress[data-progress-text="38%"]:after{right:-129.32px}.pace .pace-progress[data-progress-text="39%"]:after{right:-127.46px}.pace .pace-progress[data-progress-text="40%"]:after{right:-125.6px}.pace .pace-progress[data-progress-text="41%"]:after{right:-123.74px}.pace .pace-progress[data-progress-text="42%"]:after{right:-121.88px}.pace .pace-progress[data-progress-text="43%"]:after{right:-120.02px}.pace .pace-progress[data-progress-text="44%"]:after{right:-118.16px}.pace .pace-progress[data-progress-text="45%"]:after{right:-116.3px}.pace .pace-progress[data-progress-text="46%"]:after{right:-114.44px}.pace .pace-progress[data-progress-text="47%"]:after{right:-112.58px}.pace .pace-progress[data-progress-text="48%"]:after{right:-110.72px}.pace .pace-progress[data-progress-text="49%"]:after{right:-108.86px}.pace .pace-progress[data-progress-text="50%"]:after{right:-107px}.pace .pace-progress[data-progress-text="51%"]:after{right:-105.14px}.pace .pace-progress[data-progress-text="52%"]:after{right:-103.28px}.pace .pace-progress[data-progress-text="53%"]:after{right:-101.42px}.pace .pace-progress[data-progress-text="54%"]:after{right:-99.56px}.pace .pace-progress[data-progress-text="55%"]:after{right:-97.7px}.pace .pace-progress[data-progress-text="56%"]:after{right:-95.84px}.pace .pace-progress[data-progress-text="57%"]:after{right:-93.98px}.pace .pace-progress[data-progress-text="58%"]:after{right:-92.12px}.pace .pace-progress[data-progress-text="59%"]:after{right:-90.26px}.pace .pace-progress[data-progress-text="60%"]:after{right:-88.4px}.pace .pace-progress[data-progress-text="61%"]:after{right:-86.54px}.pace .pace-progress[data-progress-text="62%"]:after{right:-84.68px}.pace .pace-progress[data-progress-text="63%"]:after{right:-82.82px}.pace .pace-progress[data-progress-text="64%"]:after{right:-80.96px}.pace .pace-progress[data-progress-text="65%"]:after{right:-79.1px}.pace .pace-progress[data-progress-text="66%"]:after{right:-77.24px}.pace .pace-progress[data-progress-text="67%"]:after{right:-75.38px}.pace .pace-progress[data-progress-text="68%"]:after{right:-73.52px}.pace .pace-progress[data-progress-text="69%"]:after{right:-71.66px}.pace .pace-progress[data-progress-text="70%"]:after{right:-69.8px}.pace .pace-progress[data-progress-text="71%"]:after{right:-67.94px}.pace .pace-progress[data-progress-text="72%"]:after{right:-66.08px}.pace .pace-progress[data-progress-text="73%"]:after{right:-64.22px}.pace .pace-progress[data-progress-text="74%"]:after{right:-62.36px}.pace .pace-progress[data-progress-text="75%"]:after{right:-60.5px}.pace .pace-progress[data-progress-text="76%"]:after{right:-58.64px}.pace .pace-progress[data-progress-text="77%"]:after{right:-56.78px}.pace .pace-progress[data-progress-text="78%"]:after{right:-54.92px}.pace .pace-progress[data-progress-text="79%"]:after{right:-53.06px}.pace .pace-progress[data-progress-text="80%"]:after{right:-51.2px}.pace .pace-progress[data-progress-text="81%"]:after{right:-49.34px}.pace .pace-progress[data-progress-text="82%"]:after{right:-47.48px}.pace .pace-progress[data-progress-text="83%"]:after{right:-45.62px}.pace .pace-progress[data-progress-text="84%"]:after{right:-43.76px}.pace .pace-progress[data-progress-text="85%"]:after{right:-41.9px}.pace .pace-progress[data-progress-text="86%"]:after{right:-40.04px}.pace .pace-progress[data-progress-text="87%"]:after{right:-38.18px}.pace .pace-progress[data-progress-text="88%"]:after{right:-36.32px}.pace .pace-progress[data-progress-text="89%"]:after{right:-34.46px}.pace .pace-progress[data-progress-text="90%"]:after{right:-32.6px}.pace .pace-progress[data-progress-text="91%"]:after{right:-30.74px}.pace .pace-progress[data-progress-text="92%"]:after{right:-28.88px}.pace .pace-progress[data-progress-text="93%"]:after{right:-27.02px}.pace .pace-progress[data-progress-text="94%"]:after{right:-25.16px}.pace .pace-progress[data-progress-text="95%"]:after{right:-23.3px}.pace .pace-progress[data-progress-text="96%"]:after{right:-21.44px}.pace .pace-progress[data-progress-text="97%"]:after{right:-19.58px}.pace .pace-progress[data-progress-text="98%"]:after{right:-17.72px}.pace .pace-progress[data-progress-text="99%"]:after{right:-15.86px}.pace .pace-progress[data-progress-text="100%"]:after{right:-14px}.pace .pace-activity{position:absolute;width:100%;height:28px;z-index:2001;box-shadow:inset 0 0 0 2px #02dd00,inset 0 0 0 7px #FFF;border-radius:10px}.pace.pace-inactive{display:none}*{box-sizing:border-box}body{padding:0;margin:0;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;color:#606c71}a{color:#1e6bb8;text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-block;margin-bottom:1rem;color:rgba(255,255,255,0.7);background-color:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.2);border-style:solid;border-width:1px;border-radius:0.3rem;transition:color 0.2s, background-color 0.2s, border-color 0.2s}.btn:hover{color:rgba(255,255,255,0.8);text-decoration:none;background-color:rgba(255,255,255,0.2);border-color:rgba(255,255,255,0.3)}.btn+.btn{margin-left:1rem}@media screen and (min-width: 64em){.btn{padding:0.75rem 1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.btn{padding:0.6rem 0.9rem;font-size:0.9rem}}@media screen and (max-width: 42em){.btn{display:block;width:100%;padding:0.75rem;font-size:0.9rem}.btn+.btn{margin-top:1rem;margin-left:0}}.page-header{color:#fff;text-align:center;background-color:#159957;background-image:linear-gradient(120deg, #155799, #159957)}@media screen and (min-width: 64em){.page-header{padding:5rem 6rem}}@media screen and (min-width: 42em) and (max-width: 64em){.page-header{padding:3rem 4rem}}@media screen and (max-width: 42em){.page-header{padding:2rem 1rem}}.project-name{margin-top:0;margin-bottom:0.1rem}@media screen and (min-width: 64em){.project-name{font-size:3.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-name{font-size:2.25rem}}@media screen and (max-width: 42em){.project-name{font-size:1.75rem}}.project-tagline{margin-bottom:2rem;font-weight:normal;opacity:0.7}@media screen and (min-width: 64em){.project-tagline{font-size:1.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-tagline{font-size:1.15rem}}@media screen and (max-width: 42em){.project-tagline{font-size:1rem}}.main-content{word-wrap:break-word}.main-content :first-child{margin-top:0}@media screen and (min-width: 64em){.main-content{max-width:64rem;padding:2rem 6rem;margin:0 auto;font-size:1.1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.main-content{padding:2rem 4rem;font-size:1.1rem}}@media screen and (max-width: 42em){.main-content{padding:2rem 1rem;font-size:1rem}}.main-content img{max-width:100%}.main-content h1,.main-content h2,.main-content h3,.main-content h4,.main-content h5,.main-content h6{margin-top:2rem;margin-bottom:1rem;font-weight:normal;color:#159957}.main-content p{margin-bottom:1em}.main-content code{padding:2px 4px;font-family:Consolas, "Liberation Mono", Menlo, Courier, monospace;font-size:0.9rem;color:#567482;background-color:#f3f6fa;border-radius:0.3rem}.main-content pre{padding:0.8rem;margin-top:0;margin-bottom:1rem;font:1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;color:#567482;word-wrap:normal;background-color:#f3f6fa;border:solid 1px #dce6f0;border-radius:0.3rem}.main-content pre>code{padding:0;margin:0;font-size:0.9rem;color:#567482;word-break:normal;white-space:pre;background:transparent;border:0}.main-content .highlight{margin-bottom:1rem}.main-content .highlight pre{margin-bottom:0;word-break:normal}.main-content .highlight pre,.main-content pre{padding:0.8rem;overflow:auto;font-size:0.9rem;line-height:1.45;border-radius:0.3rem;-webkit-overflow-scrolling:touch}.main-content pre code,.main-content pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.main-content pre code:before,.main-content pre code:after,.main-content pre tt:before,.main-content pre tt:after{content:normal}.main-content ul,.main-content ol{margin-top:0}.main-content blockquote{padding:0 1rem;margin-left:0;color:#819198;border-left:0.3rem solid #dce6f0}.main-content blockquote>:first-child{margin-top:0}.main-content blockquote>:last-child{margin-bottom:0}.main-content table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;-webkit-overflow-scrolling:touch}.main-content table th{font-weight:bold}.main-content table th,.main-content table td{padding:0.5rem 1rem;border:1px solid #e9ebec}.main-content dl{padding:0}.main-content dl dt{padding:0;margin-top:1rem;font-size:1rem;font-weight:bold}.main-content dl dd{padding:0;margin-bottom:1rem}.main-content hr{height:2px;padding:0;margin:1rem 0;background-color:#eff0f1;border:0}.site-footer{padding-top:2rem;margin-top:2rem;border-top:solid 1px #eff0f1}@media screen and (min-width: 64em){.site-footer{font-size:1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.site-footer{font-size:1rem}}@media screen and (max-width: 42em){.site-footer{font-size:0.9rem}}.site-footer-owner{display:block;font-weight:bold}.site-footer-credits{color:#819198}
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <browserconfig>
3
- <msapplication>
4
- <tile>
5
- <square150x150logo src="/mstile-150x150.png"/>
6
- <TileColor>#da532c</TileColor>
7
- </tile>
8
- </msapplication>
9
- </browserconfig>
@@ -1,18 +0,0 @@
1
- {
2
- "name": "",
3
- "icons": [
4
- {
5
- "src": "/android-chrome-192x192.png",
6
- "sizes": "192x192",
7
- "type": "image/png"
8
- },
9
- {
10
- "src": "/android-chrome-256x256.png",
11
- "sizes": "256x256",
12
- "type": "image/png"
13
- }
14
- ],
15
- "theme_color": "#ffffff",
16
- "background_color": "#ffffff",
17
- "display": "standalone"
18
- }
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="256.000000pt" height="256.000000pt" viewBox="0 0 256.000000 256.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
- <metadata>
8
- Created by potrace 1.11, written by Peter Selinger 2001-2013
9
- </metadata>
10
- <g transform="translate(0.000000,256.000000) scale(0.100000,-0.100000)"
11
- fill="#000000" stroke="none">
12
- <path d="M72 2543 c-19 -9 -41 -32 -53 -54 -18 -37 -19 -70 -19 -1209 0 -1256
13
- -2 -1209 50 -1255 22 -20 38 -20 1214 -23 655 -1 1200 0 1212 2 29 8 61 38 74
14
- 70 7 18 10 416 10 1209 0 1168 0 1182 -20 1215 -40 65 29 62 -1262 62 -1064 0
15
- -1176 -2 -1206 -17z"/>
16
- </g>
17
- </svg>
@@ -1,2 +0,0 @@
1
- /*! pace 1.0.0 */
2
- (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X=[].slice,Y={}.hasOwnProperty,Z=function(a,b){function c(){this.constructor=a}for(var d in b)Y.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},$=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};for(u={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},C=function(){var a;return null!=(a="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?a:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==E&&(E=function(a){return setTimeout(a,50)},t=function(a){return clearTimeout(a)}),G=function(a){var b,c;return b=C(),(c=function(){var d;return d=C()-b,d>=33?(b=C(),a(d,function(){return E(c)})):setTimeout(c,33-d)})()},F=function(){var a,b,c;return c=arguments[0],b=arguments[1],a=3<=arguments.length?X.call(arguments,2):[],"function"==typeof c[b]?c[b].apply(c,a):c[b]},v=function(){var a,b,c,d,e,f,g;for(b=arguments[0],d=2<=arguments.length?X.call(arguments,1):[],f=0,g=d.length;g>f;f++)if(c=d[f])for(a in c)Y.call(c,a)&&(e=c[a],null!=b[a]&&"object"==typeof b[a]&&null!=e&&"object"==typeof e?v(b[a],e):b[a]=e);return b},q=function(a){var b,c,d,e,f;for(c=b=0,e=0,f=a.length;f>e;e++)d=a[e],c+=Math.abs(d),b++;return c/b},x=function(a,b){var c,d,e;if(null==a&&(a="options"),null==b&&(b=!0),e=document.querySelector("[data-pace-"+a+"]")){if(c=e.getAttribute("data-pace-"+a),!b)return c;try{return JSON.parse(c)}catch(f){return d=f,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",d):void 0}}},g=function(){function a(){}return a.prototype.on=function(a,b,c,d){var e;return null==d&&(d=!1),null==this.bindings&&(this.bindings={}),null==(e=this.bindings)[a]&&(e[a]=[]),this.bindings[a].push({handler:b,ctx:c,once:d})},a.prototype.once=function(a,b,c){return this.on(a,b,c,!0)},a.prototype.off=function(a,b){var c,d,e;if(null!=(null!=(d=this.bindings)?d[a]:void 0)){if(null==b)return delete this.bindings[a];for(c=0,e=[];c<this.bindings[a].length;)e.push(this.bindings[a][c].handler===b?this.bindings[a].splice(c,1):c++);return e}},a.prototype.trigger=function(){var a,b,c,d,e,f,g,h,i;if(c=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],null!=(g=this.bindings)?g[c]:void 0){for(e=0,i=[];e<this.bindings[c].length;)h=this.bindings[c][e],d=h.handler,b=h.ctx,f=h.once,d.apply(null!=b?b:this,a),i.push(f?this.bindings[c].splice(e,1):e++);return i}},a}(),j=window.Pace||{},window.Pace=j,v(j,g.prototype),D=j.options=v({},u,window.paceOptions,x()),U=["ajax","document","eventLag","elements"],Q=0,S=U.length;S>Q;Q++)K=U[Q],D[K]===!0&&(D[K]=u[K]);i=function(a){function b(){return V=b.__super__.constructor.apply(this,arguments)}return Z(b,a),b}(Error),b=function(){function a(){this.progress=0}return a.prototype.getElement=function(){var a;if(null==this.el){if(a=document.querySelector(D.target),!a)throw new i;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=a.firstChild?a.insertBefore(this.el,a.firstChild):a.appendChild(this.el)}return this.el},a.prototype.finish=function(){var a;return a=this.getElement(),a.className=a.className.replace("pace-active",""),a.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},a.prototype.update=function(a){return this.progress=a,this.render()},a.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(a){i=a}return this.el=void 0},a.prototype.render=function(){var a,b,c,d,e,f,g;if(null==document.querySelector(D.target))return!1;for(a=this.getElement(),d="translate3d("+this.progress+"%, 0, 0)",g=["webkitTransform","msTransform","transform"],e=0,f=g.length;f>e;e++)b=g[e],a.children[0].style[b]=d;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(a.children[0].setAttribute("data-progress-text",""+(0|this.progress)+"%"),this.progress>=100?c="99":(c=this.progress<10?"0":"",c+=0|this.progress),a.children[0].setAttribute("data-progress",""+c)),this.lastRenderedProgress=this.progress},a.prototype.done=function(){return this.progress>=100},a}(),h=function(){function a(){this.bindings={}}return a.prototype.trigger=function(a,b){var c,d,e,f,g;if(null!=this.bindings[a]){for(f=this.bindings[a],g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(c.call(this,b));return g}},a.prototype.on=function(a,b){var c;return null==(c=this.bindings)[a]&&(c[a]=[]),this.bindings[a].push(b)},a}(),P=window.XMLHttpRequest,O=window.XDomainRequest,N=window.WebSocket,w=function(a,b){var c,d,e,f;f=[];for(d in b.prototype)try{e=b.prototype[d],f.push(null==a[d]&&"function"!=typeof e?a[d]=e:void 0)}catch(g){c=g}return f},A=[],j.ignore=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("ignore"),c=b.apply(null,a),A.shift(),c},j.track=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("track"),c=b.apply(null,a),A.shift(),c},J=function(a){var b;if(null==a&&(a="GET"),"track"===A[0])return"force";if(!A.length&&D.ajax){if("socket"===a&&D.ajax.trackWebSockets)return!0;if(b=a.toUpperCase(),$.call(D.ajax.trackMethods,b)>=0)return!0}return!1},k=function(a){function b(){var a,c=this;b.__super__.constructor.apply(this,arguments),a=function(a){var b;return b=a.open,a.open=function(d,e){return J(d)&&c.trigger("request",{type:d,url:e,request:a}),b.apply(a,arguments)}},window.XMLHttpRequest=function(b){var c;return c=new P(b),a(c),c};try{w(window.XMLHttpRequest,P)}catch(d){}if(null!=O){window.XDomainRequest=function(){var b;return b=new O,a(b),b};try{w(window.XDomainRequest,O)}catch(d){}}if(null!=N&&D.ajax.trackWebSockets){window.WebSocket=function(a,b){var d;return d=null!=b?new N(a,b):new N(a),J("socket")&&c.trigger("request",{type:"socket",url:a,protocols:b,request:d}),d};try{w(window.WebSocket,N)}catch(d){}}}return Z(b,a),b}(h),R=null,y=function(){return null==R&&(R=new k),R},I=function(a){var b,c,d,e;for(e=D.ajax.ignoreURLs,c=0,d=e.length;d>c;c++)if(b=e[c],"string"==typeof b){if(-1!==a.indexOf(b))return!0}else if(b.test(a))return!0;return!1},y().on("request",function(b){var c,d,e,f,g;return f=b.type,e=b.request,g=b.url,I(g)?void 0:j.running||D.restartOnRequestAfter===!1&&"force"!==J(f)?void 0:(d=arguments,c=D.restartOnRequestAfter||0,"boolean"==typeof c&&(c=0),setTimeout(function(){var b,c,g,h,i,k;if(b="socket"===f?e.readyState<2:0<(h=e.readyState)&&4>h){for(j.restart(),i=j.sources,k=[],c=0,g=i.length;g>c;c++){if(K=i[c],K instanceof a){K.watch.apply(K,d);break}k.push(void 0)}return k}},c))}),a=function(){function a(){var a=this;this.elements=[],y().on("request",function(){return a.watch.apply(a,arguments)})}return a.prototype.watch=function(a){var b,c,d,e;return d=a.type,b=a.request,e=a.url,I(e)?void 0:(c="socket"===d?new n(b):new o(b),this.elements.push(c))},a}(),o=function(){function a(a){var b,c,d,e,f,g,h=this;if(this.progress=0,null!=window.ProgressEvent)for(c=null,a.addEventListener("progress",function(a){return h.progress=a.lengthComputable?100*a.loaded/a.total:h.progress+(100-h.progress)/2},!1),g=["load","abort","timeout","error"],d=0,e=g.length;e>d;d++)b=g[d],a.addEventListener(b,function(){return h.progress=100},!1);else f=a.onreadystatechange,a.onreadystatechange=function(){var b;return 0===(b=a.readyState)||4===b?h.progress=100:3===a.readyState&&(h.progress=50),"function"==typeof f?f.apply(null,arguments):void 0}}return a}(),n=function(){function a(a){var b,c,d,e,f=this;for(this.progress=0,e=["error","open"],c=0,d=e.length;d>c;c++)b=e[c],a.addEventListener(b,function(){return f.progress=100},!1)}return a}(),d=function(){function a(a){var b,c,d,f;for(null==a&&(a={}),this.elements=[],null==a.selectors&&(a.selectors=[]),f=a.selectors,c=0,d=f.length;d>c;c++)b=f[c],this.elements.push(new e(b))}return a}(),e=function(){function a(a){this.selector=a,this.progress=0,this.check()}return a.prototype.check=function(){var a=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return a.check()},D.elements.checkInterval)},a.prototype.done=function(){return this.progress=100},a}(),c=function(){function a(){var a,b,c=this;this.progress=null!=(b=this.states[document.readyState])?b:100,a=document.onreadystatechange,document.onreadystatechange=function(){return null!=c.states[document.readyState]&&(c.progress=c.states[document.readyState]),"function"==typeof a?a.apply(null,arguments):void 0}}return a.prototype.states={loading:0,interactive:50,complete:100},a}(),f=function(){function a(){var a,b,c,d,e,f=this;this.progress=0,a=0,e=[],d=0,c=C(),b=setInterval(function(){var g;return g=C()-c-50,c=C(),e.push(g),e.length>D.eventLag.sampleCount&&e.shift(),a=q(e),++d>=D.eventLag.minSamples&&a<D.eventLag.lagThreshold?(f.progress=100,clearInterval(b)):f.progress=100*(3/(a+3))},50)}return a}(),m=function(){function a(a){this.source=a,this.last=this.sinceLastUpdate=0,this.rate=D.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=F(this.source,"progress"))}return a.prototype.tick=function(a,b){var c;return null==b&&(b=F(this.source,"progress")),b>=100&&(this.done=!0),b===this.last?this.sinceLastUpdate+=a:(this.sinceLastUpdate&&(this.rate=(b-this.last)/this.sinceLastUpdate),this.catchup=(b-this.progress)/D.catchupTime,this.sinceLastUpdate=0,this.last=b),b>this.progress&&(this.progress+=this.catchup*a),c=1-Math.pow(this.progress/100,D.easeFactor),this.progress+=c*this.rate*a,this.progress=Math.min(this.lastProgress+D.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},a}(),L=null,H=null,r=null,M=null,p=null,s=null,j.running=!1,z=function(){return D.restartOnPushState?j.restart():void 0},null!=window.history.pushState&&(T=window.history.pushState,window.history.pushState=function(){return z(),T.apply(window.history,arguments)}),null!=window.history.replaceState&&(W=window.history.replaceState,window.history.replaceState=function(){return z(),W.apply(window.history,arguments)}),l={ajax:a,elements:d,document:c,eventLag:f},(B=function(){var a,c,d,e,f,g,h,i;for(j.sources=L=[],g=["ajax","elements","document","eventLag"],c=0,e=g.length;e>c;c++)a=g[c],D[a]!==!1&&L.push(new l[a](D[a]));for(i=null!=(h=D.extraSources)?h:[],d=0,f=i.length;f>d;d++)K=i[d],L.push(new K(D));return j.bar=r=new b,H=[],M=new m})(),j.stop=function(){return j.trigger("stop"),j.running=!1,r.destroy(),s=!0,null!=p&&("function"==typeof t&&t(p),p=null),B()},j.restart=function(){return j.trigger("restart"),j.stop(),j.start()},j.go=function(){var a;return j.running=!0,r.render(),a=C(),s=!1,p=G(function(b,c){var d,e,f,g,h,i,k,l,n,o,p,q,t,u,v,w;for(l=100-r.progress,e=p=0,f=!0,i=q=0,u=L.length;u>q;i=++q)for(K=L[i],o=null!=H[i]?H[i]:H[i]=[],h=null!=(w=K.elements)?w:[K],k=t=0,v=h.length;v>t;k=++t)g=h[k],n=null!=o[k]?o[k]:o[k]=new m(g),f&=n.done,n.done||(e++,p+=n.tick(b));return d=p/e,r.update(M.tick(b,d)),r.done()||f||s?(r.update(100),j.trigger("done"),setTimeout(function(){return r.finish(),j.running=!1,j.trigger("hide")},Math.max(D.ghostTime,Math.max(D.minTime-(C()-a),0)))):c()})},j.start=function(a){v(D,a),j.running=!0;try{r.render()}catch(b){i=b}return document.querySelector(".pace")?(j.trigger("start"),j.go()):setTimeout(j.start,50)},"function"==typeof define&&define.amd?define(function(){return j}):"object"==typeof exports?module.exports=j:D.startOnPageLoad&&j.start()}).call(this);
@@ -1,108 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-us">
3
- <head>
4
- <meta charset="UTF-8"/>
5
- <title>Using Bundler - RPSG</title>
6
- <meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
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=a05748f4c68340abcebe6fa7337ffcf4443a0aec"/>
11
- <script src="assets/js/pace.min.js"></script>
12
-
13
- <link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
14
- <link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png"/>
15
- <link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png"/>
16
- <link rel="manifest" href="assets/favicons/manifest.json"/>
17
- <link rel="mask-icon" href="assets/favicons/safari-pinned-tab.svg" color="#5bbad5"/>
18
- <!--
19
- <meta name="theme-color" content="#ffffff">
20
- -->
21
- </head>
22
- <body>
23
-
24
- <section class="page-header">
25
- <h1 class="project-name">Rock Paper Scissors Game</h1>
26
- <h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
27
-
28
- <a href="http://github.com/bag3318/RPSG" class="btn" target="_blank">View on GitHub</a>
29
- <a href="http://github.com/bag3318/RPSG/issues" target="_blank" class="btn">Report a Bug</a>
30
-
31
-
32
- <a href="http://github.com/bag3318/RPSG/zipball/gh-pages" class="btn">Download .zip</a>
33
- <a href="http://github.com/bag3318/RPSG/tarball/gh-pages" class="btn">Download .tar.gz</a>
34
-
35
- <br/>
36
-
37
- <a href="#site-nav" class="btn">Site Navigation</a>
38
-
39
-
40
- <a href="./" class="btn">Home</a>
41
-
42
- </section>
43
- <section class="main-content">
44
-
45
- <h1 id="utilizing-bundler">Utilizing Bundler</h1>
46
-
47
- <ul id="markdown-toc">
48
- <li><a href="#utilizing-bundler" id="markdown-toc-utilizing-bundler">Utilizing Bundler</a> <ul>
49
- <li><a href="#windowsmac-osx" id="markdown-toc-windowsmac-osx">Windows/Mac (OSX)</a> <ul>
50
- <li><a href="#using-bundle-install" id="markdown-toc-using-bundle-install">Using Bundle Install</a></li>
51
- <li><a href="#using-bundle-update" id="markdown-toc-using-bundle-update">Using Bundle Update</a></li>
52
- </ul>
53
- </li>
54
- </ul>
55
- </li>
56
- </ul>
57
-
58
- <blockquote>
59
- <p>Bundler is an easy and efficient way to get all the correct gem versions installed for <code class="highlighter-rouge">RPSG</code></p>
60
- </blockquote>
61
-
62
- <h2 id="windowsmac-osx">Windows/Mac (OSX)</h2>
63
-
64
- <h3 id="using-bundle-install">Using Bundle Install</h3>
65
-
66
- <ol>
67
- <li>Open <code class="highlighter-rouge">Command Prompt</code>/<code class="highlighter-rouge">Terminal</code> depending on OS</li>
68
- <li><code class="highlighter-rouge">cd</code> to the directory of the <code class="highlighter-rouge">Gemfile</code> in the <code class="highlighter-rouge">RPSG</code> repository folder
69
- <ul>
70
- <li>do download the <code class="highlighter-rouge">RPSG</code> repo folder, go <a href="https://github.com/bag3318/RPSG" target="_blank">here</a> and click <code class="highlighter-rouge">Download</code> then <code class="highlighter-rouge">Download ZIP</code></li>
71
- </ul>
72
- </li>
73
- <li>type <code class="highlighter-rouge">bundle install</code> and hit <kbd>Enter</kbd>/<kbd>Return</kbd> (depending on OS)</li>
74
- </ol>
75
-
76
- <h3 id="using-bundle-update">Using Bundle Update</h3>
77
-
78
- <ol>
79
- <li><code class="highlighter-rouge">cd</code> to the directory of the <code class="highlighter-rouge">Gemfile</code> in the <code class="highlighter-rouge">RPSG</code> repository folder</li>
80
- <li>type <code class="highlighter-rouge">bundle update</code> and hit <kbd>Enter</kbd>/<kbd>Return</kbd> (depending on OS)</li>
81
- </ol>
82
-
83
-
84
- <footer class="site-footer">
85
-
86
- <h2 id="site-nav">Site Navigation</h2>
87
- <table>
88
- <tr>
89
- <td><a href="./">Home</a></td>
90
- <td><a href="readme">README File</a></td>
91
- <td><a href="install">Install</a></td>
92
- <td><a href="update">Update</a></td>
93
- <td><a href="uninstall">Uninstall</a></td>
94
- <td><a href="code">Full Code</a></td>
95
- <td><a href="simple">Simple Code</td>
96
- <td><a href="bundler">Bundler</a></td>
97
- </tr>
98
- </table>
99
- <br/>
100
- <hr/>
101
- <span class="site-footer-owner"><a href="http://github.com/bag3318/RPSG" target="_blank">RPSG</a> is maintained by <a href="http://github.com/bag3318" target="_blank">bag3318</a>.</span><span><strong><a href="http://github.com/bag3318/RPSG" target="_blank">Source Code</a></strong></span>
102
-
103
- </footer>
104
- </section>
105
-
106
-
107
- </body>
108
- </html>
@@ -1,244 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-us">
3
- <head>
4
- <meta charset="UTF-8"/>
5
- <title>Complete Code - RPSG</title>
6
- <meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
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=a05748f4c68340abcebe6fa7337ffcf4443a0aec"/>
11
- <script src="assets/js/pace.min.js"></script>
12
-
13
- <link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
14
- <link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png"/>
15
- <link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png"/>
16
- <link rel="manifest" href="assets/favicons/manifest.json"/>
17
- <link rel="mask-icon" href="assets/favicons/safari-pinned-tab.svg" color="#5bbad5"/>
18
- <!--
19
- <meta name="theme-color" content="#ffffff">
20
- -->
21
- </head>
22
- <body>
23
-
24
- <section class="page-header">
25
- <h1 class="project-name">Rock Paper Scissors Game</h1>
26
- <h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
27
-
28
- <a href="http://github.com/bag3318/RPSG" class="btn" target="_blank">View on GitHub</a>
29
- <a href="http://github.com/bag3318/RPSG/issues" target="_blank" class="btn">Report a Bug</a>
30
-
31
-
32
- <a href="http://github.com/bag3318/RPSG/zipball/gh-pages" class="btn">Download .zip</a>
33
- <a href="http://github.com/bag3318/RPSG/tarball/gh-pages" class="btn">Download .tar.gz</a>
34
-
35
- <br/>
36
-
37
- <a href="#site-nav" class="btn">Site Navigation</a>
38
-
39
-
40
- <a href="./" class="btn">Home</a>
41
-
42
- </section>
43
- <section class="main-content">
44
-
45
- <!-- contains complete RPSG code -->
46
-
47
- <h1 id="complete-code">Complete Code</h1>
48
-
49
- <ul id="markdown-toc">
50
- <li><a href="#complete-code" id="markdown-toc-complete-code">Complete Code</a></li>
51
- </ul>
52
-
53
- <blockquote>
54
- <p>The complete code will look like this:</p>
55
- </blockquote>
56
-
57
- <div class="highlighter-rouge"><pre class="highlight"><code>% rpsg
58
- </code></pre>
59
- </div>
60
-
61
- <div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="c1">#!/usr/bin/env ruby</span>
62
-
63
- <span class="cm">=begin
64
- |====================================|
65
- | Req Ruby Ver | Req Ruby Gems Ver |
66
- |--------------|---------------------|
67
- | &gt;= v2.0.0 | &gt;= v2.6.0 |
68
- |====================================|
69
- =end</span>
70
-
71
- <span class="c1"># create master class for rpsg</span>
72
- <span class="k">class</span> <span class="nc">RockPaperScissorsGame</span>
73
-
74
- <span class="c1"># specify the version for the rubygem</span>
75
- <span class="k">module</span> <span class="nn">RPSG</span>
76
- <span class="c1"># create version constant for the rubygem</span>
77
- <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"0.4.1"</span>
78
- <span class="k">end</span>
79
-
80
- <span class="c1"># create module that holds all contents for this script</span>
81
- <span class="k">module</span> <span class="nn">ProtectedConstants</span>
82
-
83
- <span class="c1"># create 2d list of choices</span>
84
- <span class="kp">protected</span>
85
- <span class="no">CHOICES</span> <span class="o">=</span> <span class="p">[[</span><span class="s1">'r'</span><span class="p">,</span> <span class="s1">'rock'</span><span class="p">],</span> <span class="p">[</span><span class="s1">'p'</span><span class="p">,</span> <span class="s1">'paper'</span><span class="p">],</span> <span class="p">[</span><span class="s1">'s'</span><span class="p">,</span> <span class="s1">'scissors'</span><span class="p">]]</span>
86
-
87
- <span class="c1"># define entry to symbol (key to value) dictionary</span>
88
- <span class="kp">protected</span>
89
- <span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span>
90
- <span class="no">CHOICES</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:ROCK</span> <span class="p">,</span> <span class="no">CHOICES</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:ROCK</span> <span class="p">,</span>
91
- <span class="no">CHOICES</span><span class="p">[</span><span class="mi">1</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:PAPER</span> <span class="p">,</span> <span class="no">CHOICES</span><span class="p">[</span><span class="mi">1</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:PAPER</span> <span class="p">,</span>
92
- <span class="no">CHOICES</span><span class="p">[</span><span class="mi">2</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:SCISSORS</span><span class="p">,</span> <span class="no">CHOICES</span><span class="p">[</span><span class="mi">2</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="o">=&gt;</span> <span class="ss">:SCISSORS</span>
93
- <span class="p">}</span>
94
-
95
- <span class="c1"># define valid entries</span>
96
- <span class="kp">protected</span>
97
- <span class="no">VALID_ENTRIES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">keys</span>
98
-
99
- <span class="c1"># define computer choices</span>
100
- <span class="kp">protected</span>
101
- <span class="no">COMPUTER_CHOICES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">values</span>
102
-
103
- <span class="c1"># create winners 2d list array with format: winning choice, losing choice</span>
104
- <span class="kp">protected</span> <span class="c1"># make protected</span>
105
- <span class="no">WINNERS</span> <span class="o">=</span> <span class="p">[</span>
106
- <span class="p">[</span><span class="ss">:SCISSORS</span><span class="p">,</span> <span class="ss">:PAPER</span> <span class="p">],</span>
107
- <span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span> <span class="p">],</span>
108
- <span class="p">[</span><span class="ss">:ROCK</span> <span class="p">,</span> <span class="ss">:SCISSORS</span><span class="p">]</span>
109
- <span class="p">]</span>
110
-
111
- <span class="c1"># this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player</span>
112
- <span class="kp">protected</span>
113
- <span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">winning_choice</span><span class="p">,</span><span class="n">losing_choice</span><span class="o">|</span> <span class="p">[</span><span class="n">losing_choice</span><span class="p">,</span><span class="n">winning_choice</span><span class="p">]</span> <span class="p">}</span>
114
-
115
- <span class="k">end</span>
116
-
117
- <span class="c1"># protected_methods :ProtectedConstants</span>
118
-
119
- <span class="k">class</span> <span class="o">&lt;&lt;</span> <span class="nb">self</span>
120
- <span class="c1"># add continue method for asking the user if they want to play rock paper scissors</span>
121
- <span class="k">def</span> <span class="nf">continue</span><span class="p">(</span><span class="n">str1</span><span class="p">,</span><span class="n">str2</span><span class="p">,</span><span class="n">str3</span><span class="p">)</span>
122
- <span class="nb">puts</span> <span class="n">str1</span>
123
- <span class="nb">print</span> <span class="n">str2</span>
124
- <span class="nb">gets</span>
125
- <span class="nb">puts</span> <span class="n">str3</span>
126
- <span class="k">end</span>
127
- <span class="k">end</span>
128
-
129
- <span class="c1"># print out strings</span>
130
- <span class="n">continue</span><span class="p">(</span><span class="s2">"</span><span class="se">\n</span><span class="s2">You are about to enter a rock-paper-scissors best of 3 match."</span><span class="p">,</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Press the return/enter key to continue..."</span><span class="p">,</span> <span class="s2">""</span><span class="p">)</span>
131
-
132
- <span class="c1"># initialize variables</span>
133
- <span class="k">def</span> <span class="nf">initialize</span>
134
- <span class="c1"># initialize variables and set all equal to zero</span>
135
- <span class="vi">@player_score</span> <span class="o">=</span> <span class="vi">@computer_score</span> <span class="o">=</span> <span class="vi">@ties</span> <span class="o">=</span> <span class="mi">0</span>
136
- <span class="k">end</span>
137
-
138
- <span class="c1"># define play method, this will be the main function for playing rock paper scissors</span>
139
- <span class="k">def</span> <span class="nf">play</span><span class="p">(</span><span class="n">winning_score</span><span class="p">)</span>
140
- <span class="c1"># make while loop</span>
141
- <span class="k">while</span> <span class="vi">@player_score</span> <span class="o">&lt;</span> <span class="n">winning_score</span> <span class="o">&amp;&amp;</span> <span class="vi">@computer_score</span> <span class="o">&lt;</span> <span class="n">winning_score</span>
142
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Player score: </span><span class="si">#{</span><span class="vi">@player_score</span><span class="si">}</span><span class="s2">, "</span> <span class="o">+</span>
143
- <span class="s2">"Computer score: </span><span class="si">#{</span><span class="vi">@computer_score</span><span class="si">}</span><span class="s2">, Ties: </span><span class="si">#{</span><span class="vi">@ties</span><span class="si">}</span><span class="s2">.</span><span class="se">\n</span><span class="s2">"</span>
144
- <span class="n">player</span> <span class="o">=</span> <span class="no">PrivateMethods</span><span class="p">.</span><span class="nf">player_choice</span>
145
- <span class="n">computer</span> <span class="o">=</span> <span class="no">ProtectedConstants</span><span class="o">::</span><span class="no">COMPUTER_CHOICES</span><span class="p">.</span><span class="nf">sample</span> <span class="c1"># chooses a random option</span>
146
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Player chooses </span><span class="si">#{</span><span class="n">player</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">."</span>
147
- <span class="nb">puts</span> <span class="s2">"Computer chooses </span><span class="si">#{</span><span class="n">computer</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">.</span><span class="se">\n</span><span class="s2">"</span>
148
- <span class="k">case</span> <span class="no">PrivateMethods</span><span class="p">.</span><span class="nf">player_outcome</span> <span class="p">[</span><span class="n">player</span><span class="p">,</span> <span class="n">computer</span><span class="p">]</span>
149
- <span class="k">when</span> <span class="ss">:WIN</span>
150
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="si">#{</span><span class="n">player</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">capitalize</span><span class="si">}</span><span class="s2"> beats </span><span class="si">#{</span><span class="n">computer</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">, player wins the round.</span><span class="se">\n</span><span class="s2">"</span>
151
- <span class="vi">@player_score</span> <span class="o">+=</span> <span class="mi">1</span>
152
- <span class="k">when</span> <span class="ss">:LOSE</span>
153
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="si">#{</span><span class="n">computer</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">capitalize</span><span class="si">}</span><span class="s2"> beats </span><span class="si">#{</span><span class="n">player</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">, computer wins the round.</span><span class="se">\n</span><span class="s2">"</span>
154
- <span class="vi">@computer_score</span> <span class="o">+=</span> <span class="mi">1</span>
155
- <span class="k">else</span>
156
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Tie, choose again</span><span class="se">\n</span><span class="s2">"</span>
157
- <span class="vi">@ties</span> <span class="o">+=</span> <span class="mi">1</span>
158
- <span class="k">end</span>
159
- <span class="k">end</span>
160
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Final score: player: </span><span class="si">#{</span><span class="vi">@player_score</span><span class="si">}</span><span class="s2">, "</span> <span class="o">+</span>
161
- <span class="s2">"computer: </span><span class="si">#{</span><span class="vi">@computer_score</span><span class="si">}</span><span class="s2"> (ties: </span><span class="si">#{</span><span class="vi">@ties</span><span class="si">}</span><span class="s2">).</span><span class="se">\n</span><span class="s2">"</span>
162
- <span class="k">case</span> <span class="no">PrivateMethods</span><span class="p">.</span><span class="nf">final_outcome</span><span class="p">(</span><span class="vi">@player_score</span><span class="p">,</span> <span class="vi">@computer_score</span><span class="p">)</span>
163
- <span class="k">when</span> <span class="ss">:WIN</span>
164
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Player wins!</span><span class="se">\n</span><span class="s2">"</span>
165
- <span class="k">when</span> <span class="ss">:LOSE</span>
166
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Computer wins!</span><span class="se">\n</span><span class="s2">"</span>
167
- <span class="k">else</span>
168
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">It's a tie!</span><span class="se">\n</span><span class="s2">"</span>
169
- <span class="k">end</span>
170
- <span class="nb">print</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">[press the enter/return key to exit game]"</span>
171
- <span class="nb">gets</span>
172
- <span class="k">end</span>
173
-
174
- <span class="kp">private</span> <span class="c1"># make private</span>
175
- <span class="c1"># add module for private methods for the rpsg calculations</span>
176
- <span class="k">module</span> <span class="nn">PrivateMethods</span>
177
- <span class="k">class</span> <span class="o">&lt;&lt;</span> <span class="nb">self</span>
178
- <span class="c1"># make a definition that asks for the players choice</span>
179
- <span class="k">def</span> <span class="nf">player_choice</span>
180
- <span class="kp">loop</span> <span class="k">do</span>
181
- <span class="nb">print</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">Choose: Rock (r), Paper (p), or Scissors (s): "</span>
182
- <span class="n">choice</span> <span class="o">=</span> <span class="nb">gets</span><span class="p">.</span><span class="nf">chomp</span><span class="p">.</span><span class="nf">downcase</span>
183
- <span class="k">if</span> <span class="no">ProtectedConstants</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>
184
- <span class="k">return</span> <span class="no">ProtectedConstants</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>
185
- <span class="k">elsif</span> <span class="n">choice</span> <span class="o">!=</span> <span class="no">ProtectedConstants</span><span class="o">::</span><span class="no">VALID_ENTRIES</span>
186
- <span class="nb">puts</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">That entry is invalid. Please re-enter.</span><span class="se">\n</span><span class="s2">"</span>
187
- <span class="k">else</span>
188
- <span class="k">return</span> <span class="kp">nil</span>
189
- <span class="k">end</span>
190
- <span class="k">end</span>
191
- <span class="k">end</span>
192
- <span class="c1"># define outcomes of players choice against cpu</span>
193
- <span class="k">def</span> <span class="nf">player_outcome</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
194
- <span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="no">ProtectedConstants</span><span class="o">::</span><span class="no">WINNERS</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
195
- <span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="no">ProtectedConstants</span><span class="o">::</span><span class="no">LOSERS</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
196
- <span class="k">return</span> <span class="ss">:TIE</span> <span class="k">if</span> <span class="o">!</span><span class="ss">:WIN</span> <span class="o">|</span> <span class="o">!</span><span class="ss">:LOSE</span>
197
- <span class="k">end</span>
198
- <span class="c1"># define final outcome that gives the result of who one the whole match</span>
199
- <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>
200
- <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>
201
- <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>
202
- <span class="c1"># return :TIE if pl = co</span>
203
- <span class="c1"># there will never be a tie for the final outcome due to the code in the `play()` method</span>
204
- <span class="k">end</span>
205
- <span class="k">end</span>
206
- <span class="k">end</span>
207
- <span class="kp">public</span> <span class="c1"># make public again</span>
208
-
209
- <span class="c1"># private_methods :PrivateMethods</span>
210
-
211
- <span class="k">end</span>
212
-
213
- <span class="no">RockPaperScissorsGame</span><span class="p">.</span><span class="nf">new</span><span class="p">.</span><span class="nf">play</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="c1"># best out of 3</span>
214
-
215
- <span class="vg">$end</span>
216
- </code></pre>
217
- </div>
218
-
219
-
220
- <footer class="site-footer">
221
-
222
- <h2 id="site-nav">Site Navigation</h2>
223
- <table>
224
- <tr>
225
- <td><a href="./">Home</a></td>
226
- <td><a href="readme">README File</a></td>
227
- <td><a href="install">Install</a></td>
228
- <td><a href="update">Update</a></td>
229
- <td><a href="uninstall">Uninstall</a></td>
230
- <td><a href="code">Full Code</a></td>
231
- <td><a href="simple">Simple Code</td>
232
- <td><a href="bundler">Bundler</a></td>
233
- </tr>
234
- </table>
235
- <br/>
236
- <hr/>
237
- <span class="site-footer-owner"><a href="http://github.com/bag3318/RPSG" target="_blank">RPSG</a> is maintained by <a href="http://github.com/bag3318" target="_blank">bag3318</a>.</span><span><strong><a href="http://github.com/bag3318/RPSG" target="_blank">Source Code</a></strong></span>
238
-
239
- </footer>
240
- </section>
241
-
242
-
243
- </body>
244
- </html>
@@ -1,83 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-us">
3
- <head>
4
- <meta charset="UTF-8"/>
5
- <title>Rock Paper Scissors Game - RPSG</title>
6
- <meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
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=a05748f4c68340abcebe6fa7337ffcf4443a0aec"/>
11
- <script src="assets/js/pace.min.js"></script>
12
-
13
- <link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
14
- <link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png"/>
15
- <link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png"/>
16
- <link rel="manifest" href="assets/favicons/manifest.json"/>
17
- <link rel="mask-icon" href="assets/favicons/safari-pinned-tab.svg" color="#5bbad5"/>
18
- <!--
19
- <meta name="theme-color" content="#ffffff">
20
- -->
21
- </head>
22
- <body>
23
-
24
- <section class="page-header">
25
- <h1 class="project-name">Rock Paper Scissors Game</h1>
26
- <h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
27
-
28
- <a href="http://github.com/bag3318/RPSG" class="btn" target="_blank">View on GitHub</a>
29
- <a href="http://github.com/bag3318/RPSG/issues" target="_blank" class="btn">Report a Bug</a>
30
-
31
-
32
- <a href="http://github.com/bag3318/RPSG/zipball/gh-pages" class="btn">Download .zip</a>
33
- <a href="http://github.com/bag3318/RPSG/tarball/gh-pages" class="btn">Download .tar.gz</a>
34
-
35
- <br/>
36
-
37
- <a href="#site-nav" class="btn">Site Navigation</a>
38
-
39
-
40
- </section>
41
- <section class="main-content">
42
-
43
- <h1 id="rock-paper-scissors-game">Rock Paper Scissors Game</h1>
44
-
45
- <ul id="markdown-toc">
46
- <li><a href="#rock-paper-scissors-game" id="markdown-toc-rock-paper-scissors-game">Rock Paper Scissors Game</a></li>
47
- </ul>
48
-
49
- <blockquote>
50
- <p>Welcome to my <strong>RPSG</strong> home site. I created my <code class="highlighter-rouge">RPSG</code> gem with <strong>Ruby</strong>, the programming language. <!-- <br/> --></p>
51
- </blockquote>
52
-
53
- <blockquote>
54
- <p><em style="text-decoration: underline;"><strong>Please Enjoy! :)</strong></em></p>
55
- </blockquote>
56
-
57
-
58
-
59
- <footer class="site-footer">
60
-
61
- <h2 id="site-nav">Site Navigation</h2>
62
- <table>
63
- <tr>
64
- <td><a href="./">Home</a></td>
65
- <td><a href="readme">README File</a></td>
66
- <td><a href="install">Install</a></td>
67
- <td><a href="update">Update</a></td>
68
- <td><a href="uninstall">Uninstall</a></td>
69
- <td><a href="code">Full Code</a></td>
70
- <td><a href="simple">Simple Code</td>
71
- <td><a href="bundler">Bundler</a></td>
72
- </tr>
73
- </table>
74
- <br/>
75
- <hr/>
76
- <span class="site-footer-owner"><a href="http://github.com/bag3318/RPSG" target="_blank">RPSG</a> is maintained by <a href="http://github.com/bag3318" target="_blank">bag3318</a>.</span><span><strong><a href="http://github.com/bag3318/RPSG" target="_blank">Source Code</a></strong></span>
77
-
78
- </footer>
79
- </section>
80
-
81
-
82
- </body>
83
- </html>