daily_planner 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/daily_planner.rb +14 -2
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eecc84c39aae6930b39ad07b5a889444ee717c77
|
4
|
+
data.tar.gz: 31a7e569c8a95accde246a6169a7157e7b0e6f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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
|
-
|
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.
|
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-
|
34
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: dynarex
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '1.6'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
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: '
|
52
|
+
version: '1.6'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 1.6.1
|
56
56
|
description:
|
57
57
|
email: james@r0bertson.co.uk
|
58
58
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|