quote_machine 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: a2916d016faa8a425d7997a514898c3ccaf56af072c7639cf66a2f6575ace887
4
- data.tar.gz: 12e145f294e104082c29aea80cd478af810ab4201b290fefcdd09b46ea2205f3
3
+ metadata.gz: ef3601acf3dcb52f9bf450f8c34100a315549c316565f71072d206d95aaaadc8
4
+ data.tar.gz: 4fae069434c729306f4097f617b2ab9f7b26ab1cfc6f36e54de9886c204cbd9f
5
5
  SHA512:
6
- metadata.gz: 0aaf4c5719cf418bfb0d9d81a1c2847aa4992dde93248fc22db6faa73d07739fb0f0c97932c4bfb0ee42aa354243a11ea2979aa2cc7d71cf71c0e5b98ae2fffa
7
- data.tar.gz: 7fde7f6c0f9458456648f8364346cc754cc460d6990e41ee6760c2f2afa5d56b47e344d0b30d08fb253c8e9f700a62c24a31b5e269fc9e3a17feac20ff5c188a
6
+ metadata.gz: '08e93d29c5888bde57d466d01ff844e6ee1f6e33658cd8c4d3b72b8aab0420ab51a716a68b951599ba546fa85967712dec847e837e1436ea176a8ff3b3ac3fc0'
7
+ data.tar.gz: fab54409849045f20e8398d3154f28eb30113715fc5516fffeab2e275e2f1c58ab01a73a358549b28954acc360e258627f068764e7ab11cf6a59bf8d9f97e6c7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quote_machine (0.1.0)
4
+ quote_machine (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module QuoteMachine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/quote_machine.rb CHANGED
@@ -6,10 +6,12 @@ require "quote_machine/version"
6
6
  # end
7
7
 
8
8
  # declare instance variables
9
- @poem = []
10
- @stanza_pick = 0
11
- @stanza_current = 0
12
- @section_current = 0
9
+ def delcare_instance_variables
10
+ @poem = []
11
+ @stanza_pick = 0
12
+ @stanza_current = 0
13
+ @section_current = 0
14
+ end
13
15
 
14
16
 
15
17
  def read_poem(file_name)
@@ -127,9 +129,7 @@ def show_section
127
129
  stanza = pick_stanza
128
130
  @stanza_current = stanza
129
131
  @section_current = pick_section(stanza)
130
- # puts @stanz_current.to_s + " " + @section_current.to_s
131
- puts @poem[@stanza_current][@section_current]
132
- puts "\n\n\n\n"
132
+ @poem[@stanza_current][@section_current]
133
133
  end
134
134
 
135
135
 
@@ -177,6 +177,7 @@ end
177
177
 
178
178
 
179
179
  def init_poem
180
+ delcare_instance_variables
180
181
  text = read_poem('complete_verse.txt')
181
182
  text_array = convert_text_to_array(text)
182
183
  create_final_poem_array(text_array)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quote_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chapman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2019-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler