chapmanchri_quotemachine2 0.1.2 → 0.1.3
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 +4 -4
- 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: 553bf75fe5e36b16bc42c6b0a8f4b5c1e0a5534886b9b6304c25c583cf42df9f
|
4
|
+
data.tar.gz: 1b20f698e7c334527c045a6a51db569b5762ce28cdd54a9389eb3c61be97844f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96da556d4fb1bb2366ee0fb34adbc7bb14c578ddde5d1fc6ac794d9fe462567de16d9a3abd587f27ba3cefc05f23571a25c3fcaa4ffdf40a8d332e5d445363db
|
7
|
+
data.tar.gz: '0334297407869829e96151e52f3f7e31c1b26fcba5d2e0153b1df3968217c941bac5d92eb756d4b2a829adc1c92ba216f4e734ebebd55b2f5ad144c977658ab1'
|
data/Gemfile.lock
CHANGED
@@ -189,7 +189,7 @@ 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 + "<
|
192
|
+
result_text = show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>+</button></form>"
|
193
193
|
#the phrase is the second phrase of the stanza
|
194
194
|
elsif @phrase[0] == 2
|
195
195
|
result_text = "<div class='plus-button'>+</div>" + show_current_section
|
@@ -201,9 +201,9 @@ 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 + "<
|
204
|
+
result_text = show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>+</button></form>"
|
205
205
|
elsif (@phrase[0] >= 2) && @phrase[0] < @poem[@stanza_current].length - 1
|
206
|
-
result_text = "<div class='plus-button'>+</div>" + show_current_section + "<
|
206
|
+
result_text = "<div class='plus-button'>+</div>" + show_current_section + "<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>+</button></form>"
|
207
207
|
elsif @phrase[0] == @poem[@stanza_current].length - 1
|
208
208
|
result_text = "<div class='plus-button'>+</div>" + show_current_section
|
209
209
|
end
|
@@ -224,7 +224,7 @@ def build_display
|
|
224
224
|
# there are two phrases in array, current_phrase is not first or last stanza,
|
225
225
|
# and current_phrase > second phrase
|
226
226
|
if @phrase.length == 2 && @section_current != 1 && @section_current != @poem[@stanza_current].length - 1
|
227
|
-
result_text = "<div class='minus-button'>-</div>#{show_previous_section}#{show_current_section}<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit
|
227
|
+
result_text = "<div class='minus-button'>-</div>#{show_previous_section}#{show_current_section}<form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>+</button></form>"
|
228
228
|
end
|
229
229
|
# there are two phrases in array, current_phrase is not first or last,
|
230
230
|
# and current_phrase < second phrase
|