chapmanchri_quotemachine2 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/chapmanchri_quotemachine2.rb +3 -3
- 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: 1ccb02ad13c7d44b59a953dde1f80a2d03e26c0f7e9543d4d9930c2799be0978
|
|
4
|
+
data.tar.gz: 9f3b59acbe253d9e6d1848df08e32e356f1a5af45029e8ad1d0bce2daf7269cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec6d75dc2b40022b0fc6c4809e8f5f78f5712c650a747a3970c782c416bbb6533fafb4ccc2330e434870ca5a5aa93d114283f7a2645534b564a5d562a10bd7e2
|
|
7
|
+
data.tar.gz: fa20b5a3be92dacbcfdb47c85868c4781e696d4ca93c3462487b2467ed84d4d77aa340be85389c0d2747e8dee8da026008c8caf316965ef4b2a5efc6e8d10c2b
|
data/Gemfile.lock
CHANGED
|
@@ -219,12 +219,12 @@ def build_display
|
|
|
219
219
|
end
|
|
220
220
|
# current_phrase is the last phrase in the stanza and the previous phrase is also displayed
|
|
221
221
|
if @phrase.last == @section_current && @phrase[@phrase.length - 2] == (@section_current - 1)
|
|
222
|
-
result_text = "<div class='minus-button'
|
|
222
|
+
result_text = "<div class='minus-button'><form id='minus_previous' action='/minus_previous' method='post'><button class='form-submit' type='submit'>less...</button></form></div><p>#{show_previous_section}</p><p>#{show_current_section}</p>"
|
|
223
223
|
end
|
|
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'
|
|
227
|
+
result_text = "<div class='minus-button'><form id='minus_previous' action='/minus_previous' method='post'><button class='form-submit' type='submit'>less...</button></form></div><p>#{show_previous_section}</p><p>#{show_current_section}</p><form id='plus_next' action='/plus_next' method='post'><button class='form-submit' type='submit'>more...</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
|
|
@@ -235,7 +235,7 @@ def build_display
|
|
|
235
235
|
end
|
|
236
236
|
# three phrases in the phrase storage array
|
|
237
237
|
if @phrase.length == 3
|
|
238
|
-
result_text = "<div class='minus-button'
|
|
238
|
+
result_text = "<div class='minus-button'><form id='minus_previous' action='/minus_previous' method='post'><button class='form-submit' type='submit'>less...</button></form></div><p>#{show_previous_section}</p><p>#{show_current_section}</p><p>#{show_next_section}</p><div class='minus-button'><form id='minus_next' action='/minus_next' method='post'><button class='form-submit' type='submit'>less...</button></form></div>"
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
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.
|
|
4
|
+
version: 0.1.9
|
|
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-
|
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|