chapmanchri_quotemachine2 0.1.9 → 0.2.0
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/version.rb +1 -1
- data/lib/chapmanchri_quotemachine2.rb +5 -5
- 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: bbf64424709c26207b075c4c8e6eeccffc457bbd2a33ced3faaa589042915e96
|
4
|
+
data.tar.gz: 9e97e1e1932391a8c8e25ae0a00ab82cf381a2f4451d97de9968374e81c9d1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1844c7afae478741552b27168633b2490f8d71347b96c3fd4d7c500d399a6d3d060edb6aea44bb28b11ecc76bb0f663ea77294a0cfacf14f213141482daa7e45
|
7
|
+
data.tar.gz: bf65f28c0302fd856dd55f1dd9bc3e7a47d784fe3de5c5f74c6e44f4a0758aeba2010aaebf6fe7bfa560fa55f31f94c44538b072e420c09638d13db212c2a502
|
data/Gemfile.lock
CHANGED
@@ -189,10 +189,10 @@ def build_display
|
|
189
189
|
if @phrase.length == 1
|
190
190
|
#the phrase if the first phrase of the stanza
|
191
191
|
if @phrase[0] == 1
|
192
|
-
result_text = show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
192
|
+
result_text = "<p>#{show_current_section}</p>" + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
193
193
|
#the phrase is the second phrase of the stanza
|
194
194
|
elsif @phrase[0] == 2
|
195
|
-
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div
|
195
|
+
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div>#{show_current_section}"
|
196
196
|
end
|
197
197
|
end
|
198
198
|
end
|
@@ -201,11 +201,11 @@ def build_display
|
|
201
201
|
if @poem[@stanza_current].length > 3
|
202
202
|
if @phrase.length == 1
|
203
203
|
if @phrase[0] == 1
|
204
|
-
result_text = show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
204
|
+
result_text = "<p>#{show_current_section}</p>" + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
205
205
|
elsif (@phrase[0] >= 2) && @phrase[0] < @poem[@stanza_current].length - 1
|
206
|
-
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div>" + show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
206
|
+
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div>" + "<p>#{show_current_section}</p>" + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</button></form>"
|
207
207
|
elsif @phrase[0] == @poem[@stanza_current].length - 1
|
208
|
-
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div
|
208
|
+
result_text = "<div class='plus-minus'><form id='plus_previous' action='/plus_previous' method='post'><button class='form-submit' type='submit'>more...</button></form></div>#{show_current_section}"
|
209
209
|
end
|
210
210
|
end
|
211
211
|
end
|