weekly_planner 0.3.4 → 0.3.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20459cb6f2bd31f0509efde4204a29f825117276
4
- data.tar.gz: 2027e628e74bcd7004ddf16a9b169fbf6b4d028d
3
+ metadata.gz: 36cce987bca10012cb74f4905ab8b919e1ec5ef6
4
+ data.tar.gz: 05aa83c0426867aa388165e7926741483f9cffbd
5
5
  SHA512:
6
- metadata.gz: f3388cf971767a6fdc23ccf5d9739afbf379516eb32ca3f5af0f78a18928ec6c4cd6c066b4b9c4f3abb9dbc750e362e24101c5435d68f5686426bb34892b1284
7
- data.tar.gz: '092b56571e04e960fa6b23d72030b7fec14ed5d26dcecd3a093886e739f1e5f6247cfa66c4e40d136d45fbfcc596b275c1fa937b11cc2ec995cc1d145eae2a04'
6
+ metadata.gz: 8990cd660c162889724a590791c59695f22c902b901336574bc363e72290d6c780b09525c5326d9a73bb190ffecc121a0dc7df688152b3928666028f0e71a403
7
+ data.tar.gz: 3d71bbe7490daf14ff06f8787e63933fa46f5a47c45e0232c8eb46221174d6cebc81bbf4b5a6125c745cc59ac03ae77ce13206ff6ee92ed8c1708f262388cd71
checksums.yaml.gz.sig CHANGED
Binary file
@@ -31,13 +31,14 @@ class WeeklyPlanner
31
31
  dx = import_to_dx(File.read(fpath))
32
32
  @dx = refresh File.join(path, filename.sub(/\.txt$/,'.xml')), dx
33
33
  sync_archive()
34
+
34
35
  # purge any past dates
35
36
  while @dx.all.first and Date.parse(@dx.all.first.id, "%Y%m%d") != DateTime.now.to_date \
36
37
  and @dx.all.length > 0 do
37
38
  @dx.all.first.delete
38
39
 
39
40
  end
40
-
41
+
41
42
  # new days to add?
42
43
  len = 7 - @dx.all.length
43
44
 
@@ -52,9 +53,8 @@ class WeeklyPlanner
52
53
 
53
54
  sync_archive @dx.all[-(len)..-1]
54
55
 
55
- else
56
-
57
- @dx = new_dx
56
+ #jr230716 else
57
+ #jr230716 @dx = new_dx
58
58
 
59
59
  end
60
60
 
@@ -154,17 +154,17 @@ class WeeklyPlanner
154
154
  dx.title = "Weekly Planner (%s)" % (d).strftime("%d-%b-%Y")
155
155
 
156
156
  rows.each.with_index do |raw_x, i|
157
-
157
+
158
158
  a = raw_x.lines
159
159
  a.shift
160
160
  heading = "# %s\n" % (d + i).strftime("%d-%b-%Y")
161
161
 
162
162
  a.shift # removes the dashed line
163
163
  content = a.join.rstrip
164
- dx.create({x: heading + content}, id: (d + i).strftime("%Y%m%d"))
164
+ dx.create({x: heading + content }, id: (d + i).strftime("%Y%m%d"))
165
165
 
166
166
  end
167
-
167
+
168
168
  return dx
169
169
 
170
170
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weekly_planner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file