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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d9b332262a049d59d3644552c76abf737fd8496837e930828e43ad8ba779aee
4
- data.tar.gz: eb8233bb91b1489ec5017d62aa8bf7cc64b7c17e6202ed1e0c30c7a02bb3c56c
3
+ metadata.gz: 41efa81a36c91ab07b2d26d435318cb66d4f1d0de2574227b7b2b6d52a7dcbe2
4
+ data.tar.gz: 1212a2a14ed45ec35c3b778a3d13c57cf5259bcc3677e6494f42fe1508826f2c
5
5
  SHA512:
6
- metadata.gz: 2f402e39465a6054fff4b2e6f397e941c1d59a0e91ecd1f06520871884d7059d850c8c22540c72c43456021bc82659445b13f6820437086fd594dc62eb8926fc
7
- data.tar.gz: 8f65d0cdb95977a9aac3547dff6aea285c2e554bfce1f2e14ab2a7f750d91aac32d7826a847617b0f958a8eb9d19d8da5eeeb04eecde0c2f57e8723c57cab4e0
6
+ metadata.gz: '0756748b72041570c2fc788e7db9ddaf142b52c32e4667f3f156b773f85e18283614c629eeaf66823ee3e2bcc5954e264422111acc0dd26a221e17f849ddaf44'
7
+ data.tar.gz: a4455bcaced7bad825879e1bd0fe5813aafff5cd3a95287512d4afd8fa644c3e3d4a99d38266e788e19029e25a2bce59641bce857134bfb1d2a2d691fab3d077
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.3.4)
4
+ chapmanchri_quotemachine2 (0.3.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  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.3.4
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-21 00:00:00.000000000 Z
11
+ date: 2020-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler