tps_reporter 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +2 -0
- data/HISTORY.md +7 -0
- data/README.md +31 -2
- data/bin/tps +2 -2
- data/data/index.haml +4 -10
- data/lib/tps/taskpaper_shim.rb +1 -1
- data/lib/tps/version.rb +1 -1
- data/test/bar_test.rb +1 -1
- data/test/html_test.rb +1 -1
- data/test/multi_sprints_test.rb +1 -1
- data/test/sprint_points_test.rb +1 -1
- data/test/sprint_test.rb +1 -1
- data/test/taskpaper_test.rb +1 -1
- data/test/tps_test.rb +1 -1
- data/tps_reporter.gemspec +4 -2
- metadata +37 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c22490f7154cf24378d1b0d5a378056ff3fd154f
|
4
|
+
data.tar.gz: 91b513b016205015bad2ba93a66ac483a7153fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67425b5aad22a4555c22e6ee3517910affaafb7db5f4c6623784da0b0170101825354576695cbc49ad19b6c5ec9192b1e596ab523fbe3ef6a98e504ef70e42a3
|
7
|
+
data.tar.gz: 9e666b0fc651f19df1611c919db454e8cca399939ee96925fcbf3559bd48d0cce73d6fdea5163e0ba7c0ebfa6c756cceef35ddf0c0ea42f53b45794d1f96d9c6
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,36 @@
|
|
4
4
|
|
5
5
|
We often need to make regular reports of things done for our projects at work. I
|
6
6
|
hate doing these by hand. This tool lets us build these reports from YAML files
|
7
|
-
[such as this][
|
7
|
+
[such as this][sample]:
|
8
|
+
|
9
|
+
``` yaml
|
10
|
+
Version 1:
|
11
|
+
|
12
|
+
This file is in TaskPaper format.
|
13
|
+
Tabs are used to indent.
|
14
|
+
Each task begins with a "- ".
|
15
|
+
Projects end with a ":".
|
16
|
+
Tags are in the format "@tag_name".
|
17
|
+
All other lines (such as these) are considered as notes,
|
18
|
+
and are to be ignored.
|
19
|
+
|
20
|
+
- User signup
|
21
|
+
- Register for an account
|
22
|
+
- Log in @done
|
23
|
+
- Forget password
|
24
|
+
|
25
|
+
- Manage users
|
26
|
+
- Create users @in_progress
|
27
|
+
- Delete users
|
28
|
+
- User profile page @40%
|
29
|
+
|
30
|
+
- Blog
|
31
|
+
- Creating new posts @done
|
32
|
+
- Comments @done
|
33
|
+
- Moderating comments @done
|
34
|
+
```
|
35
|
+
|
36
|
+
Requires Ruby 1.9+. No, 1.8.7 will not work.
|
8
37
|
|
9
38
|
Get started
|
10
39
|
-----------
|
@@ -13,7 +42,7 @@ Install TPS (Ruby):
|
|
13
42
|
|
14
43
|
$ gem install tps_reporter
|
15
44
|
|
16
|
-
...then generate a sample file. (or create `tasks.
|
45
|
+
...then generate a sample file. (or create `tasks.taskpaper` based on [this sample
|
17
46
|
file.][sample])
|
18
47
|
|
19
48
|
$ tps sample
|
data/bin/tps
CHANGED
@@ -123,9 +123,9 @@ private
|
|
123
123
|
|
124
124
|
begin
|
125
125
|
if fn.match(/\.taskpaper/)
|
126
|
-
TPS::TaskList.new taskpaper
|
126
|
+
TPS::TaskList.new :taskpaper => fn
|
127
127
|
else
|
128
|
-
TPS::TaskList.new yaml
|
128
|
+
TPS::TaskList.new :yaml => fn
|
129
129
|
end
|
130
130
|
rescue Psych::SyntaxError => e
|
131
131
|
err "Parse error: #{e.message}"
|
data/data/index.haml
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
margin: 0; }
|
48
48
|
|
49
49
|
body, td {
|
50
|
-
font-family:
|
50
|
+
font-family: sans-serif;
|
51
51
|
color: #333;
|
52
52
|
line-height: 13.5pt;
|
53
53
|
font-size: 9pt; }
|
@@ -120,15 +120,9 @@
|
|
120
120
|
th {
|
121
121
|
color: #888; }
|
122
122
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
background: #ffffff; }
|
127
|
-
|
128
|
-
tr:nth-child(odd) td,
|
129
|
-
tr:nth-child(odd) {
|
130
|
-
background: #fafafa; }
|
131
|
-
|
123
|
+
td, th {
|
124
|
+
background: #fff; }
|
125
|
+
/* Double-click to highlight */
|
132
126
|
tr.highlight,
|
133
127
|
tr.highlight td {
|
134
128
|
background: #fafae0; }
|
data/lib/tps/taskpaper_shim.rb
CHANGED
@@ -21,7 +21,7 @@ module TPS::TaskPaperShim
|
|
21
21
|
hash = {}
|
22
22
|
|
23
23
|
# Load tags
|
24
|
-
tags = node.tags.map { |s| s.gsub(/^@/, '').gsub(/_/, ' ') }
|
24
|
+
tags = node.tags.map { |s| s.gsub(/^@/, '').gsub(/_/, ' ').gsub(/\(.*?\)$/, '') }
|
25
25
|
if tags.any?
|
26
26
|
if node.children.any?
|
27
27
|
hash['_'] = tags
|
data/lib/tps/version.rb
CHANGED
data/test/bar_test.rb
CHANGED
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
|
3
3
|
class BarTest < UnitTest
|
4
4
|
setup do
|
5
|
-
@list = TPS::TaskList.new yaml
|
5
|
+
@list = TPS::TaskList.new :yaml => f('markers.yml')
|
6
6
|
@milestone = @list.tasks.first
|
7
7
|
|
8
8
|
@week = %w[w0 w1 w2 w3 w4 w5 w6].map { |id| @list.sprints[id] }
|
data/test/html_test.rb
CHANGED
data/test/multi_sprints_test.rb
CHANGED
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
|
3
3
|
class MultiSprintsTest < UnitTest
|
4
4
|
setup do
|
5
|
-
@list = TPS::TaskList.new yaml
|
5
|
+
@list = TPS::TaskList.new :yaml => f('multi_sprints.yml')
|
6
6
|
@milestone = @list.tasks.first
|
7
7
|
|
8
8
|
@week = %w[_ w1 w2 w3 w4].map { |id| @list.sprints[id] }
|
data/test/sprint_points_test.rb
CHANGED
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
|
3
3
|
class SprintPointsTest < UnitTest
|
4
4
|
setup do
|
5
|
-
@list = TPS::TaskList.new yaml
|
5
|
+
@list = TPS::TaskList.new :yaml => f('sprint_points.yml')
|
6
6
|
@milestone = @list.tasks.first
|
7
7
|
@s = %w[_ s1 s2 s3 s4 s5].map { |id| @list.sprints[id] }
|
8
8
|
end
|
data/test/sprint_test.rb
CHANGED
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
|
3
3
|
class SprintTest < UnitTest
|
4
4
|
setup do
|
5
|
-
@list = TPS::TaskList.new yaml
|
5
|
+
@list = TPS::TaskList.new :yaml => f('sprints.yml')
|
6
6
|
@milestone = @list.tasks.first
|
7
7
|
@s1 = @list.sprints['s1']
|
8
8
|
@s2 = @list.sprints['s2']
|
data/test/taskpaper_test.rb
CHANGED
@@ -23,7 +23,7 @@ class TaskpaperTest < UnitTest
|
|
23
23
|
end
|
24
24
|
|
25
25
|
test "should work" do
|
26
|
-
expected = {"Sprints"=>{"s1"=>"Sprint 1 (November)", "s2"=>"Sprint 2 (Jan)", "s3"=>"Sprint 3 (December)"}, "Version 1"=>{"User signup"=>{"_"=>["s1"], "Register for an account"=>nil, "Log in"=>["done"], "Forget password"=>nil}, "Manage users"=>{"_"=>["in progress", "s1"], "Create users"=>["in progress", "s3"], "Delete users"=>nil, "User profile page"=>nil}, "Blog"=>{"Creating new posts"=>["done"], "Comments"=>["done"], "Moderating comments"=>
|
26
|
+
expected = {"Sprints"=>{"s1"=>"Sprint 1 (November)", "s2"=>"Sprint 2 (Jan)", "s3"=>"Sprint 3 (December)"}, "Version 1"=>{"User signup"=>{"_"=>["s1"], "Register for an account"=>nil, "Log in"=>["done"], "Forget password"=>nil}, "Manage users"=>{"_"=>["in progress", "s1"], "Create users"=>["in progress", "s3"], "Delete users"=>nil, "User profile page"=>nil}, "Blog"=>{"Creating new posts"=>["done"], "Comments"=>["done"], "Moderating comments"=>nil}}}
|
27
27
|
assert_equal expected, @hash
|
28
28
|
end
|
29
29
|
end
|
data/test/tps_test.rb
CHANGED
data/tps_reporter.gemspec
CHANGED
@@ -11,6 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.files = `git ls-files`.strip.split("\n")
|
12
12
|
s.executables = Dir["bin/*"].map { |f| File.basename(f) }
|
13
13
|
|
14
|
-
s.add_dependency "tilt"
|
15
|
-
s.
|
14
|
+
s.add_dependency "tilt", "~> 1.4.1"
|
15
|
+
s.add_dependency "haml", "~> 4.0.0"
|
16
|
+
s.add_development_dependency "rake"
|
17
|
+
s.add_development_dependency "contest", "0.1.3"
|
16
18
|
end
|
metadata
CHANGED
@@ -1,31 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tps_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rico Sta. Cruz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: haml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - '>='
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - '>='
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: contest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.3
|
41
69
|
description: A YAML-powered, simple command-line task report builder.
|
42
70
|
email:
|
43
71
|
- rico@sinefunc.com
|
@@ -47,7 +75,9 @@ extensions: []
|
|
47
75
|
extra_rdoc_files: []
|
48
76
|
files:
|
49
77
|
- .gitignore
|
78
|
+
- .travis.yml
|
50
79
|
- GUIDE.md
|
80
|
+
- Gemfile
|
51
81
|
- HISTORY.md
|
52
82
|
- Notes.md
|
53
83
|
- README.md
|