chapmanchri_quotemachine2 0.3.1 → 0.3.2

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: b56cac0eeea5d9dc0198a7fc2b338d1f10e77d8adba73967078170d7bfb0228c
4
- data.tar.gz: e310edfd544017bb2bffd78379ed16a076d1ef5e192aad928b3721356d849076
3
+ metadata.gz: 6474844f22b71f6bc2037cbd8d47bf24c8424d4d11222059f95f636300592ad3
4
+ data.tar.gz: 06a7f1712063fed65a2bf465acbbe787a474902fd8ca3c4786b14a4a09e6b0da
5
5
  SHA512:
6
- metadata.gz: a55b6100098c24a887211081a14ec74da2d0ec60707e45958a64c6a692f16b62d2e2f896e5f4d39c58d8fbb97f8359fc25f6ffda1d2c7ce7c8a041a29290a1ac
7
- data.tar.gz: 946fb1ecc60c0c6c827859691809a92e7d75c979412ae8114f74b233332febf7683f55e9bd40330989ca9d78557bbe91bac055db36678f5369e33de5a2952101
6
+ metadata.gz: ecc1beb2e0d9a2caa308806ac445a28bbad0b295fd02dc9d21ed691a5139c07be25acb1da1bfdef3254df4e1ba3fc90515a7d548a848a0819ef2ed0d688272fd
7
+ data.tar.gz: af87e10ba91533818d1343a5e0e3d121b9f0be9c8d2a88fbc765b2ba18cd4af188bf45b63310497dc7ab6ccbc938ff9b985bc231e896507fd263378a8f69eaf3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.3.1)
4
+ chapmanchri_quotemachine2 (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -134,15 +134,29 @@ def show_entire_poem
134
134
  print_poem = ""
135
135
  @poem.each_with_index do |verse, v|
136
136
  verse.each_with_index do |segment, s|
137
- if s == @section_current && @stanza_current == v
138
- print_poem = print_poem + show_current_section
139
- # show_current_section
137
+ # if s == @section_current && @stanza_current == v
138
+ # print_poem = print_poem + show_current_section
139
+ # # show_current_section
140
+ # else
141
+ # # puts segment
142
+ # # puts "\n"
143
+ # print_poem = print_poem + segment + "<br><br>"
144
+ # end
145
+ if s == 0
146
+ print_poem = print_poem + "<strong>#{segment}</strong><br>"
140
147
  else
141
- # puts segment
142
- # puts "\n"
143
- print_poem = print_poem + segment + "<br><br>"
148
+ if @stanza_current==v && s == @section_current && s == 1
149
+ print_poem = print_poem + show_current_section
150
+ elsif @stanza_current==v && s == @section_current && s != 1
151
+ print_poem = print_poem + "<br><br>" + show_current_section
152
+ elsif s == 1
153
+ print_poem = print_poem + segment
154
+ else
155
+ print_poem = print_poem + "<br><br>" + segment
156
+ end
144
157
  end
145
158
  end
159
+ print_poem = print_poem + "<br><br><br>"
146
160
  end
147
161
  print_poem
148
162
  end
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chapmanchri_quotemachine2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chapman