timelinegen 0.0.0 → 0.0.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.
- data/lib/timelinegen.rb +3 -2
- metadata +1 -1
data/lib/timelinegen.rb
CHANGED
|
@@ -26,9 +26,9 @@ class TimelineGen
|
|
|
26
26
|
# Generates all event JSONs
|
|
27
27
|
def self.parseEvents(file)
|
|
28
28
|
pe = JSON.parse(File.read(file))
|
|
29
|
-
k = pe.length
|
|
29
|
+
k = pe.length
|
|
30
30
|
event = Array.new
|
|
31
|
-
(0..
|
|
31
|
+
(0..k).each do |i|
|
|
32
32
|
event[i] = JSON.parse(
|
|
33
33
|
genEvent(
|
|
34
34
|
(pe[i])["date"],
|
|
@@ -56,3 +56,4 @@ class TimelineGen
|
|
|
56
56
|
# Add method for adding timeline name
|
|
57
57
|
# Add method for adding timeline text
|
|
58
58
|
end
|
|
59
|
+
|