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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ca34432146f58fced0ce7797a8ee1a50a842c3b
4
- data.tar.gz: 78b442712fd0a2d687586d174c82cc758f4bbec8
3
+ metadata.gz: c22490f7154cf24378d1b0d5a378056ff3fd154f
4
+ data.tar.gz: 91b513b016205015bad2ba93a66ac483a7153fbf
5
5
  SHA512:
6
- metadata.gz: 699b6087e62fe5e154f5797bee9cd349580a774a0ea27cccd90d0cc56eff15e4842378d6115a64a0325720ddb51e16d08cc20f817e30c1aacbe906537be37113
7
- data.tar.gz: 49dfb6eaf9fe7dff6540dc5371ff7ee4bf69a268f71fcceb738095f5327394d1ffb992793fd3610dd5ba4e17c6c01fa4150c3c28eb17665cd36fb25545cbc030
6
+ metadata.gz: 67425b5aad22a4555c22e6ee3517910affaafb7db5f4c6623784da0b0170101825354576695cbc49ad19b6c5ec9192b1e596ab523fbe3ef6a98e504ef70e42a3
7
+ data.tar.gz: 9e666b0fc651f19df1611c919db454e8cca399939ee96925fcbf3559bd48d0cce73d6fdea5163e0ba7c0ebfa6c756cceef35ddf0c0ea42f53b45794d1f96d9c6
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.json
2
2
  *.cson
3
+ Gemfile.lock
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ script: "bundle exec rake test"
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "https://rubygems.org"
2
+ gemspec
data/HISTORY.md CHANGED
@@ -1,3 +1,10 @@
1
+ v0.4.1 - Jul 22, 2013
2
+ ---------------------
3
+
4
+ * TaskPaper: allow `@done(...)` tags.
5
+ * HTML: remove zebra stripes.
6
+ * HTML: use default font (instead of PT Sans).
7
+
1
8
  v0.4.0 - June 13, 2013
2
9
  ----------------------
3
10
 
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][s].
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.yml` based on [this sample
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: fn
126
+ TPS::TaskList.new :taskpaper => fn
127
127
  else
128
- TPS::TaskList.new yaml: fn
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: pt sans, sans-serif;
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
- /* Zebra */
124
- tr td,
125
- tr {
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; }
@@ -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
@@ -1,5 +1,5 @@
1
1
  module TPS
2
2
  def self.version
3
- "0.4.0"
3
+ "0.4.1"
4
4
  end
5
5
  end
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: f('markers.yml')
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
@@ -6,7 +6,7 @@ class HtmlTest < UnitTest
6
6
  TESTS.each do |yml_file|
7
7
  context yml_file do
8
8
  setup do
9
- @list = TPS::TaskList.new yaml: f(yml_file)
9
+ @list = TPS::TaskList.new :yaml => f(yml_file)
10
10
  end
11
11
 
12
12
  test "HTML" do
@@ -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: f('multi_sprints.yml')
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] }
@@ -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: f('sprint_points.yml')
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: f('sprints.yml')
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']
@@ -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"=>["done"]}}}
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
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class MyTest < UnitTest
4
4
  setup do
5
- @list = TPS::TaskList.new yaml: f('hello.yml')
5
+ @list = TPS::TaskList.new :yaml => f('hello.yml')
6
6
  @milestone = @list.tasks.first
7
7
  end
8
8
 
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.add_development_dependency "contest"
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.0
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-06-12 00:00:00.000000000 Z
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: '0'
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: '0'
26
+ version: 1.4.1
27
27
  - !ruby/object:Gem::Dependency
28
- name: contest
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