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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/chapmanchri_quotemachine2.rb +20 -6
- data/lib/chapmanchri_quotemachine2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6474844f22b71f6bc2037cbd8d47bf24c8424d4d11222059f95f636300592ad3
|
4
|
+
data.tar.gz: 06a7f1712063fed65a2bf465acbbe787a474902fd8ca3c4786b14a4a09e6b0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc1beb2e0d9a2caa308806ac445a28bbad0b295fd02dc9d21ed691a5139c07be25acb1da1bfdef3254df4e1ba3fc90515a7d548a848a0819ef2ed0d688272fd
|
7
|
+
data.tar.gz: af87e10ba91533818d1343a5e0e3d121b9f0be9c8d2a88fbc765b2ba18cd4af188bf45b63310497dc7ab6ccbc938ff9b985bc231e896507fd263378a8f69eaf3
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
139
|
-
|
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
|
-
|
142
|
-
|
143
|
-
|
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
|