daily_planner 0.1.2 → 0.2.0

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: d9af46a5832bbbf1a032e4df76866c8ec6a10e32
4
- data.tar.gz: 259d22dbf34252fac923958b1075811b574c35ea
3
+ metadata.gz: eecc84c39aae6930b39ad07b5a889444ee717c77
4
+ data.tar.gz: 31a7e569c8a95accde246a6169a7157e7b0e6f3b
5
5
  SHA512:
6
- metadata.gz: 756eb36fb1f333f1bf38850cb067d80d17cf7f5160f4843eeccc762c80a4ef22b853b37dacd58e6305f0fd8bfb78a3c30653258d72fb0a5d9f460ca42c05fa2f
7
- data.tar.gz: c64c8dc8115b369e32b9eaf565ff2005e9e9e23d9439c20563ebe21eefb30fa8071157dbb4f6a3f4730c7a273fc44065ef6cc4691e57d2e7f56847ab475f67d3
6
+ metadata.gz: 1ae0df2d3db93b35fcb6a7e465ba069555a0491bb54c1b8a9c988d572ff71bfed982d4da5fc4ac0a17c4a8eb363e140bd0902c90b6220bb9d84926b54ffff852
7
+ data.tar.gz: a1793cbc9b0941f8152c098934ea1abdcde636188ad13d824f98b5f50330bd3e2932329689120173b73cda133b1a8ed9de5b9d99b774eba1d106e7551e3999f1
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/daily_planner.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # file: daily_planner.rb
4
4
 
5
5
  require 'date'
6
- require 'recordx'
6
+ require 'dynarex'
7
7
  require 'fileutils'
8
8
 
9
9
 
@@ -12,7 +12,7 @@ class DailyPlanner
12
12
  attr_reader :to_s
13
13
 
14
14
  def initialize(filename='daily-planner.txt', path: '.',
15
- now: DateTime.now.to_date)
15
+ now: DateTime.now.to_date, config: {})
16
16
 
17
17
  @filename, @path, @now = filename, path, now
18
18
 
@@ -31,6 +31,18 @@ class DailyPlanner
31
31
  @rx = new_rx
32
32
  end
33
33
 
34
+ # check for weekly-planner entries which
35
+ # should be added to the daily-planner
36
+ weeklyplanner_filepath = config[:weeklyplanner_filepath]
37
+
38
+ if weeklyplanner_filepath then
39
+
40
+ dx = Dynarex.new weeklyplanner_filepath
41
+ record = dx.find_by_id (now+1).strftime("%Y%m%d")
42
+ @rx.tomorrow << "\n" + record.x.lines[2..-1].join if record
43
+
44
+ end
45
+
34
46
  end
35
47
 
36
48
  def rx()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily_planner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,28 +31,28 @@ cert_chain:
31
31
  52/Qhn5QdVacSO+YlHFgL6wMk/FAnJzGgADFpvq/QgXbDkH5G2eRKpvJP9J1E34V
32
32
  iT9ytBP7h9+uFg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-12-12 00:00:00.000000000 Z
34
+ date: 2015-12-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
- name: recordx
37
+ name: dynarex
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '0.2'
42
+ version: '1.6'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.2.4
45
+ version: 1.6.1
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.2'
52
+ version: '1.6'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 0.2.4
55
+ version: 1.6.1
56
56
  description:
57
57
  email: james@r0bertson.co.uk
58
58
  executables: []
metadata.gz.sig CHANGED
Binary file