rpsg 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/PrivateMethods.html +1 -1
- data/doc/created.rid +3 -3
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/lib/PrivateMethods.rb +1 -1
- data/lib/rpsg/version.rb +1 -1
- data/rpsg.gemspec +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33317191236a0f013627ec49e3852fbae27ea999
|
4
|
+
data.tar.gz: 60a7ae7ee717cda5ea438ad17d30c235ab465094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff729028bc590ba3cb61a652ba3343356b0a37b3acba0c6997dbf7453843878f5c8c6bbe1b3a2c1c8e703d06650b1113edd7544922401ed07af688fe9118a18e
|
7
|
+
data.tar.gz: ca2e14be8c2ec97bda23275ef08080df7beeaa00dee95bd67546965ac15d1b182deea556b4ad62e2f3532d4cbd5d7f27b170db5b529c77eabecbd1c81c9b16c9
|
data/doc/PrivateMethods.html
CHANGED
@@ -164,7 +164,7 @@
|
|
164
164
|
<pre><span class="ruby-comment"># File lib/PrivateMethods.rb, line 5</span>
|
165
165
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">player_choice</span>
|
166
166
|
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
167
|
-
<span class="ruby-identifier">print</span> <span class="ruby-string">"\nChoose: Rock (r), Paper (p), or Scissors (s):
|
167
|
+
<span class="ruby-identifier">print</span> <span class="ruby-string">"\nChoose: Rock (r), Paper (p), or Scissors (s): "</span>
|
168
168
|
<span class="ruby-identifier">choice</span> = <span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">downcase</span>
|
169
169
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">Constants</span><span class="ruby-operator">::</span><span class="ruby-constant">NTRY_TO_SYM</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">choice</span>)
|
170
170
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Constants</span><span class="ruby-operator">::</span><span class="ruby-constant">NTRY_TO_SYM</span>[<span class="ruby-identifier">choice</span>]
|
data/doc/created.rid
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
Thu, 12 Oct 2017
|
1
|
+
Thu, 12 Oct 2017 18:37:45 -0700
|
2
2
|
lib/Constants.rb Thu, 12 Oct 2017 14:19:30 -0700
|
3
3
|
lib/Main.rb Thu, 12 Oct 2017 16:48:08 -0700
|
4
|
-
lib/PrivateMethods.rb Thu, 12 Oct 2017
|
5
|
-
lib/rpsg/version.rb Thu, 12 Oct 2017
|
4
|
+
lib/PrivateMethods.rb Thu, 12 Oct 2017 18:36:58 -0700
|
5
|
+
lib/rpsg/version.rb Thu, 12 Oct 2017 18:24:34 -0700
|
data/doc/js/navigation.js.gz
CHANGED
Binary file
|
data/doc/js/search_index.js.gz
CHANGED
Binary file
|
data/doc/js/searcher.js.gz
CHANGED
Binary file
|
data/lib/PrivateMethods.rb
CHANGED
@@ -4,7 +4,7 @@ module PrivateMethods
|
|
4
4
|
# make a definition that asks for the players choice
|
5
5
|
def player_choice
|
6
6
|
loop do
|
7
|
-
print "\nChoose: Rock (r), Paper (p), or Scissors (s):
|
7
|
+
print "\nChoose: Rock (r), Paper (p), or Scissors (s): "
|
8
8
|
choice = gets.chomp.downcase
|
9
9
|
if Constants::NTRY_TO_SYM.key?(choice)
|
10
10
|
return Constants::NTRY_TO_SYM[choice]
|
data/lib/rpsg/version.rb
CHANGED
data/rpsg.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "rpsg"
|
3
|
-
spec.version = "0.2.
|
3
|
+
spec.version = "0.2.3"
|
4
4
|
spec.date = "2017-10-12"
|
5
5
|
spec.summary = "A Rock Paper Scissors Game Ruby Gem"
|
6
6
|
spec.description = <<-EOF
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
Now you can play rock paper scissors on your computer whenever you'd like! :)
|
9
9
|
EOF
|
10
10
|
spec.author = "bag3318"
|
11
|
-
spec.email = ""
|
12
|
-
spec.homepage = "https://
|
11
|
+
spec.email = "disclosed"
|
12
|
+
spec.homepage = "https://github.com/bag3318/RPSG"
|
13
13
|
spec.platform = Gem::Platform::RUBY
|
14
14
|
spec.require_paths = ["lib"]
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.bindir = "bin"
|
25
25
|
spec.metadata = {
|
26
26
|
"issue_tracker" => "https://github.com/bag3318/RPSG/issues/",
|
27
|
-
"source_code" => "https://github.com/bag3318/RPSG"
|
27
|
+
"source_code" => "https://github.com/bag3318/RPSG/"
|
28
28
|
}
|
29
29
|
spec.executables << "rpsg"
|
30
30
|
spec.requirements << "A Windows or Mac computer"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpsg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
version: 5.1.0
|
93
93
|
description: " A Ruby-programmed rock paper scissors game. \n Now you can play
|
94
94
|
rock paper scissors on your computer whenever you'd like! :)\n"
|
95
|
-
email:
|
95
|
+
email: disclosed
|
96
96
|
executables:
|
97
97
|
- rpsg
|
98
98
|
extensions: []
|
@@ -160,12 +160,12 @@ files:
|
|
160
160
|
- lib/rpsg/version.rb
|
161
161
|
- rpsg.gemspec
|
162
162
|
- test/rpsg.rb
|
163
|
-
homepage: https://
|
163
|
+
homepage: https://github.com/bag3318/RPSG
|
164
164
|
licenses:
|
165
165
|
- MIT
|
166
166
|
metadata:
|
167
167
|
issue_tracker: https://github.com/bag3318/RPSG/issues/
|
168
|
-
source_code: https://github.com/bag3318/RPSG
|
168
|
+
source_code: https://github.com/bag3318/RPSG/
|
169
169
|
post_install_message: " Thanks for installing! \n I hope you will have fun playing
|
170
170
|
rock paper scissors! :)\n"
|
171
171
|
rdoc_options: []
|