chapmanchri_quotemachine2 0.1.7 → 0.1.8
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 +3 -3
- data/lib/chapmanchri_quotemachine2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1a9557b7e83e4c2c2f70fd905e573b90a050310c8f928014e1c1a951e9791b1
|
4
|
+
data.tar.gz: 3b22aafb186bc45ed84eaf711b7c94b82f268420fab6be2534a470b0d44a7f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e95b5c95ff4c2d834719bc186e328b106b904b5022dd3c79bd8d53a3787d99fc771a2ba3e5f3b0fdbc18d417ef4fcfc639d5c68322aebf69b12b41c6393d472
|
7
|
+
data.tar.gz: 6c829fcabc45f744c5d64d98298de617c22becf6723ece95ba713111d59aa2e08e0ed956c7f2dcd2e98d5d9374fc97fb820210cbb19330994d74d926c261d692
|
data/Gemfile.lock
CHANGED
@@ -215,7 +215,7 @@ def build_display
|
|
215
215
|
if @phrase.length > 1
|
216
216
|
# current_phrase is first in stanza and the second phrase is also displayed
|
217
217
|
if @phrase[0] == 1 && @section_current == 1 && @phrase[1] == 2
|
218
|
-
result_text = "<p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'
|
218
|
+
result_text = "<p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'><form id='minus_next' action='/minus_next' method='post'><button class='form-submit' type='submit'>less...</button></form></div>"
|
219
219
|
end
|
220
220
|
# current_phrase is the last phrase in the stanza and the previous phrase is also displayed
|
221
221
|
if @phrase.last == @section_current && @phrase[@phrase.length - 2] == (@section_current - 1)
|
@@ -231,11 +231,11 @@ def build_display
|
|
231
231
|
if @phrase.length == 2 && @section_current != 1 \
|
232
232
|
&& @section_current != @poem[@stanza_current].length - 1 \
|
233
233
|
&& @phrase.last > @section_current
|
234
|
-
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><p>#{show_next_section}</p><div class='minus-button'>
|
234
|
+
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><p>#{show_next_section}</p><div class='minus-button'><form id='minus_next' action='/minus_next' method='post'><button class='form-submit' type='submit'>less...</button></form></div>"
|
235
235
|
end
|
236
236
|
# three phrases in the phrase storage array
|
237
237
|
if @phrase.length == 3
|
238
|
-
result_text = "<div class='minus-button'>-</div><p>#{show_previous_section}</p><p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'
|
238
|
+
result_text = "<div class='minus-button'>-</div><p>#{show_previous_section}</p><p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'><form id='minus_next' action='/minus_next' method='post'><button class='form-submit' type='submit'>less...</button></form></div>"
|
239
239
|
end
|
240
240
|
end
|
241
241
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chapmanchri_quotemachine2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
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-12-
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|