rpsg 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f7b37b3919a94dc8db713df202111e4a973e869
4
- data.tar.gz: 60ebeb201bbb4433d0c986dc69bbef40a3e1cfbe
3
+ metadata.gz: d01fe003e7cef55d3f947aca68275ba69ddc01ec
4
+ data.tar.gz: 925a7ef416990b2a4e52dbfb7a0b3ecc9fcf31b1
5
5
  SHA512:
6
- metadata.gz: 24eccb1c2fdab5c688556896711051965ad4137264a19018aa97b9f47f0e23a57a7adc78b5141b42ac3e41d6339f9e6a0ce9806096602ca9097ea73b90b7dddf
7
- data.tar.gz: 2f98f193f39670da4aad309eabaa41b7b429031308c74807ef1baee4d82f56def43d9a5d47504b088ae4f29e6c65dc3768c624e857ebb89ca34d23da81b8658c
6
+ metadata.gz: 9597e79b36fafadcb0558ea7ce3dc773cbbb8b61d791192d4288bc607adca9ba02d2d01c4ec9b0e80ae0820c2e608fa6e0a46b41a89b204cfa58d16dfe5d3149
7
+ data.tar.gz: 4b147de32200e27bfd1613359eeb12111ccc4ebe9a5e01df5be13c34d20dda18a3cabbc7492c1926892ea3ee316db822c51295426a8417d038f312cff71d1aa6
data/Rakefile CHANGED
@@ -11,5 +11,5 @@ end
11
11
 
12
12
  RDoc::Task.new do |rdoc|
13
13
  # rdoc.main = "README.rdoc"
14
- rdoc.rdoc_files.include("README.md", "lib", "bin", "test/rpsg.rb")
14
+ rdoc.rdoc_files.include("README.md", "lib")
15
15
  end
data/bin/rpsg CHANGED
@@ -1,8 +1,7 @@
1
- #!/usr/bin/env rubyn
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  lib = File.expand_path("../../lib", __FILE__)
4
4
 
5
-
6
5
  $:.unshift(lib)
7
6
 
8
7
  load "Main.rb"
@@ -90,6 +90,8 @@
90
90
 
91
91
  <section class="description">
92
92
 
93
+ <p>create master class</p>
94
+
93
95
  </section>
94
96
 
95
97
 
@@ -131,7 +133,7 @@ scissors</p>
131
133
 
132
134
 
133
135
  <div class="method-source-code" id="continue-source">
134
- <pre><span class="ruby-comment"># File lib/Main.rb, line 11</span>
136
+ <pre><span class="ruby-comment"># File lib/Main.rb, line 12</span>
135
137
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">continue</span>(<span class="ruby-identifier">str1</span>,<span class="ruby-identifier">str2</span>,<span class="ruby-identifier">str3</span>)
136
138
  <span class="ruby-identifier">puts</span> <span class="ruby-identifier">str1</span>
137
139
  <span class="ruby-identifier">print</span> <span class="ruby-identifier">str2</span>
@@ -167,7 +169,7 @@ scissors</p>
167
169
 
168
170
 
169
171
  <div class="method-source-code" id="new-source">
170
- <pre><span class="ruby-comment"># File lib/Main.rb, line 23</span>
172
+ <pre><span class="ruby-comment"># File lib/Main.rb, line 24</span>
171
173
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
172
174
  <span class="ruby-comment"># set all equal to zero</span>
173
175
  <span class="ruby-ivar">@player_score</span> = <span class="ruby-ivar">@computer_score</span> = <span class="ruby-ivar">@ties</span> = <span class="ruby-value">0</span>
@@ -210,7 +212,7 @@ scissors</p>
210
212
 
211
213
 
212
214
  <div class="method-source-code" id="play-source">
213
- <pre><span class="ruby-comment"># File lib/Main.rb, line 29</span>
215
+ <pre><span class="ruby-comment"># File lib/Main.rb, line 30</span>
214
216
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">winning_score</span>)
215
217
  <span class="ruby-comment"># make while loop</span>
216
218
  <span class="ruby-keyword">while</span> <span class="ruby-ivar">@player_score</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">winning_score</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@computer_score</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">winning_score</span>
data/html/created.rid CHANGED
@@ -1,8 +1,6 @@
1
- Thu, 12 Oct 2017 15:00:25 -0700
1
+ Thu, 12 Oct 2017 15:09:33 -0700
2
2
  README.md Thu, 12 Oct 2017 12:13:30 -0700
3
3
  lib/Constants.rb Thu, 12 Oct 2017 14:19:30 -0700
4
- lib/Main.rb Thu, 12 Oct 2017 14:57:30 -0700
4
+ lib/Main.rb Thu, 12 Oct 2017 15:08:54 -0700
5
5
  lib/PrivateMethods.rb Thu, 12 Oct 2017 13:53:33 -0700
6
- lib/rpsg/version.rb Thu, 12 Oct 2017 14:45:39 -0700
7
- bin/rpsg Thu, 12 Oct 2017 14:57:41 -0700
8
- test/rpsg.rb Thu, 12 Oct 2017 14:13:08 -0700
6
+ lib/rpsg/version.rb Thu, 12 Oct 2017 15:04:34 -0700
Binary file
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","continue()","final_outcome()","new()","play()","player_choice()","player_outcome()","readme"],"longSearchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","rockpaperscissorsgame::continue()","privatemethods::final_outcome()","rockpaperscissorsgame::new()","rockpaperscissorsgame#play()","privatemethods::player_choice()","privatemethods::player_outcome()",""],"info":[["Constants","","Constants.html","","<p>create module that holds all contents for this script\n"],["PrivateMethods","","PrivateMethods.html","","<p>add module for private methods for the rpsg calculations\n"],["RPSG","","RPSG.html","","<p>specify the version for the rubygem\n"],["RockPaperScissorsGame","","RockPaperScissorsGame.html","",""],["continue","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-continue","(str1,str2,str3)","<p>add continue method for asking the user if they want to play rock paper\nscissors\n"],["final_outcome","PrivateMethods","PrivateMethods.html#method-c-final_outcome","(pl,co)","<p>define final outcome that gives the result of who one the whole match\n"],["new","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-new","()","<p>initialize variables\n"],["play","RockPaperScissorsGame","RockPaperScissorsGame.html#method-i-play","(winning_score)","<p>define play method, this will be the main function for playing rock paper\nscissors\n"],["player_choice","PrivateMethods","PrivateMethods.html#method-c-player_choice","()","<p>make a definition that asks for the players choice\n"],["player_outcome","PrivateMethods","PrivateMethods.html#method-c-player_outcome","(plays)","<p>define outcomes of players choice against cpu\n"],["README","","README_md.html","","<p>RPSG (Rock Paper Scissors Game)\n<p>Requirements\n<p>For Windows\n"]]}}
1
+ var search_data = {"index":{"searchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","continue()","final_outcome()","new()","play()","player_choice()","player_outcome()","readme"],"longSearchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","rockpaperscissorsgame::continue()","privatemethods::final_outcome()","rockpaperscissorsgame::new()","rockpaperscissorsgame#play()","privatemethods::player_choice()","privatemethods::player_outcome()",""],"info":[["Constants","","Constants.html","","<p>create module that holds all contents for this script\n"],["PrivateMethods","","PrivateMethods.html","","<p>add module for private methods for the rpsg calculations\n"],["RPSG","","RPSG.html","","<p>specify the version for the rubygem\n"],["RockPaperScissorsGame","","RockPaperScissorsGame.html","","<p>create master class\n"],["continue","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-continue","(str1,str2,str3)","<p>add continue method for asking the user if they want to play rock paper\nscissors\n"],["final_outcome","PrivateMethods","PrivateMethods.html#method-c-final_outcome","(pl,co)","<p>define final outcome that gives the result of who one the whole match\n"],["new","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-new","()","<p>initialize variables\n"],["play","RockPaperScissorsGame","RockPaperScissorsGame.html#method-i-play","(winning_score)","<p>define play method, this will be the main function for playing rock paper\nscissors\n"],["player_choice","PrivateMethods","PrivateMethods.html#method-c-player_choice","()","<p>make a definition that asks for the players choice\n"],["player_outcome","PrivateMethods","PrivateMethods.html#method-c-player_outcome","(plays)","<p>define outcomes of players choice against cpu\n"],["README","","README_md.html","","<p>RPSG (Rock Paper Scissors Game)\n<p>Requirements\n<p>For Windows\n"]]}}
Binary file
Binary file
data/lib/Main.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # create master class
1
2
  class RockPaperScissorsGame
2
3
 
3
4
  require "rpsg/version.rb"
data/lib/rpsg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # specify the version for the rubygem
2
2
  module RPSG
3
3
  # create version constant for the rubygem
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
data/rpsg.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "rpsg"
3
- spec.version = "0.1.6"
3
+ spec.version = "0.1.7"
4
4
  spec.date = "2017-10-12"
5
5
  spec.summary = "A Rock Paper Scissors Game Ruby Gem"
6
6
  spec.description = <<-EOF
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318