chapmanchri_quotemachine2 0.3.4 → 0.3.5
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 +14 -0
- 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: 41efa81a36c91ab07b2d26d435318cb66d4f1d0de2574227b7b2b6d52a7dcbe2
|
4
|
+
data.tar.gz: 1212a2a14ed45ec35c3b778a3d13c57cf5259bcc3677e6494f42fe1508826f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0756748b72041570c2fc788e7db9ddaf142b52c32e4667f3f156b773f85e18283614c629eeaf66823ee3e2bcc5954e264422111acc0dd26a221e17f849ddaf44'
|
7
|
+
data.tar.gz: a4455bcaced7bad825879e1bd0fe5813aafff5cd3a95287512d4afd8fa644c3e3d4a99d38266e788e19029e25a2bce59641bce857134bfb1d2a2d691fab3d077
|
data/Gemfile.lock
CHANGED
@@ -204,6 +204,20 @@ def build_display
|
|
204
204
|
end
|
205
205
|
end
|
206
206
|
end
|
207
|
+
|
208
|
+
# Builds For a stanza with only two sections and two phrases
|
209
|
+
if @poem[@stanza_current].length == 3
|
210
|
+
# if there is only one phrase
|
211
|
+
if @phrase.length == 2
|
212
|
+
#the phrase if the first phrase of the stanza
|
213
|
+
if @phrase[0] == @section_current
|
214
|
+
result_text = "<p>#{show_current_section}</p>" + "<p>#{show_next_section}</p><div class='minus-button'><form id='minus_next' action='/minus_next' method='get'><button class='form-submit' type='submit'>less...</button></form></div>"
|
215
|
+
#the phrase is the second phrase of the stanza
|
216
|
+
else
|
217
|
+
result_text = "<div class='minus-button'><form id='minus_previous' action='/minus_previous' method='get'><button class='form-submit' type='submit'>less...</button></form></div><p>#{show_current_section}</p><p>#{show_previous_section}</p>"
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
207
221
|
|
208
222
|
# Builds for a Stanza with more than two sections and only one phrase
|
209
223
|
if @poem[@stanza_current].length > 3
|
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.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Chapman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|