markdo 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +17 -0
- data/README.md +7 -1
- data/Rakefile +5 -0
- data/lib/markdo/cli.rb +3 -0
- data/lib/markdo/fake_version.rb +4 -0
- data/lib/markdo/help_command.rb +1 -0
- data/lib/markdo/inbox_command.rb +15 -0
- data/lib/markdo/summary_command.rb +2 -1
- data/lib/markdo/version.rb +1 -1
- data/markdo.gemspec +1 -1
- data/test/fixtures/inbox.md +2 -0
- data/test/inbox_command_test.rb +19 -0
- data/test/summary_command_test.rb +3 -2
- metadata +9 -3
- data/configure +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a71f1e99a267cfca241e89d0e707a6da7a38e3d
|
4
|
+
data.tar.gz: 08798b77939ecb5a2c5f98c0bf411f0017444081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c58f87e3af7bf2f6c914c9fe89920f0bab220af1d6d397d56588a0402f74a4dccfb8080dadcf063de9189f68fa64d97a371f6cd01c367b22219ef31d7bc6380
|
7
|
+
data.tar.gz: 18416b125225f4cf78dea8d2c40c3d571e71f98d4f68c6827a630077f2330d0df863e324ecf23b8dd19353f5c588b763e04d10820a3e9e468175154de47502af
|
data/Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ubuntu:16.04
|
2
|
+
MAINTAINER Benjamin Oakes
|
3
|
+
|
4
|
+
RUN apt-get update
|
5
|
+
# Used for building the gem
|
6
|
+
RUN apt-get install -y git
|
7
|
+
|
8
|
+
RUN apt-get install -y ruby
|
9
|
+
RUN gem install --no-ri --no-rdoc bundler
|
10
|
+
|
11
|
+
COPY Gemfile $HOME/
|
12
|
+
COPY lib/markdo/fake_version.rb $HOME/lib/markdo/version.rb
|
13
|
+
|
14
|
+
COPY markdo.gemspec $HOME/
|
15
|
+
RUN bundle
|
16
|
+
|
17
|
+
WORKDIR /src
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ And of course:
|
|
36
36
|
- [x] A completed task
|
37
37
|
- [ ] An incomplete task
|
38
38
|
- [ ] A subtask
|
39
|
-
- [ ] 2016-01-01 A task with a date
|
39
|
+
- [ ] @due(2016-01-01) A task with a due date
|
40
40
|
- [ ] A task with a @tag
|
41
41
|
```
|
42
42
|
|
@@ -67,3 +67,9 @@ See `markdo help` for more information.
|
|
67
67
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
68
68
|
4. Push to the branch (`git push origin my-new-feature`)
|
69
69
|
5. Create new Pull Request
|
70
|
+
|
71
|
+
### Development Environment
|
72
|
+
|
73
|
+
host$ sudo docker build -t markdo .
|
74
|
+
host$ sudo docker run --rm -v $PWD:/src -i -t markdo
|
75
|
+
container$ rake
|
data/Rakefile
CHANGED
data/lib/markdo/cli.rb
CHANGED
@@ -2,6 +2,7 @@ require 'markdo/add_command'
|
|
2
2
|
require 'markdo/edit_command'
|
3
3
|
require 'markdo/help_command'
|
4
4
|
require 'markdo/ics_command'
|
5
|
+
require 'markdo/inbox_command'
|
5
6
|
require 'markdo/overview_command'
|
6
7
|
require 'markdo/query_command'
|
7
8
|
require 'markdo/rss_command'
|
@@ -29,6 +30,8 @@ module Markdo
|
|
29
30
|
EditCommand
|
30
31
|
when 'ics'
|
31
32
|
IcsCommand
|
33
|
+
when 'inbox'
|
34
|
+
InboxCommand
|
32
35
|
when 'overdue'
|
33
36
|
OverdueCommand
|
34
37
|
when 'overview'
|
data/lib/markdo/help_command.rb
CHANGED
@@ -9,6 +9,7 @@ Markdown-based task manager.
|
|
9
9
|
add "string" Add a task to the inbox. (Set $MARKDO_ROOT and $MARKDO_INBOX.)
|
10
10
|
edit Edit $MARKDO_ROOT in $EDITOR.
|
11
11
|
help, --help Display this help text.
|
12
|
+
inbox Display contents of $MARKDO_INBOX.
|
12
13
|
ics Make an iCalendar feed of all due dates in Markdo. Can be imported
|
13
14
|
or subscribed to if on a remote server.
|
14
15
|
overview Get overview of overdue, starred, today's, and tomorrow's tasks.
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'stringio'
|
2
2
|
|
3
3
|
require 'markdo/command'
|
4
|
+
require 'markdo/inbox_command'
|
4
5
|
require 'markdo/overdue_command'
|
5
6
|
require 'markdo/star_command'
|
6
7
|
require 'markdo/today_command'
|
@@ -10,7 +11,7 @@ require 'markdo/week_command'
|
|
10
11
|
module Markdo
|
11
12
|
class SummaryCommand < Command
|
12
13
|
def run
|
13
|
-
commands = [OverdueCommand, StarCommand, TodayCommand, TomorrowCommand, WeekCommand]
|
14
|
+
commands = [OverdueCommand, StarCommand, TodayCommand, TomorrowCommand, WeekCommand, InboxCommand]
|
14
15
|
|
15
16
|
commands.each do |command|
|
16
17
|
out = StringIO.new
|
data/lib/markdo/version.rb
CHANGED
data/markdo.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "http://github.com/benjaminoakes/markdo"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.files = File.directory?('.git') ? `git ls-files`.split($/) : []
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'markdo/inbox_command'
|
3
|
+
|
4
|
+
module Markdo
|
5
|
+
describe InboxCommand do
|
6
|
+
it 'outputs inbox' do
|
7
|
+
out = StringIO.new
|
8
|
+
err = StringIO.new
|
9
|
+
env = { 'MARKDO_ROOT' => 'test/fixtures', 'MARKDO_INBOX' => 'inbox.md' }
|
10
|
+
|
11
|
+
InboxCommand.new(out, err, env).run
|
12
|
+
|
13
|
+
out.string.must_equal <<-XML
|
14
|
+
- [ ] Test 1
|
15
|
+
- [ ] Test 2
|
16
|
+
XML
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -3,15 +3,16 @@ require 'markdo/summary_command'
|
|
3
3
|
|
4
4
|
module Markdo
|
5
5
|
describe SummaryCommand do
|
6
|
-
it 'outputs
|
6
|
+
it 'outputs summary counts' do
|
7
7
|
out = StringIO.new
|
8
8
|
err = StringIO.new
|
9
|
-
env = { 'MARKDO_ROOT' => 'test/fixtures' }
|
9
|
+
env = { 'MARKDO_ROOT' => 'test/fixtures', 'MARKDO_INBOX' => 'inbox.md' }
|
10
10
|
|
11
11
|
SummaryCommand.new(out, err, env).run
|
12
12
|
|
13
13
|
out.string.must_equal <<-XML
|
14
14
|
Overdue: 3
|
15
|
+
Inbox: 2
|
15
16
|
XML
|
16
17
|
end
|
17
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Oakes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -63,20 +63,22 @@ files:
|
|
63
63
|
- ".gitignore"
|
64
64
|
- ".ruby-version"
|
65
65
|
- ".travis.yml"
|
66
|
+
- Dockerfile
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE.txt
|
68
69
|
- README.md
|
69
70
|
- Rakefile
|
70
71
|
- bin/markdo
|
71
|
-
- configure
|
72
72
|
- lib/markdo.rb
|
73
73
|
- lib/markdo/add_command.rb
|
74
74
|
- lib/markdo/cli.rb
|
75
75
|
- lib/markdo/command.rb
|
76
76
|
- lib/markdo/date_command.rb
|
77
77
|
- lib/markdo/edit_command.rb
|
78
|
+
- lib/markdo/fake_version.rb
|
78
79
|
- lib/markdo/help_command.rb
|
79
80
|
- lib/markdo/ics_command.rb
|
81
|
+
- lib/markdo/inbox_command.rb
|
80
82
|
- lib/markdo/overdue_command.rb
|
81
83
|
- lib/markdo/overview_command.rb
|
82
84
|
- lib/markdo/query_command.rb
|
@@ -91,8 +93,10 @@ files:
|
|
91
93
|
- lib/markdo/week_command.rb
|
92
94
|
- markdo.gemspec
|
93
95
|
- test/fixtures/ics_command.md
|
96
|
+
- test/fixtures/inbox.md
|
94
97
|
- test/fixtures/rss_command.md
|
95
98
|
- test/ics_command_test.rb
|
99
|
+
- test/inbox_command_test.rb
|
96
100
|
- test/rss_command_test.rb
|
97
101
|
- test/summary_command_test.rb
|
98
102
|
- test/test_helper.rb
|
@@ -122,8 +126,10 @@ specification_version: 4
|
|
122
126
|
summary: Markdown-based task manager
|
123
127
|
test_files:
|
124
128
|
- test/fixtures/ics_command.md
|
129
|
+
- test/fixtures/inbox.md
|
125
130
|
- test/fixtures/rss_command.md
|
126
131
|
- test/ics_command_test.rb
|
132
|
+
- test/inbox_command_test.rb
|
127
133
|
- test/rss_command_test.rb
|
128
134
|
- test/summary_command_test.rb
|
129
135
|
- test/test_helper.rb
|
data/configure
DELETED