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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ccb02ad13c7d44b59a953dde1f80a2d03e26c0f7e9543d4d9930c2799be0978
4
- data.tar.gz: 9f3b59acbe253d9e6d1848df08e32e356f1a5af45029e8ad1d0bce2daf7269cd
3
+ metadata.gz: bbf64424709c26207b075c4c8e6eeccffc457bbd2a33ced3faaa589042915e96
4
+ data.tar.gz: 9e97e1e1932391a8c8e25ae0a00ab82cf381a2f4451d97de9968374e81c9d1a0
5
5
  SHA512:
6
- metadata.gz: ec6d75dc2b40022b0fc6c4809e8f5f78f5712c650a747a3970c782c416bbb6533fafb4ccc2330e434870ca5a5aa93d114283f7a2645534b564a5d562a10bd7e2
7
- data.tar.gz: fa20b5a3be92dacbcfdb47c85868c4781e696d4ca93c3462487b2467ed84d4d77aa340be85389c0d2747e8dee8da026008c8caf316965ef4b2a5efc6e8d10c2b
6
+ metadata.gz: 1844c7afae478741552b27168633b2490f8d71347b96c3fd4d7c500d399a6d3d060edb6aea44bb28b11ecc76bb0f663ea77294a0cfacf14f213141482daa7e45
7
+ data.tar.gz: bf65f28c0302fd856dd55f1dd9bc3e7a47d784fe3de5c5f74c6e44f4a0758aeba2010aaebf6fe7bfa560fa55f31f94c44538b072e420c09638d13db212c2a502
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.1.9)
4
+ chapmanchri_quotemachine2 (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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>" + show_current_section
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>" + show_current_section
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chapmanchri_quotemachine2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chapman