chapmanchri_quotemachine2 0.2.0 → 0.2.1
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/complete_verse.txt +53 -6
- data/lib/chapmanchri_quotemachine2/version.rb +1 -1
- data/lib/chapmanchri_quotemachine2.rb +4 -13
- 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: e9b196e017d5c3256d9995306ddd85f5bfe6c1fd2f507c1def570c3f3f20b1bf
|
|
4
|
+
data.tar.gz: 7f68cc5b2508714b8e14afdde1260824cd61418ce280f69d33bfa5b461d7a784
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80f9cdb1ecf61868a7984263cc9d548d0c658ebbd358bef3b2671fdaf80d1d6d70f422efcab79aea67f5309ec66c9804aebec48996c35f8d72e645a9238f4958
|
|
7
|
+
data.tar.gz: d7737f156d8e03b6844c91ed2951f430cb78e71b851fa9fa2a05fc05034a176c9f51fc96fe72dbe09b2a2b3b8e8a72261b5700c77a236f2d675fe511ea61d3ef
|
data/Gemfile.lock
CHANGED
data/complete_verse.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
I believe in you my soul, the other I am must not abase itself to you,
|
|
4
4
|
And you must not be abased to the other.
|
|
@@ -21,7 +21,7 @@ And limitless are leaves stiff or drooping in the fields,
|
|
|
21
21
|
And brown ants in the little wells beneath them,
|
|
22
22
|
And mossy scabs of the worm fence, heap’d stones, elder, mullein and poke-weed.
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+

|
|
25
25
|
|
|
26
26
|
A child said WHAT IS THE GRASS? fetching it to me with full hands;
|
|
27
27
|
How could I answer the child? I do not know what it is any more than he.
|
|
@@ -69,7 +69,7 @@ And ceas'd the moment life appear'd.
|
|
|
69
69
|
All goes onward and outward, nothing collapses,
|
|
70
70
|
And to die is different from what any one supposed, and luckier.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+

|
|
73
73
|
|
|
74
74
|
Has any one supposed it lucky to be born?
|
|
75
75
|
I hasten to inform him or her it is just as lucky to die, and I know it.
|
|
@@ -93,17 +93,17 @@ Undrape! you are not guilty to me, nor stale nor discarded,
|
|
|
93
93
|
I see through the broadcloth and gingham whether or no,
|
|
94
94
|
And am around, tenacious, acquisitive, tireless, and cannot be shaken away.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+

|
|
97
97
|
|
|
98
98
|
A stanza with only one section.
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+

|
|
101
101
|
|
|
102
102
|
A stanza with two sections.
|
|
103
103
|
|
|
104
104
|
The second section.
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+

|
|
107
107
|
|
|
108
108
|
A stanz with three sections.
|
|
109
109
|
|
|
@@ -111,3 +111,50 @@ Section two of three.
|
|
|
111
111
|
|
|
112
112
|
Section three of three.
|
|
113
113
|
|
|
114
|
+

|
|
115
|
+
|
|
116
|
+
A stanz with three sections.
|
|
117
|
+
|
|
118
|
+
Section two of three.
|
|
119
|
+
|
|
120
|
+
Section three of three.
|
|
121
|
+
|
|
122
|
+

|
|
123
|
+
|
|
124
|
+
A stanz with three sections.
|
|
125
|
+
|
|
126
|
+
Section two of three.
|
|
127
|
+
|
|
128
|
+
Section three of three.
|
|
129
|
+
|
|
130
|
+
	
|
|
131
|
+
|
|
132
|
+
A stanz with three sections.
|
|
133
|
+
|
|
134
|
+
Section two of three.
|
|
135
|
+
|
|
136
|
+
Section three of three.
|
|
137
|
+
|
|
138
|
+


|
|
139
|
+
|
|
140
|
+
A stanz with three sections.
|
|
141
|
+
|
|
142
|
+
Section two of three.
|
|
143
|
+
|
|
144
|
+
Section three of three.
|
|
145
|
+
|
|
146
|
+

|
|
147
|
+
|
|
148
|
+
A stanz with three sections.
|
|
149
|
+
|
|
150
|
+
Section two of three.
|
|
151
|
+
|
|
152
|
+
Section three of three.
|
|
153
|
+
|
|
154
|
+

|
|
155
|
+
|
|
156
|
+
A stanz with three sections.
|
|
157
|
+
|
|
158
|
+
Section two of three.
|
|
159
|
+
|
|
160
|
+
Section three of three.
|
|
@@ -60,28 +60,19 @@ def create_final_poem_array(text_array)
|
|
|
60
60
|
stanza_num = 0
|
|
61
61
|
section = 0
|
|
62
62
|
text_array.each do |line|
|
|
63
|
-
if line
|
|
64
|
-
|
|
65
|
-
# puts "in stanza number"
|
|
63
|
+
if line[0..1] == "&#" #the stanza number is after "&#"
|
|
66
64
|
if stanza_num == 0 && @poem[0] == nil
|
|
67
|
-
|
|
68
|
-
@poem[stanza_num] = line.split
|
|
65
|
+
@poem[stanza_num] = [line[2..(line.length-1)]]
|
|
69
66
|
else
|
|
70
|
-
#
|
|
67
|
+
# "in writing stanza 2 or more"
|
|
71
68
|
stanza_num +=1
|
|
72
69
|
section = 0
|
|
73
|
-
|
|
74
|
-
@poem[stanza_num] = line.split
|
|
75
|
-
# section += 1
|
|
76
|
-
# puts @poem[stanza_num][0]
|
|
70
|
+
@poem[stanza_num] = [line[2..(line.length-1)]]
|
|
77
71
|
end
|
|
78
|
-
|
|
79
72
|
elsif line == "" #these are blank lines which tell you a new section is beginning
|
|
80
|
-
# puts "in blank line"
|
|
81
73
|
section += 1
|
|
82
74
|
else
|
|
83
75
|
temp = @poem[stanza_num][section]
|
|
84
|
-
# puts "temp is #{temp.class}"
|
|
85
76
|
if temp.class == NilClass
|
|
86
77
|
@poem[stanza_num][section] = line
|
|
87
78
|
else
|
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.2.
|
|
4
|
+
version: 0.2.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-12-
|
|
11
|
+
date: 2019-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|