chapmanchri_quotemachine2 0.1.6 → 0.1.7

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: d71c23c807525d82d8855cee35c2c28865193a4bac8a1095cd6e519ce0a16afd
4
- data.tar.gz: 261e5b379c7b0c6b1f0cb798596c93c51eeee83a6e394716eb1b4f69f5b61efe
3
+ metadata.gz: 72e1b0cf687f4c617a5921676c05dbb71bedfd9d2f4961772b1699f16a9eb050
4
+ data.tar.gz: 15e06518a5205f7b22cb1fa49472e61d26b102923a159dbf95fea2f84db7d36b
5
5
  SHA512:
6
- metadata.gz: 251696792382b6a49dee7fdeaa13009c84748ac9c93f4f451720def5b298d5bce4f5c37210077e9860864a6f9853e239aa2f78927f600125dc9bc1ea59cf6ed8
7
- data.tar.gz: 807b161bff83fadb2133b409694e14ee22a5baa07f84baa5c0c05ec229a02901962df1bcb16c7f769e4ccb9e566d1462ddc7c711861650e5fb6580cf373919d6
6
+ metadata.gz: 6703c57bb80871274e6fb79e8f57d08ff7336e999e176f93fb7e2cb3964766545fef66054fce7dd38f749ed9225d7580b07503bd28f3317adb82fbcb69561484
7
+ data.tar.gz: 11655c7260b90249efa9451251a8d72f53305b586ad60faa474db64b5bd46165bc654c14232ebe69d73a108c44508935b5a8114b9e30e89bba22715418322bf9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.1.6)
4
+ chapmanchri_quotemachine2 (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -192,7 +192,7 @@ def build_display
192
192
  result_text = show_current_section + "<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-button'>more...</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
@@ -203,9 +203,9 @@ def build_display
203
203
  if @phrase[0] == 1
204
204
  result_text = show_current_section + "<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-button'>more...</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>" + show_current_section + "<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-button'>more...</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
@@ -231,7 +231,7 @@ 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-button'>more...</div><p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'>minus...</div>"
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'>minus...</div>"
235
235
  end
236
236
  # three phrases in the phrase storage array
237
237
  if @phrase.length == 3
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.1.6
4
+ version: 0.1.7
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-09 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler