artemo 3.1.7 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/CHANGELOG +3 -0
  4. data/Gemfile.lock +1 -1
  5. data/bin/artemo +1 -1
  6. data/lib/artemo/complex_emotions.rb +1 -1
  7. data/lib/artemo/version.rb +1 -1
  8. data/lib/artemo.rb +15 -7
  9. metadata +1 -50
  10. data/examples/A Sketch For A Modern Love Poem - Poem by Tadeusz Rozewicz.pdf +0 -242
  11. data/examples/A Sketch For A Modern Love Poem - Poem by Tadeusz Rozewicz.txt +0 -39
  12. data/examples/Earth Again - Poem by Czeslaw Milosz.pdf +0 -506
  13. data/examples/Earth Again - Poem by Czeslaw Milosz.txt +0 -13
  14. data/examples/First Love - Poem by Wislawa Szymborska.pdf +0 -341
  15. data/examples/First Love - Poem by Wislawa Szymborska.txt +0 -26
  16. data/examples/Grass - Poem by Julian Tuwim.pdf +0 -242
  17. data/examples/Grass - Poem by Julian Tuwim.txt +0 -14
  18. data/examples/Hatred - Poem by Wislawa Szymborska.pdf +0 -308
  19. data/examples/Hatred - Poem by Wislawa Szymborska.txt +0 -37
  20. data/examples/It Was Winter - Poem by Czeslaw Milosz.pdf +0 -341
  21. data/examples/It Was Winter - Poem by Czeslaw Milosz.txt +0 -69
  22. data/examples/Photograph From September 11 - Poem by Wislawa Szymborska.pdf +0 -341
  23. data/examples/Photograph From September 11 - Poem by Wislawa Szymborska.txt +0 -24
  24. data/examples/Pigtail - Poem by Tadeusz Rozewicz.pdf +0 -242
  25. data/examples/Pigtail - Poem by Tadeusz Rozewicz.txt +0 -24
  26. data/examples/Polish Flowers - Poem by Julian Tuwim.txt +0 -6
  27. data/examples/Preface - Poem by Czeslaw Milosz.pdf +0 -341
  28. data/examples/Preface - Poem by Czeslaw Milosz.txt +0 -26
  29. data/examples/Rovigo - Poem by Zbigniew Herbert.pdf +0 -308
  30. data/examples/Rovigo - Poem by Zbigniew Herbert.txt +0 -28
  31. data/examples/The Dancing Socrates - Poem by Julian Tuwim.pdf +0 -341
  32. data/examples/The Dancing Socrates - Poem by Julian Tuwim.txt +0 -12
  33. data/examples/The Fable About A Nail - Poem by Zbigniew Herbert.pdf +0 -341
  34. data/examples/The Fable About A Nail - Poem by Zbigniew Herbert.txt +0 -64
  35. data/examples/The Gate - Poem by Tadeusz Rozewicz.pdf +0 -341
  36. data/examples/The Gate - Poem by Tadeusz Rozewicz.txt +0 -65
  37. data/examples/The Return - Poem by Tadeusz Rozewicz.pdf +0 -407
  38. data/examples/The Return - Poem by Tadeusz Rozewicz.txt +0 -27
  39. data/examples/The Road - Poem by Czeslaw Milosz.pdf +0 -209
  40. data/examples/The Road - Poem by Czeslaw Milosz.txt +0 -19
  41. data/examples/The Saturday Night Song - Poem by Julian Tuwim.pdf +0 -440
  42. data/examples/The Saturday Night Song - Poem by Julian Tuwim.txt +0 -19
  43. data/examples/The Survivor - Poem by Tadeusz Rozewicz.pdf +0 -242
  44. data/examples/The Survivor - Poem by Tadeusz Rozewicz.txt +0 -34
  45. data/examples/To My Bones - Poem by Zbigniew Herbert.pdf +0 -440
  46. data/examples/To My Bones - Poem by Zbigniew Herbert.txt +0 -33
  47. data/examples/Two Monkeys by Brueghel - Poem by Wislawa Szymborska.pdf +0 -242
  48. data/examples/Two Monkeys by Brueghel - Poem by Wislawa Szymborska.txt +0 -13
  49. data/examples/Veni Seer - Poem by Czeslaw Milosz.pdf +0 -275
  50. data/examples/Veni Seer - Poem by Czeslaw Milosz.txt +0 -15
  51. data/examples/Vermeer - Poem by Wislawa Szymborska.pdf +0 -275
  52. data/examples/Vermeer - Poem by Wislawa Szymborska.txt +0 -6
  53. data/examples/Wasp - Poem by Zbigniew Herbert.pdf +0 -374
  54. data/examples/Wasp - Poem by Zbigniew Herbert.txt +0 -2
  55. data/examples/What Our Dead Do - Poem by Zbigniew Herbert.pdf +0 -341
  56. data/examples/What Our Dead Do - Poem by Zbigniew Herbert.txt +0 -64
  57. data/examples/Wife - Poem by Julian Tuwim.pdf +0 -374
  58. data/examples/Wife - Poem by Julian Tuwim.txt +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eb89d441a10c9453214966ba5bd101e0f406f1a
4
- data.tar.gz: 8ce97568f80462662c10dd3a40193ca8f36101ae
3
+ metadata.gz: dfe37d927706aa95ecee19c90cd8f56044ca5bab
4
+ data.tar.gz: 3d0b5340a144fcb1d767741d4d6fba2d460c28b6
5
5
  SHA512:
6
- metadata.gz: dfc2f1c3862ffb69706a0ee013bf7970328f1aa5e839f508ecc2e77c4707ff967597cdb369b2f525ea74737ad6af80083b09df2cebc5081f190a4d92d7386eeb
7
- data.tar.gz: 1ad98b01028d23598d365e4a279c7f6695ce95e4fb15b7ab93258db60703611918aecf983000c026d05f4fa7c15ec001687eaa120665b1b15bb7c6e379a6ddc0
6
+ metadata.gz: 07f1200533a7cefb5aa10335ed31c855535bb2dc9d402f030024c6f45a4c17315e69ae30e06fe97701cba62c3b291c77e35ddb217fb1d0ade81723d99fdcd7bc
7
+ data.tar.gz: 3aaf065760950b99944f2fb1d55089fdb879de5427160a8199233755ff05123f442c87d53dea8718ba2515126a28077a726458ef6ff6a4402d6e8eac3bf20e91
data/.DS_Store CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -57,3 +57,6 @@ Add exception support for plotting library, and examples.
57
57
 
58
58
  Version 3.1.7
59
59
  Changes in scaling.
60
+
61
+ Version 3.2.0
62
+ Freeze changes, all project is complete.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artemo (3.1.7)
4
+ artemo (3.2.0)
5
5
  squid (~> 1.3)
6
6
 
7
7
  GEM
data/bin/artemo CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'artemo'
4
- ArtEmo.call(ARGV[0])
4
+ Starter.call(ARGV)
@@ -39,7 +39,7 @@ class ComplexEmotions < Common
39
39
  3.times do |time_two|
40
40
  tmp = (3 + index + (3 * time_two)) + time_one
41
41
  tmp = array_one.size - tmp if tmp >= 24
42
- logic_switch = array_one[tmp] >= 25 && array_one[index + time_one] >= 25
42
+ logic_switch = array_one[tmp] >= 50 && array_one[index + time_one] >= 50
43
43
  array_one[index].times do
44
44
  sum_array[index + time_one] += 1 if logic_switch
45
45
  end
@@ -1,4 +1,4 @@
1
1
  # @note This module returns version
2
2
  module ArtEmo
3
- VERSION = "3.1.7"
3
+ VERSION = "3.2.0"
4
4
  end
data/lib/artemo.rb CHANGED
@@ -32,11 +32,19 @@ class ArtEmo
32
32
  end
33
33
  end
34
34
 
35
- if ARGV.empty?
36
- puts "artemo [your text file], to plot data to pdf use artemo --plot [your text file]"
37
- elsif ARGV.first != '--plot'
38
- puts ArtEmo.call(ARGV.last)
39
- else
40
- to_plot = ArtEmo.call(ARGV.last)
41
- Plot.call(ARGV.last, to_plot)
35
+ # @note This class is helper for ./bin/artemo file
36
+ class Starter
37
+
38
+ # @note This method is helper for ./bin/artemo file
39
+
40
+ def self.call(args)
41
+ if args.empty?
42
+ puts "artemo [your text file], to plot data to pdf use artemo --plot [your text file]"
43
+ elsif args.first != '--plot'
44
+ puts ArtEmo.call(args.last)
45
+ else
46
+ to_plot = ArtEmo.call(args.last)
47
+ Plot.call(args.last, to_plot)
48
+ end
49
+ end
42
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artemo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.7
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Łukasz Fuszara
@@ -103,55 +103,6 @@ files:
103
103
  - Rakefile
104
104
  - artemo.gemspec
105
105
  - bin/artemo
106
- - examples/A Sketch For A Modern Love Poem - Poem by Tadeusz Rozewicz.pdf
107
- - examples/A Sketch For A Modern Love Poem - Poem by Tadeusz Rozewicz.txt
108
- - examples/Earth Again - Poem by Czeslaw Milosz.pdf
109
- - examples/Earth Again - Poem by Czeslaw Milosz.txt
110
- - examples/First Love - Poem by Wislawa Szymborska.pdf
111
- - examples/First Love - Poem by Wislawa Szymborska.txt
112
- - examples/Grass - Poem by Julian Tuwim.pdf
113
- - examples/Grass - Poem by Julian Tuwim.txt
114
- - examples/Hatred - Poem by Wislawa Szymborska.pdf
115
- - examples/Hatred - Poem by Wislawa Szymborska.txt
116
- - examples/It Was Winter - Poem by Czeslaw Milosz.pdf
117
- - examples/It Was Winter - Poem by Czeslaw Milosz.txt
118
- - examples/Photograph From September 11 - Poem by Wislawa Szymborska.pdf
119
- - examples/Photograph From September 11 - Poem by Wislawa Szymborska.txt
120
- - examples/Pigtail - Poem by Tadeusz Rozewicz.pdf
121
- - examples/Pigtail - Poem by Tadeusz Rozewicz.txt
122
- - examples/Polish Flowers - Poem by Julian Tuwim.txt
123
- - examples/Preface - Poem by Czeslaw Milosz.pdf
124
- - examples/Preface - Poem by Czeslaw Milosz.txt
125
- - examples/Rovigo - Poem by Zbigniew Herbert.pdf
126
- - examples/Rovigo - Poem by Zbigniew Herbert.txt
127
- - examples/The Dancing Socrates - Poem by Julian Tuwim.pdf
128
- - examples/The Dancing Socrates - Poem by Julian Tuwim.txt
129
- - examples/The Fable About A Nail - Poem by Zbigniew Herbert.pdf
130
- - examples/The Fable About A Nail - Poem by Zbigniew Herbert.txt
131
- - examples/The Gate - Poem by Tadeusz Rozewicz.pdf
132
- - examples/The Gate - Poem by Tadeusz Rozewicz.txt
133
- - examples/The Return - Poem by Tadeusz Rozewicz.pdf
134
- - examples/The Return - Poem by Tadeusz Rozewicz.txt
135
- - examples/The Road - Poem by Czeslaw Milosz.pdf
136
- - examples/The Road - Poem by Czeslaw Milosz.txt
137
- - examples/The Saturday Night Song - Poem by Julian Tuwim.pdf
138
- - examples/The Saturday Night Song - Poem by Julian Tuwim.txt
139
- - examples/The Survivor - Poem by Tadeusz Rozewicz.pdf
140
- - examples/The Survivor - Poem by Tadeusz Rozewicz.txt
141
- - examples/To My Bones - Poem by Zbigniew Herbert.pdf
142
- - examples/To My Bones - Poem by Zbigniew Herbert.txt
143
- - examples/Two Monkeys by Brueghel - Poem by Wislawa Szymborska.pdf
144
- - examples/Two Monkeys by Brueghel - Poem by Wislawa Szymborska.txt
145
- - examples/Veni Seer - Poem by Czeslaw Milosz.pdf
146
- - examples/Veni Seer - Poem by Czeslaw Milosz.txt
147
- - examples/Vermeer - Poem by Wislawa Szymborska.pdf
148
- - examples/Vermeer - Poem by Wislawa Szymborska.txt
149
- - examples/Wasp - Poem by Zbigniew Herbert.pdf
150
- - examples/Wasp - Poem by Zbigniew Herbert.txt
151
- - examples/What Our Dead Do - Poem by Zbigniew Herbert.pdf
152
- - examples/What Our Dead Do - Poem by Zbigniew Herbert.txt
153
- - examples/Wife - Poem by Julian Tuwim.pdf
154
- - examples/Wife - Poem by Julian Tuwim.txt
155
106
  - include/.DS_Store
156
107
  - include/database.db
157
108
  - lib/.DS_Store
@@ -1,242 +0,0 @@
1
- %PDF-1.4
2
- %����
3
- 1 0 obj
4
- << /Creator <feff0050007200610077006e>
5
- /Producer <feff0050007200610077006e>
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
11
- >>
12
- endobj
13
- 3 0 obj
14
- << /Type /Pages
15
- /Count 1
16
- /Kids [5 0 R]
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 1258
21
- >>
22
- stream
23
- q
24
- 0.5 w
25
- q
26
- /Tr1 gs
27
- 69.0 741.0 m
28
- 576.0 741.0 l
29
- S
30
- S
31
- Q
32
- 1 w
33
- 0.5 w
34
- q
35
- /Tr1 gs
36
- 69.0 687.25 m
37
- 576.0 687.25 l
38
- S
39
- S
40
- Q
41
- 1 w
42
- 0.5 w
43
- q
44
- /Tr1 gs
45
- 69.0 633.5 m
46
- 576.0 633.5 l
47
- S
48
- S
49
- Q
50
- 1 w
51
- 0.5 w
52
- q
53
- /Tr1 gs
54
- 69.0 579.75 m
55
- 576.0 579.75 l
56
- S
57
- S
58
- Q
59
- 1 w
60
-
61
- BT
62
- 36.872 738.128 Td
63
- /F1.0 8 Tf
64
- [<3130302e3025>] TJ
65
- ET
66
-
67
-
68
- BT
69
- 41.32 684.378 Td
70
- /F1.0 8 Tf
71
- [<37352e3025>] TJ
72
- ET
73
-
74
-
75
- BT
76
- 41.32 630.628 Td
77
- /F1.0 8 Tf
78
- [<35302e3025>] TJ
79
- ET
80
-
81
-
82
- BT
83
- 41.32 576.878 Td
84
- /F1.0 8 Tf
85
- [<32352e3025>] TJ
86
- ET
87
-
88
-
89
- BT
90
- 45.768 523.128 Td
91
- /F1.0 8 Tf
92
- [<302e3025>] TJ
93
- ET
94
-
95
- /DeviceRGB cs
96
- 0.180 0.341 0.549 scn
97
- /DeviceRGB CS
98
- 0.180 0.341 0.549 SCN
99
- q
100
- /Tr2 gs
101
- 100.6875 526.0 190.125 215.0 re
102
- f
103
- S
104
- Q
105
- 0.000 0.000 0.000 scn
106
- 0.000 0.000 0.000 SCN
107
- 0.180 0.341 0.549 scn
108
- q
109
- /Tr3 gs
110
-
111
- BT
112
- 178.795 747.07 Td
113
- /F2.0 10 Tf
114
- [<3130302e3025>] TJ
115
- ET
116
-
117
- S
118
- Q
119
- 0.000 0.000 0.000 scn
120
- 0.180 0.341 0.549 scn
121
- 0.180 0.341 0.549 SCN
122
- q
123
- /Tr2 gs
124
- 354.1875 526.0 190.125 215.0 re
125
- f
126
- S
127
- Q
128
- 0.000 0.000 0.000 scn
129
- 0.000 0.000 0.000 SCN
130
- 0.180 0.341 0.549 scn
131
- q
132
- /Tr3 gs
133
-
134
- BT
135
- 432.295 747.07 Td
136
- /F2.0 10 Tf
137
- [<3130302e3025>] TJ
138
- ET
139
-
140
- S
141
- Q
142
- 0.000 0.000 0.000 scn
143
-
144
- BT
145
- 186.798 513.128 Td
146
- /F1.0 8 Tf
147
- [<7072> -15 <696465>] TJ
148
- ET
149
-
150
- 195.75 526.0 m
151
- 195.75 524.0 l
152
- S
153
-
154
- BT
155
- 429.686 513.128 Td
156
- /F1.0 8 Tf
157
- [<646f6d696e616e6365>] TJ
158
- ET
159
-
160
- 449.25 526.0 m
161
- 449.25 524.0 l
162
- S
163
- q
164
- /Tr3 gs
165
- 69.0 526.0 m
166
- 576.0 526.0 l
167
- S
168
- S
169
- Q
170
- Q
171
-
172
- endstream
173
- endobj
174
- 5 0 obj
175
- << /Type /Page
176
- /Parent 3 0 R
177
- /MediaBox [0 0 612.0 792.0]
178
- /Contents 4 0 R
179
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
180
- /Font << /F1.0 7 0 R
181
- /F2.0 10 0 R
182
- >>
183
- /ExtGState << /Tr1 6 0 R
184
- /Tr2 8 0 R
185
- /Tr3 9 0 R
186
- >>
187
- >>
188
- >>
189
- endobj
190
- 6 0 obj
191
- << /Type /ExtGState
192
- /CA 0.25
193
- /ca 0.25
194
- >>
195
- endobj
196
- 7 0 obj
197
- << /Type /Font
198
- /Subtype /Type1
199
- /BaseFont /Helvetica
200
- /Encoding /WinAnsiEncoding
201
- >>
202
- endobj
203
- 8 0 obj
204
- << /Type /ExtGState
205
- /CA 0.95
206
- /ca 0.95
207
- >>
208
- endobj
209
- 9 0 obj
210
- << /Type /ExtGState
211
- /CA 1.0
212
- /ca 1.0
213
- >>
214
- endobj
215
- 10 0 obj
216
- << /Type /Font
217
- /Subtype /Type1
218
- /BaseFont /Helvetica-Bold
219
- /Encoding /WinAnsiEncoding
220
- >>
221
- endobj
222
- xref
223
- 0 11
224
- 0000000000 65535 f
225
- 0000000015 00000 n
226
- 0000000109 00000 n
227
- 0000000158 00000 n
228
- 0000000215 00000 n
229
- 0000001525 00000 n
230
- 0000001766 00000 n
231
- 0000001822 00000 n
232
- 0000001919 00000 n
233
- 0000001975 00000 n
234
- 0000002029 00000 n
235
- trailer
236
- << /Size 11
237
- /Root 2 0 R
238
- /Info 1 0 R
239
- >>
240
- startxref
241
- 2132
242
- %%EOF
@@ -1,39 +0,0 @@
1
- And yet whiteness
2
- can be best described by greyness
3
- a bird by a stone
4
- sunflowers
5
- in december
6
-
7
- love poems of old
8
- used to be descriptions of flesh
9
- they described this and that
10
- for instance eyelashes
11
-
12
- and yet redness
13
- should be described
14
- by greyness the sun by rain
15
- the poppies in november
16
- the lips at night
17
-
18
- the most palpable
19
- description of bread
20
- is that of hunger
21
- there is in it
22
- a humid porous core
23
- a warm inside
24
- sunflowers at night
25
- the breasts the belly the thighs of Cybele
26
-
27
- a transparent
28
- source-like description
29
- of water is that of thirst
30
- of ash
31
- of desert
32
- it provokes a mirage
33
- clouds and trees enter
34
- a mirror of water
35
- lack hunger
36
- absence
37
- of flesh
38
- is a description of love
39
- in a modern love poem