dnotify 0.0.2 → 0.0.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.
- data/README.md +9 -7
- data/lib/dnotify.rb +1 -1
- data/lib/dnotify/version.rb +1 -1
- metadata +35 -44
data/README.md
CHANGED
@@ -6,16 +6,16 @@ This is a simple gem which allows you to setup reminders using a simple yaml fil
|
|
6
6
|
gem install dnotify
|
7
7
|
dnotify setup
|
8
8
|
|
9
|
-
Add your reminders to ~/.dnotifyrc
|
9
|
+
Add your reminders to ~/.dnotifyrc (don't forget to setup the right display id)
|
10
10
|
|
11
|
-
#~/.dnotifyrc
|
12
|
-
---
|
11
|
+
#~/.dnotifyrc (get your display id by running: env|grep DISPLAY)
|
12
|
+
---
|
13
|
+
:display: ':1.0'
|
14
|
+
:reminders:
|
13
15
|
- :summary: Time to play badminton
|
14
|
-
:time:
|
15
|
-
- :summary: Time to reminisce
|
16
|
-
:time: 9 in the evening saturday
|
16
|
+
:time: 5:09 in the evening
|
17
17
|
- :summary: Call it a day
|
18
|
-
:time: 10
|
18
|
+
:time: 5:10 in the evening
|
19
19
|
|
20
20
|
Enjoy!
|
21
21
|
|
@@ -23,3 +23,5 @@ TODO
|
|
23
23
|
====
|
24
24
|
- add a few tests
|
25
25
|
- allow listing of reminders
|
26
|
+
- add custom "notifiers", through some ruby dsl?
|
27
|
+
- a way to change the frequency of dnotify?
|
data/lib/dnotify.rb
CHANGED
@@ -22,7 +22,7 @@ module Dnotify
|
|
22
22
|
puts 'setting up cron'
|
23
23
|
tmp_cron_file = Tempfile.new('dnotify_tmp_cron').path
|
24
24
|
File.open(tmp_cron_file, File::WRONLY | File::APPEND) do |file|
|
25
|
-
file << existing_crontab << "* * * * * /bin/bash -
|
25
|
+
file << existing_crontab << "* * * * * /bin/bash -l -c 'dnotify' > /tmp/dnotify.log 2>&1\n"
|
26
26
|
end
|
27
27
|
puts `crontab #{tmp_cron_file}`
|
28
28
|
end
|
data/lib/dnotify/version.rb
CHANGED
metadata
CHANGED
@@ -1,50 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnotify
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Khaja Minhajuddin
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-17 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: chronic
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &11727140 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
18
|
+
requirements:
|
22
19
|
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.4'
|
25
22
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: libnotify
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *11727140
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: libnotify
|
27
|
+
requirement: &11726520 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
29
|
+
requirements:
|
33
30
|
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.5'
|
36
33
|
type: :runtime
|
37
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *11726520
|
38
36
|
description: Allows you to setup passive reminders using natural language
|
39
|
-
email:
|
37
|
+
email:
|
40
38
|
- minhajuddin.k@gmail.com
|
41
|
-
executables:
|
39
|
+
executables:
|
42
40
|
- dnotify
|
43
41
|
extensions: []
|
44
|
-
|
45
42
|
extra_rdoc_files: []
|
46
|
-
|
47
|
-
files:
|
43
|
+
files:
|
48
44
|
- .gitignore
|
49
45
|
- Gemfile
|
50
46
|
- README.md
|
@@ -55,33 +51,28 @@ files:
|
|
55
51
|
- lib/dnotify/version.rb
|
56
52
|
- resources/clock.png
|
57
53
|
- resources/dnotifyrc.sample.yaml
|
58
|
-
has_rdoc: true
|
59
54
|
homepage: https://github.com/minhajuddin/dnotify
|
60
55
|
licenses: []
|
61
|
-
|
62
56
|
post_install_message:
|
63
57
|
rdoc_options: []
|
64
|
-
|
65
|
-
require_paths:
|
58
|
+
require_paths:
|
66
59
|
- lib
|
67
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
61
|
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version:
|
73
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
67
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
79
72
|
requirements: []
|
80
|
-
|
81
73
|
rubyforge_project: dnotify
|
82
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.8.10
|
83
75
|
signing_key:
|
84
76
|
specification_version: 3
|
85
77
|
summary: Allows you to setup passive reminders for stuff
|
86
78
|
test_files: []
|
87
|
-
|