reminders_txt 0.3.8 → 0.3.9
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 +3 -2
- data.tar.gz.sig +0 -0
- data/lib/reminders_txt.rb +3 -3
- metadata +4 -4
- 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: 46ae6dfe66c0960030ebc9976fd87023a92f8e99
|
|
4
|
+
data.tar.gz: 7057983dc23de7b29c26aea67f219f8fcd32e94c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab6604084b56c517d9f24de02186d6682d6ae64fc5133a2948bafbc07e7590acab3db665edbe0b390330fb8702764b02506b38e4f598a59b7f21e4f8c23dcf34
|
|
7
|
+
data.tar.gz: 5dde4c24273c28dd8b938a87199be901177b293b1e1e5f7086d8a6f3e843cb2a59571cb3f8e5a5ed828c6ff148918d8d2266673055e3d356ad5fba801a122332
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
�
|
|
1
|
+
�d��&U0h��*+��K���x���ȑ}-p�IS�}�2;o���M��r�����4S
|
|
2
|
+
?=+�8�CnMh6)�[�BGM�v���_��Q�4��M;��w�(t�#P}��
|
|
3
|
+
�Q��R#�Te�᠉�%0]t���<a2vq6(��L`1S��s�@I�e2/$2����s�7�f��$��X<�\|� g��t-���9�ȴ�rL/�">N�*e��yJYy[�Ȟ^X��m�u�:1R��u����W�.3E�ga]eZ��
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/reminders_txt.rb
CHANGED
|
@@ -38,6 +38,7 @@ class RemindersTxt
|
|
|
38
38
|
@filepath = 'reminders.xml'
|
|
39
39
|
@dx = Dynarex.new raw_s
|
|
40
40
|
elsif File.extname(@filepath) == '.txt'
|
|
41
|
+
|
|
41
42
|
import_txt(@filepath)
|
|
42
43
|
refresh()
|
|
43
44
|
else
|
|
@@ -150,7 +151,7 @@ class RemindersTxt
|
|
|
150
151
|
# 27-Mar@1436 some important day
|
|
151
152
|
get /(\d[^\s]+)\s+([^\*]+)(\*)?/ do |raw_date, title, annualar|
|
|
152
153
|
|
|
153
|
-
d = Chronic.parse(raw_date)
|
|
154
|
+
d = Chronic.parse(raw_date, :endian_precedence => :little)
|
|
154
155
|
recurring = nil
|
|
155
156
|
|
|
156
157
|
if annualar then
|
|
@@ -238,7 +239,6 @@ class RemindersTxt
|
|
|
238
239
|
@reminders.reject! {|x| x.date.to_time < @now if not x.recurring }
|
|
239
240
|
|
|
240
241
|
@reminders.sort_by!(&:date)
|
|
241
|
-
|
|
242
242
|
|
|
243
243
|
# did the reminders change?
|
|
244
244
|
|
|
@@ -250,7 +250,7 @@ class RemindersTxt
|
|
|
250
250
|
if b then
|
|
251
251
|
|
|
252
252
|
save_dx()
|
|
253
|
-
File.write @
|
|
253
|
+
File.write File.join(File.dirname(@filepath), 'reminders.txt'), self.to_s
|
|
254
254
|
@updated = true
|
|
255
255
|
end
|
|
256
256
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reminders_txt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
n+SSd9dm8JjhZ2pqHtX+bgMZ18hrN06xfR+UPtk5BKC8v1PC0FWxaVR4lom39rFU
|
|
32
32
|
seDxJNsJgamAKg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2017-01-02 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
|
@@ -94,7 +94,7 @@ dependencies:
|
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: 0.3.2
|
|
96
96
|
description:
|
|
97
|
-
email: james@
|
|
97
|
+
email: james@jamesrobertson.eu
|
|
98
98
|
executables: []
|
|
99
99
|
extensions: []
|
|
100
100
|
extra_rdoc_files: []
|
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
120
|
version: '0'
|
|
121
121
|
requirements: []
|
|
122
122
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.
|
|
123
|
+
rubygems_version: 2.6.8
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: Reads and updates diary reminders from a plain text file
|
metadata.gz.sig
CHANGED
|
Binary file
|