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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9d56fe27c231b8e9191087ddd050e4cbd4679370896034a51a53bda7b818d76
4
- data.tar.gz: 119978d2e457a9c04d58d9fdd83292f947e74b5fa45e8ac62844bdd0042e3b0c
3
+ metadata.gz: 553bf75fe5e36b16bc42c6b0a8f4b5c1e0a5534886b9b6304c25c583cf42df9f
4
+ data.tar.gz: 1b20f698e7c334527c045a6a51db569b5762ce28cdd54a9389eb3c61be97844f
5
5
  SHA512:
6
- metadata.gz: 2c3bb64a47ee799eb98f55b0507c51586914fb1648b9460053427b8abda3e909ef93f2b7852189683f087e91eae8774684caa0916b09474f191199b1e7097dca
7
- data.tar.gz: 7085f30bbeec4f6ed38e5eb0b33a19527335ced92b9806d130db8b9fba484b3d4b73ed924268d954c0c59e8e466656d5dd0c32831c132b0a568be3122decf678
6
+ metadata.gz: 96da556d4fb1bb2366ee0fb34adbc7bb14c578ddde5d1fc6ac794d9fe462567de16d9a3abd587f27ba3cefc05f23571a25c3fcaa4ffdf40a8d332e5d445363db
7
+ data.tar.gz: '0334297407869829e96151e52f3f7e31c1b26fcba5d2e0153b1df3968217c941bac5d92eb756d4b2a829adc1c92ba216f4e734ebebd55b2f5ad144c977658ab1'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.1.2)
4
+ chapmanchri_quotemachine2 (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 + "<div class='plus-button'>+</div>"
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 + "<div class='plus-button'>+</div>"
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 + "<div class='plus-button'>+</div>"
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>Show a Verse</button></form>"
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
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chapman