PlayRockPaperScissorsGame 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.md +1 -0
  5. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/jekyll-theme-cayman.scssc +0 -0
  6. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/normalize.scssc +0 -0
  7. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/rouge-github.scssc +0 -0
  8. data/docs/.sass-cache/0bc0c5468b7b8503d88d58cb41833a568e45e28c/variables.scssc +0 -0
  9. data/docs/CODE_OF_CONDUCT.md +74 -0
  10. data/docs/CONTRIBUTING.md +33 -0
  11. data/docs/Gemfile +4 -0
  12. data/docs/LICENSE +116 -0
  13. data/docs/Testing.md +21 -0
  14. data/docs/_config.yml +5 -1
  15. data/docs/_layouts/default.html +48 -0
  16. data/docs/_sass/jekyll-theme-cayman.scss +345 -0
  17. data/docs/_sass/normalize.scss +424 -0
  18. data/docs/_sass/rouge-github.scss +209 -0
  19. data/docs/_sass/variables.scss +23 -0
  20. data/docs/_site/CODE_OF_CONDUCT.md +74 -0
  21. data/docs/_site/CONTRIBUTING.md +33 -0
  22. data/docs/_site/Gemfile +4 -0
  23. data/docs/_site/LICENSE +116 -0
  24. data/docs/_site/Testing.html +64 -0
  25. data/docs/_site/Testing.md +21 -0
  26. data/docs/_site/another-page.html +43 -0
  27. data/docs/_site/assets/css/style.css +318 -0
  28. data/docs/_site/index.html +77 -0
  29. data/docs/_site/index.md +33 -0
  30. data/docs/_site/jekyll-theme-cayman.gemspec +18 -0
  31. data/docs/_site/script/bootstrap +6 -0
  32. data/docs/_site/script/cibuild +6 -0
  33. data/docs/_site/script/release +42 -0
  34. data/docs/_site/script/server +3 -0
  35. data/docs/_site/thumbnail.png +0 -0
  36. data/docs/another-page.md +9 -0
  37. data/docs/assets/css/style.scss +4 -0
  38. data/docs/index.md +33 -0
  39. data/docs/jekyll-theme-cayman.gemspec +18 -0
  40. data/docs/script/bootstrap +6 -0
  41. data/docs/script/cibuild +6 -0
  42. data/docs/script/release +42 -0
  43. data/docs/script/server +3 -0
  44. data/docs/thumbnail.png +0 -0
  45. data/exec/rps.bash +67 -25
  46. data/exec/uninstall.sh +5 -4
  47. data/lib/rps/version.rb +1 -1
  48. data/rps.gemspec +1 -1
  49. metadata +40 -1
  50. metadata.gz.sig +1 -1
@@ -0,0 +1,77 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Play Rock Paper Scissors Game</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=41522cc4e6b006dface8ae153e154ead269c7b81">
11
+ </head>
12
+ <body>
13
+ <section class="page-header">
14
+ <h1 class="project-name">Play Rock Paper Scissors Game</h1>
15
+ <h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
16
+
17
+ <a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
18
+
19
+
20
+ <a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
21
+ <a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
22
+
23
+ </section>
24
+
25
+ <section class="main-content">
26
+
27
+ <h1 id="rock-paper-scissors">Rock Paper Scissors</h1>
28
+
29
+ <h2 id="how-to-run-and-install">How to Run and Install</h2>
30
+
31
+ <h3 id="install-and-run-on-mac">Install and Run on Mac</h3>
32
+
33
+ <ol>
34
+ <li>Run the <code class="highlighter-rouge">rps.bash</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
35
+ </ol>
36
+
37
+ <h4 id="running">Running</h4>
38
+
39
+ <ol>
40
+ <li>Open the <code class="highlighter-rouge">Terminal</code></li>
41
+ <li>Type in: <code class="highlighter-rouge">rps</code>, or <code class="highlighter-rouge">PlayRockPaperScissorsGame</code></li>
42
+ <li>Hit <kbd>return</kbd></li>
43
+ </ol>
44
+
45
+ <h4 id="uninstalling">Uninstalling</h4>
46
+
47
+ <ol>
48
+ <li>Run the <code class="highlighter-rouge">uninstaller.sh</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
49
+ </ol>
50
+
51
+ <h3 id="install-and-run-on-windows">Install and Run on Windows</h3>
52
+
53
+ <ol>
54
+ <li>Download and install Ruby for Windows (if not already installed); download <a href="https://rubyinstaller.org/downloads/">here</a></li>
55
+ <li>Open <code class="highlighter-rouge">cmd</code> and type in: <code class="highlighter-rouge">gem install PlayRockPaperScissorsGame</code>; hit <kbd>enter</kbd></li>
56
+ <li>Run the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)</li>
57
+ </ol>
58
+
59
+ <h4 id="running-1">Running</h4>
60
+
61
+ <ol>
62
+ <li>Open the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)</li>
63
+ </ol>
64
+
65
+
66
+
67
+ <footer class="site-footer">
68
+
69
+ <span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
70
+
71
+ <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
72
+ </footer>
73
+ </section>
74
+
75
+
76
+ </body>
77
+ </html>
@@ -0,0 +1,33 @@
1
+ [//]: # (start)
2
+
3
+ Rock Paper Scissors
4
+ ===================
5
+
6
+ How to Run and Install
7
+ ----------------------
8
+
9
+ ### Install and Run on Mac
10
+
11
+ 1. Run the `rps.bash` file (located in the `exec` folder) with the `Terminal`
12
+
13
+ #### Running
14
+
15
+ 1. Open the `Terminal`
16
+ 2. Type in: `rps`, or `PlayRockPaperScissorsGame`
17
+ 3. Hit <kbd>return</kbd>
18
+
19
+ #### Uninstalling
20
+
21
+ 1. Run the `uninstaller.sh` file (located in the `exec` folder) with the `Terminal`
22
+
23
+ ### Install and Run on Windows
24
+
25
+ 1. Download and install Ruby for Windows (if not already installed); download [here](https://rubyinstaller.org/downloads/)
26
+ 2. Open `cmd` and type in: `gem install PlayRockPaperScissorsGame`; hit <kbd>enter</kbd>
27
+ 3. Run the `rps.bat` file (located in the `exec` folder)
28
+
29
+ #### Running
30
+
31
+ 1. Open the `rps.bat` file (located in the `exec` folder)
32
+
33
+ [//]: # (end)
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "jekyll-theme-cayman"
5
+ s.version = "0.0.4"
6
+ s.license = "CC0-1.0"
7
+ s.authors = ["Jason Long", "GitHub, Inc."]
8
+ s.email = ["opensource+jekyll-theme-cayman@github.com"]
9
+ s.homepage = "https://github.com/pages-themes/cayman"
10
+ s.summary = "Cayman is a Jekyll theme for GitHub Pages"
11
+
12
+ s.files = `git ls-files -z`.split("\x0").select do |f|
13
+ f.match(%r{^((_includes|_layouts|_sass|assets)/|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
14
+ end
15
+
16
+ s.platform = Gem::Platform::RUBY
17
+ s.add_runtime_dependency "jekyll", "~> 3.3"
18
+ end
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ gem install bundler
6
+ bundle install
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ bundle exec jekyll build
6
+ gem build jekyll-theme-cayman.gemspec
@@ -0,0 +1,42 @@
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"
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec jekyll serve
Binary file
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ ## Welcome to another page
6
+
7
+ _yay_
8
+
9
+ [back](./)
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import 'jekyll-theme-cayman';
data/docs/index.md ADDED
@@ -0,0 +1,33 @@
1
+ [//]: # (start)
2
+
3
+ Rock Paper Scissors
4
+ ===================
5
+
6
+ How to Run and Install
7
+ ----------------------
8
+
9
+ ### Install and Run on Mac
10
+
11
+ 1. Run the `rps.bash` file (located in the `exec` folder) with the `Terminal`
12
+
13
+ #### Running
14
+
15
+ 1. Open the `Terminal`
16
+ 2. Type in: `rps`, or `PlayRockPaperScissorsGame`
17
+ 3. Hit <kbd>return</kbd>
18
+
19
+ #### Uninstalling
20
+
21
+ 1. Run the `uninstaller.sh` file (located in the `exec` folder) with the `Terminal`
22
+
23
+ ### Install and Run on Windows
24
+
25
+ 1. Download and install Ruby for Windows (if not already installed); download [here](https://rubyinstaller.org/downloads/)
26
+ 2. Open `cmd` and type in: `gem install PlayRockPaperScissorsGame`; hit <kbd>enter</kbd>
27
+ 3. Run the `rps.bat` file (located in the `exec` folder)
28
+
29
+ #### Running
30
+
31
+ 1. Open the `rps.bat` file (located in the `exec` folder)
32
+
33
+ [//]: # (end)
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "jekyll-theme-cayman"
5
+ s.version = "0.0.4"
6
+ s.license = "CC0-1.0"
7
+ s.authors = ["Jason Long", "GitHub, Inc."]
8
+ s.email = ["opensource+jekyll-theme-cayman@github.com"]
9
+ s.homepage = "https://github.com/pages-themes/cayman"
10
+ s.summary = "Cayman is a Jekyll theme for GitHub Pages"
11
+
12
+ s.files = `git ls-files -z`.split("\x0").select do |f|
13
+ f.match(%r{^((_includes|_layouts|_sass|assets)/|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
14
+ end
15
+
16
+ s.platform = Gem::Platform::RUBY
17
+ s.add_runtime_dependency "jekyll", "~> 3.3"
18
+ end
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ gem install bundler
6
+ bundle install
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ bundle exec jekyll build
6
+ gem build jekyll-theme-cayman.gemspec
@@ -0,0 +1,42 @@
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"
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec jekyll serve
Binary file
data/exec/rps.bash CHANGED
@@ -1,31 +1,73 @@
1
1
  #!/bin/bash
2
2
 
3
3
  master() {
4
- echo "Would you like to install the RPS gem and what is needed for it?";
5
- process() {
6
- `sudo xcode-select --install`;
7
- `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`;
8
- `\curl -sSL https://get.rvm.io | bash -s stable --ruby`;
9
- `gem install PlayRockPaperScissorsGame`;
4
+
5
+ normal=$(tput sgr0); # Select normal mode
6
+ bold=`tput bold`; # Select bold mode
7
+ nonbold=`tput sgr0` # Select non-bold mode
8
+ underline=`tput smul`; # Select underline mode
9
+ nonunderline=`tput rmul`; # Select non-underline mode
10
+
11
+ echo "${bold}Would you like to install the RPS gem and what is needed for it?${nonbold}";
12
+ processes() {
13
+ process() {
14
+ sudo xcode-select --install;
15
+ }
16
+ process1() {
17
+ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
18
+ \curl -sSL https://get.rvm.io | bash -s stable --ruby;
19
+ osascript -e "
20
+ tell application \"Terminal\"
21
+ do script \"gem install PlayRockPaperScissorsGame; $1\"
22
+ end tell";
23
+ echo 'Finished!';
24
+ }
25
+ }
26
+ processes;
27
+ confirmations() {
28
+ confirm() {
29
+ echo "${bold}Press Y to install, or press N to cancel${nonbold}";
30
+ while read -r -n 1 -s answer; do
31
+ if [[ $answer = [YyNn] ]]; then
32
+ [[ $answer = [Yy] ]] && retval=0;
33
+ [[ $answer = [Nn] ]] && retval=1;
34
+ break;
35
+ fi;
36
+ done;
37
+ return $retval;
38
+ }
39
+ confirm1() {
40
+ echo "${bold}PLEASE WAIT UNTIL XCODE COMMAND LINE TOOLS ARE DONE INSTALLING!";
41
+ echo "If you get an error that says you already installed it, then please continue.";
42
+ echo "Press C to continue...${nonbold}"
43
+ while read -r -n 1 -s answer; do
44
+ if [[ $answer = [Cc] ]]; then
45
+ [[ $answer = [Cc] ]] && retval=0;
46
+ break;
47
+ fi;
48
+ done;
49
+ return $retval;
50
+ }
10
51
  }
11
- confirm() {
12
- echo "Press Y to install, or press N to cancel";
13
- while read -r -n 1 -s answer; do
14
- if [[ $answer = [YyNn] ]]; then
15
- [[ $answer = [Yy] ]] && retval=0;
16
- [[ $answer = [Nn] ]] && retval=1;
17
- break;
18
- fi;
19
- done;
20
- return $retval;
21
- }
22
- init() {
23
- if confirm; then
24
- process;
25
- else
26
- exit;
27
- fi;
52
+ confirmations;
53
+ initFunctions() {
54
+ init() {
55
+ if confirm; then
56
+ process;
57
+ else
58
+ exit;
59
+ fi;
60
+ }
61
+ init;
62
+ init1() {
63
+ if confirm1; then
64
+ process1;
65
+ else
66
+ exit;
67
+ fi;
68
+ }
69
+ init1
28
70
  }
29
- init;
71
+ initFunctions;
30
72
  }
31
- master;
73
+ master;
data/exec/uninstall.sh CHANGED
@@ -3,10 +3,11 @@
3
3
  master() {
4
4
  echo "Would you like to Uninstall the RPS gem, Ruby Gems, Ruby, and xcode command line tools?";
5
5
  process() {
6
- `sudo rm -rf /Library/Developer/CommandLineTools`;
7
- `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"`;
8
- `rvm implode`;
9
- `gem uninstall PlayRockPaperScissorsGame`;
6
+ sudo rm -rf /Library/Developer/CommandLineTools;
7
+ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)";
8
+ rvm implode;
9
+ gem uninstall PlayRockPaperScissorsGame;
10
+ echo "Finished!";
10
11
  }
11
12
  confirm() {
12
13
  echo "Press Y to uninstall, or press N to cancel";