weekly_planner 0.4.2 → 0.4.3
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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data.tar.gz.sig +3 -1
- data/lib/weekly_planner.rb +10 -5
- metadata +2 -2
- 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: 72f6290c2ef24e672493f9071c5c792bc6d3231c
|
|
4
|
+
data.tar.gz: 450f7929f300b405ab08ef1624b30a4d071f3c40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e5fdcdcb98d895e2202e311c2419c8c14fa64fe96fadef3b2fbb37528067dd69c132ecb5aecadc56ba1b281996e9a656e80fffbb9e1b1156ae28d3928e5b150
|
|
7
|
+
data.tar.gz: 4d29a1d60d7f858539cf690bb105991e5f5d59b79594a762ece1fc665a97e95f234a42ffa1779b47fe9e31195f59aea50a1fbf41fbb6a993f19cfc97ff7e4b8d
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
q��r���_�^�_p��Ƈ�>ʍ[�W4<a��!�k�,��=�^���������W�C"�9��<����π �0}0�w�1e�D߆�p\��ͲX���/�%�[��ˀ�͝Z}�ő��r�����1
|
|
2
|
+
3�:h��B4�����f���όJm�Yz(wK��8���u����W�(�9�0��1 ��rTV��� ����چ,�h��C����=m?(j�U��0��1�㍓���UE��������X�5
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
{*묿��f��Z1���ٯ��lY�;IZ�j9%{��ލ�b��yZ������r��(8��;�H���|?��>�R��A�JD?L�L�rN���~���ܔO9t�Y�H�F��=1{tw��i+���g����_��E
|
|
2
|
+
/����8>�Y+��@\�kk>^�V�����4�9��H�����&r�
|
|
3
|
+
�Ƽ!r&X[��jJ�ra
|
data/lib/weekly_planner.rb
CHANGED
|
@@ -22,15 +22,15 @@ class WeeklyPlanner
|
|
|
22
22
|
|
|
23
23
|
def initialize(filename='weekly-planner.txt',
|
|
24
24
|
path: File.dirname(filename), config: {})
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
@filename, @path = File.basename(filename), File.expand_path(path)
|
|
27
27
|
|
|
28
|
-
fpath = File.join(path, filename)
|
|
29
|
-
|
|
28
|
+
fpath = File.join(@path, @filename)
|
|
29
|
+
|
|
30
30
|
if File.exists?(fpath) then
|
|
31
31
|
|
|
32
32
|
dx = import_to_dx(File.read(fpath))
|
|
33
|
-
@dx = refresh File.join(path, filename.sub(/\.txt$/,'.xml')), dx
|
|
33
|
+
@dx = refresh File.join(@path, @filename.sub(/\.txt$/,'.xml')), dx
|
|
34
34
|
sync_archive()
|
|
35
35
|
|
|
36
36
|
# purge any past dates
|
|
@@ -57,7 +57,8 @@ class WeeklyPlanner
|
|
|
57
57
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
else
|
|
60
|
+
else
|
|
61
|
+
|
|
61
62
|
@dx = new_dx
|
|
62
63
|
end
|
|
63
64
|
|
|
@@ -88,6 +89,10 @@ class WeeklyPlanner
|
|
|
88
89
|
@dx
|
|
89
90
|
end
|
|
90
91
|
|
|
92
|
+
def find_by_wday(wday)
|
|
93
|
+
@dx.all.detect {|x| Date.parse(x.id).wday == wday }
|
|
94
|
+
end
|
|
95
|
+
|
|
91
96
|
def save(filename=@filename)
|
|
92
97
|
#
|
|
93
98
|
s = File.basename(filename) + "\n" + dx_to_s(@dx).lines[1..-1].join
|
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.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
z7gNRJqGU+m6WOC+EaEcNkm4WwRqy2Il3J8DydaFl+h20aqjFe1k7KgLU8qy8jyU
|
|
32
32
|
FlTqE0DQzwY5Dg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-
|
|
34
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
|
Binary file
|