chapmanchri_quotemachine2 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/chapmanchri_quotemachine2.rb +10 -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: cb9075da15300ef0e5384bff683f4c4768c7cd147fc598227fac623dd86b08a8
|
4
|
+
data.tar.gz: 2f89771dee9b2f5ea3cfa347ea420436e7093c59d68ff0816191168fedbba64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19602d2fb4764c0c5f707f354a45e2cd63b953489078165eb3df85ef76af0ba877cb742aeb3e27379ff6eb2314566d9ed991a213af0cc66b2392f8c0ee90adac
|
7
|
+
data.tar.gz: 0cb9dd124f37c2b0eb20a7a3c5b35fe4a4b959c829d1b3a1652be6e0f75749678a4f7457b2c34521125901b466216f31bb7523884ff26c4d71f0d3edc88f714e
|
data/Gemfile.lock
CHANGED
@@ -13,6 +13,7 @@ def declare_instance_variables
|
|
13
13
|
@section_current = 0
|
14
14
|
@section_previous = "na"
|
15
15
|
@section_next = "na"
|
16
|
+
@phrase = []
|
16
17
|
end
|
17
18
|
|
18
19
|
def set_stanza_and_section
|
@@ -21,6 +22,10 @@ def set_stanza_and_section
|
|
21
22
|
@section_current = pick_section(stanza)
|
22
23
|
end
|
23
24
|
|
25
|
+
def set_phrase
|
26
|
+
@phrase[0] = @section_current
|
27
|
+
end
|
28
|
+
|
24
29
|
def set_next_section
|
25
30
|
if @section_current < (@poem[@stanza_current].length-1)
|
26
31
|
@section_next = @section_current + 1
|
@@ -163,8 +168,10 @@ def main_program
|
|
163
168
|
declare_instance_variables
|
164
169
|
init_poem
|
165
170
|
set_stanza_and_section
|
166
|
-
|
167
|
-
|
171
|
+
set_phrase
|
172
|
+
build_display
|
173
|
+
# show_section
|
174
|
+
# display_interface
|
168
175
|
end
|
169
176
|
|
170
177
|
def build_display
|
@@ -250,5 +257,5 @@ puts Dir.pwd
|
|
250
257
|
# main_program
|
251
258
|
|
252
259
|
def test_method
|
253
|
-
"text"
|
260
|
+
"text method"
|
254
261
|
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.1
|
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-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|