chapmanchri_quotemachine2 0.2.0 → 0.2.1

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: bbf64424709c26207b075c4c8e6eeccffc457bbd2a33ced3faaa589042915e96
4
- data.tar.gz: 9e97e1e1932391a8c8e25ae0a00ab82cf381a2f4451d97de9968374e81c9d1a0
3
+ metadata.gz: e9b196e017d5c3256d9995306ddd85f5bfe6c1fd2f507c1def570c3f3f20b1bf
4
+ data.tar.gz: 7f68cc5b2508714b8e14afdde1260824cd61418ce280f69d33bfa5b461d7a784
5
5
  SHA512:
6
- metadata.gz: 1844c7afae478741552b27168633b2490f8d71347b96c3fd4d7c500d399a6d3d060edb6aea44bb28b11ecc76bb0f663ea77294a0cfacf14f213141482daa7e45
7
- data.tar.gz: bf65f28c0302fd856dd55f1dd9bc3e7a47d784fe3de5c5f74c6e44f4a0758aeba2010aaebf6fe7bfa560fa55f31f94c44538b072e420c09638d13db212c2a502
6
+ metadata.gz: 80f9cdb1ecf61868a7984263cc9d548d0c658ebbd358bef3b2671fdaf80d1d6d70f422efcab79aea67f5309ec66c9804aebec48996c35f8d72e645a9238f4958
7
+ data.tar.gz: d7737f156d8e03b6844c91ed2951f430cb78e71b851fa9fa2a05fc05034a176c9f51fc96fe72dbe09b2a2b3b8e8a72261b5700c77a236f2d675fe511ea61d3ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chapmanchri_quotemachine2 (0.2.0)
4
+ chapmanchri_quotemachine2 (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/complete_verse.txt CHANGED
@@ -1,4 +1,4 @@
1
- 0
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
- 1
24
+ &#2
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
- 2
72
+ &#3
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
- 3
96
+ &#4
97
97
 
98
98
  A stanza with only one section.
99
99
 
100
- 4
100
+ &#5
101
101
 
102
102
  A stanza with two sections.
103
103
 
104
104
  The second section.
105
105
 
106
- 5
106
+ &#6
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
+ &#7
115
+
116
+ A stanz with three sections.
117
+
118
+ Section two of three.
119
+
120
+ Section three of three.
121
+
122
+ &#8
123
+
124
+ A stanz with three sections.
125
+
126
+ Section two of three.
127
+
128
+ Section three of three.
129
+
130
+ &#9
131
+
132
+ A stanz with three sections.
133
+
134
+ Section two of three.
135
+
136
+ Section three of three.
137
+
138
+ &#10
139
+
140
+ A stanz with three sections.
141
+
142
+ Section two of three.
143
+
144
+ Section three of three.
145
+
146
+ &#11
147
+
148
+ A stanz with three sections.
149
+
150
+ Section two of three.
151
+
152
+ Section three of three.
153
+
154
+ &#12
155
+
156
+ A stanz with three sections.
157
+
158
+ Section two of three.
159
+
160
+ Section three of three.
@@ -1,3 +1,3 @@
1
1
  module ChapmanchriQuotemachine2
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.length == 1 #the stanza number
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
- # puts "should be writing the first stanza number"
68
- @poem[stanza_num] = line.split
65
+ @poem[stanza_num] = [line[2..(line.length-1)]]
69
66
  else
70
- # puts "in writing stanza 2 or more"
67
+ # "in writing stanza 2 or more"
71
68
  stanza_num +=1
72
69
  section = 0
73
- # puts "line is #{line}"
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2019-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler