caelum-git-reports 0.1.0 → 0.1.1
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/VERSION +1 -1
- data/git-reports.gemspec +59 -0
- data/lib/html_report.rb +2 -2
- metadata +4 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/git-reports.gemspec
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
Gem::Specification.new do |s|
|
|
4
|
+
s.name = %q{git-reports}
|
|
5
|
+
s.version = "0.1.1"
|
|
6
|
+
|
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
|
+
s.authors = ["Caue Guerra", "Pedro Matiello"]
|
|
9
|
+
s.date = %q{2009-06-30}
|
|
10
|
+
s.default_executable = %q{git-report.rb}
|
|
11
|
+
s.email = %q{caue.guerra@gmail.com}
|
|
12
|
+
s.executables = ["git-report.rb"]
|
|
13
|
+
s.extra_rdoc_files = [
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"README.rdoc"
|
|
16
|
+
]
|
|
17
|
+
s.files = [
|
|
18
|
+
".document",
|
|
19
|
+
".gitignore",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.rdoc",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"VERSION",
|
|
24
|
+
"bin/git-report.rb",
|
|
25
|
+
"git-reports.gemspec",
|
|
26
|
+
"lib/html_report.rb",
|
|
27
|
+
"lib/html_summary.rb",
|
|
28
|
+
"lib/reporter.rb",
|
|
29
|
+
"lib/repository.rb",
|
|
30
|
+
"lib/template.rb",
|
|
31
|
+
"spec/html_report_spec.rb",
|
|
32
|
+
"spec/html_summary_spec.rb",
|
|
33
|
+
"spec/reporter_spec.rb",
|
|
34
|
+
"spec/repository_spec.rb",
|
|
35
|
+
"spec/spec_helper.rb"
|
|
36
|
+
]
|
|
37
|
+
s.homepage = %q{http://github.com/caelum/git-reports}
|
|
38
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
39
|
+
s.require_paths = ["lib"]
|
|
40
|
+
s.rubygems_version = %q{1.3.4}
|
|
41
|
+
s.summary = %q{Git report tool}
|
|
42
|
+
s.test_files = [
|
|
43
|
+
"spec/reporter_spec.rb",
|
|
44
|
+
"spec/repository_spec.rb",
|
|
45
|
+
"spec/spec_helper.rb",
|
|
46
|
+
"spec/html_report_spec.rb",
|
|
47
|
+
"spec/html_summary_spec.rb"
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
if s.respond_to? :specification_version then
|
|
51
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
52
|
+
s.specification_version = 3
|
|
53
|
+
|
|
54
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
55
|
+
else
|
|
56
|
+
end
|
|
57
|
+
else
|
|
58
|
+
end
|
|
59
|
+
end
|
data/lib/html_report.rb
CHANGED
|
@@ -18,10 +18,10 @@ include Template
|
|
|
18
18
|
to = Time.now.strftime("%Y.%m.%d")
|
|
19
19
|
|
|
20
20
|
report << Template::HEAD.gsub('%TITLE%', @title).gsub("%FROM%", from).gsub('%TO%', to)
|
|
21
|
-
for major in @stats.keys
|
|
21
|
+
for major in @stats.keys.sort
|
|
22
22
|
report << Template::MAJOR_HEAD.gsub('%MAJOR%', major)
|
|
23
23
|
sum = 0
|
|
24
|
-
for minor, lines in @stats[major]
|
|
24
|
+
for minor, lines in @stats[major].sort
|
|
25
25
|
report << Template::MINOR.gsub('%MINOR%', minor).gsub('%LINES%', lines.to_s)
|
|
26
26
|
sum += lines
|
|
27
27
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: caelum-git-reports
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Caue Guerra
|
|
@@ -31,6 +31,7 @@ files:
|
|
|
31
31
|
- Rakefile
|
|
32
32
|
- VERSION
|
|
33
33
|
- bin/git-report.rb
|
|
34
|
+
- git-reports.gemspec
|
|
34
35
|
- lib/html_report.rb
|
|
35
36
|
- lib/html_summary.rb
|
|
36
37
|
- lib/reporter.rb
|
|
@@ -68,8 +69,8 @@ signing_key:
|
|
|
68
69
|
specification_version: 3
|
|
69
70
|
summary: Git report tool
|
|
70
71
|
test_files:
|
|
71
|
-
- spec/html_report_spec.rb
|
|
72
|
-
- spec/html_summary_spec.rb
|
|
73
72
|
- spec/reporter_spec.rb
|
|
74
73
|
- spec/repository_spec.rb
|
|
75
74
|
- spec/spec_helper.rb
|
|
75
|
+
- spec/html_report_spec.rb
|
|
76
|
+
- spec/html_summary_spec.rb
|