liveblog 1.2.5 → 1.2.6

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
  SHA1:
3
- metadata.gz: cf6a051a5a7c8dd87c348ea7dd99cfd398041986
4
- data.tar.gz: 87ca9263cf10d3e9e4f8e07e580eaf568c144041
3
+ metadata.gz: 16b9a2c95d507d7c72338f3217fb615776ca6add
4
+ data.tar.gz: 78912e7acad0b24715b235abf4f379eb324db8bf
5
5
  SHA512:
6
- metadata.gz: 1517ec2c12157475b59dd9847a387af1e60c379cc4872d745e9c13b58ab50e14642c599b0c215fbcc42e1ae74ba668ad628497a4b53220cdab150ac6707555b4
7
- data.tar.gz: 42a8e3e316c3fdb2c939c3c14d96bfd4fd38f2ccc5e1a5b822c56c3a79a90a84f432b46163b4c3ee93e529aea59ed7280026d382a4c2d34138002131fc6cfce0
6
+ metadata.gz: 5aca5be1503e67a99373d49fdf5947516f6790a31092ac8fd057c8e2eb34b94e73f4cbcf92297d2a43b67801e63351dbdcc48d022806306a3497c31c3449eabe
7
+ data.tar.gz: c43195fb17ad32ab0210c146add4bdc75eba5f3a0f8d59dc1b4f395a5059663b78c2309014258ade199347bf11799c21a32f17bb4122bfd774b97caf826b18be
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -49,9 +49,8 @@ class LiveBlog
49
49
 
50
50
  if File.exists? dxfile then
51
51
 
52
- @dx = Dynarex.new(dxfile)
53
- @d = Date.parse @dx.title
54
-
52
+ load_file(dxfile)
53
+
55
54
  else
56
55
 
57
56
  new_day()
@@ -141,6 +140,11 @@ class LiveBlog
141
140
 
142
141
  end
143
142
 
143
+ def load_file(dxfile)
144
+ @dx = Dynarex.new(dxfile)
145
+ @d = Date.parse @dx.title
146
+ end
147
+
144
148
  def new_day(date: Date.today)
145
149
 
146
150
  @d = date
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file