git-commit-notifier 0.9.1 → 0.9.2
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/.gitignore +23 -0
- data/.rspec +1 -0
- data/Gemfile +1 -18
- data/Rakefile +4 -25
- data/VERSION +1 -1
- data/config/git-notifier-config.yml.sample +9 -4
- data/git-commit-notifier.gemspec +20 -118
- data/lib/git_commit_notifier/commit_hook.rb +16 -6
- data/lib/git_commit_notifier/git.rb +1 -1
- data/spec/lib/git_commit_notifier/commit_hook_spec.rb +25 -5
- data/spec/lib/git_commit_notifier/diff_to_html_spec.rb +1 -1
- data/spec/lib/git_commit_notifier/emailer_spec.rb +1 -1
- metadata +47 -136
- data/.document +0 -5
- data/Gemfile.lock +0 -105
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
-c -f progress
|
data/Gemfile
CHANGED
@@ -1,21 +1,4 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
|
-
|
4
|
-
gem 'nntp'
|
5
|
-
gem 'premailer', '~>1.7.1'
|
6
|
-
gem 'nokogiri'
|
7
|
-
|
8
|
-
group :development do
|
9
|
-
gem 'jeweler'
|
10
|
-
gem 'code-cleaner'
|
11
|
-
gem 'metric_fu'
|
12
|
-
end
|
13
|
-
|
14
|
-
group :test do
|
15
|
-
gem 'rspec-core'
|
16
|
-
gem 'rspec-expectations'
|
17
|
-
gem 'rr'
|
18
|
-
gem 'faker'
|
19
|
-
gem 'rcov'
|
20
|
-
end
|
3
|
+
gemspec
|
21
4
|
|
data/Rakefile
CHANGED
@@ -4,41 +4,20 @@ require 'rake'
|
|
4
4
|
APP_ROOT = File.dirname(__FILE__).freeze
|
5
5
|
|
6
6
|
begin
|
7
|
-
require '
|
8
|
-
|
9
|
-
gem.name = "git-commit-notifier"
|
10
|
-
gem.summary = %Q{Sends git commit messages with diffs}
|
11
|
-
gem.description = %Q{This git commit notifier sends html mails with nice diffs for every changed file.}
|
12
|
-
gem.email = "bodo@bitboxer.de"
|
13
|
-
gem.homepage = "http://github.com/bitboxer/git-commit-notifier"
|
14
|
-
gem.authors = ["Bodo Tasche"]
|
15
|
-
gem.add_dependency('diff-lcs')
|
16
|
-
gem.add_dependency('nntp')
|
17
|
-
gem.add_dependency('premailer', '~>1.7.1')
|
18
|
-
gem.add_dependency('nokogiri')
|
19
|
-
gem.add_development_dependency('rspec-core')
|
20
|
-
gem.add_development_dependency('rspec-expectations')
|
21
|
-
gem.add_development_dependency('rr')
|
22
|
-
gem.add_development_dependency('faker')
|
23
|
-
gem.add_development_dependency('rcov')
|
24
|
-
gem.add_development_dependency('metric_fu')
|
25
|
-
end
|
26
|
-
Jeweler::GemcutterTasks.new
|
7
|
+
require 'bundler'
|
8
|
+
Bundler::GemHelper.install_tasks
|
27
9
|
rescue LoadError
|
28
|
-
puts "
|
10
|
+
puts "Bundler not available. Install it with: gem install bundler"
|
29
11
|
end
|
30
12
|
|
31
13
|
begin
|
32
14
|
require 'rspec/core/rake_task'
|
33
15
|
|
34
|
-
RSpec::Core::RakeTask.new
|
35
|
-
t.rspec_opts = ["-c", "-f progress"]
|
36
|
-
end
|
16
|
+
RSpec::Core::RakeTask.new
|
37
17
|
|
38
18
|
RSpec::Core::RakeTask.new(:rcov) do |t|
|
39
19
|
t.rcov = true
|
40
20
|
t.ruby_opts = '-w'
|
41
|
-
t.rspec_opts = ["-c", "-f progress"]
|
42
21
|
t.rcov_opts = %q[-Ilib --exclude "spec/*,gems/*"]
|
43
22
|
end
|
44
23
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
@@ -8,11 +8,14 @@ ignore_merge: false
|
|
8
8
|
# lines_per_diff: 300
|
9
9
|
|
10
10
|
# defines what branches to email for (defaults to all)
|
11
|
-
# include_branches: master
|
12
|
-
# include_branches:
|
11
|
+
# include_branches: ['master', 'some_other_branch']
|
12
|
+
# include_branches: 'master, some_other_branch'
|
13
|
+
# include_branches:
|
14
|
+
# - master
|
15
|
+
# - some_other_branch
|
13
16
|
|
14
17
|
# The recipient (or newsgroup for nntp) for the commit
|
15
|
-
# It can send to multiple
|
18
|
+
# It can send to multiple destinations, just separate email addresses by ",".
|
16
19
|
mailinglist: developers@example.com,dev2@example.com,dev3@example.com,cto@example.com
|
17
20
|
|
18
21
|
# The from addres. If not defined it will use
|
@@ -100,7 +103,9 @@ message_integration:
|
|
100
103
|
unique_commits_per_branch: false
|
101
104
|
|
102
105
|
# Skip commits older than N days
|
103
|
-
skip_commits_older_than: 7
|
106
|
+
#skip_commits_older_than: 7
|
107
|
+
|
108
|
+
show_master_branch_name: false
|
104
109
|
|
105
110
|
# This is developer debugging options. Do not uncomment it if You aren't Jedi
|
106
111
|
# debug:
|
data/git-commit-notifier.gemspec
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
4
|
s.name = %q{git-commit-notifier}
|
8
|
-
s.version =
|
5
|
+
s.version = IO.read('VERSION').chomp
|
9
6
|
|
10
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
8
|
s.authors = ["Bodo Tasche"]
|
12
|
-
s.date = %
|
9
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
13
10
|
s.default_executable = %q{git-commit-notifier}
|
14
11
|
s.description = %q{This git commit notifier sends html mails with nice diffs for every changed file.}
|
15
12
|
s.email = %q{bodo@bitboxer.de}
|
@@ -18,124 +15,29 @@ Gem::Specification.new do |s|
|
|
18
15
|
"LICENSE",
|
19
16
|
"README.textile"
|
20
17
|
]
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
"README.textile",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"bin/git-commit-notifier",
|
30
|
-
"config/git-notifier-config.yml.sample",
|
31
|
-
"git-commit-notifier.gemspec",
|
32
|
-
"lib/git_commit_notifier.rb",
|
33
|
-
"lib/git_commit_notifier/commit_hook.rb",
|
34
|
-
"lib/git_commit_notifier/diff_callback.rb",
|
35
|
-
"lib/git_commit_notifier/diff_to_html.rb",
|
36
|
-
"lib/git_commit_notifier/emailer.rb",
|
37
|
-
"lib/git_commit_notifier/escape_helper.rb",
|
38
|
-
"lib/git_commit_notifier/executor.rb",
|
39
|
-
"lib/git_commit_notifier/git.rb",
|
40
|
-
"lib/git_commit_notifier/logger.rb",
|
41
|
-
"lib/git_commit_notifier/result_processor.rb",
|
42
|
-
"local-run.rb",
|
43
|
-
"spec/fixtures/existing_file_one_line.txt",
|
44
|
-
"spec/fixtures/git-notifier-group-email-by-push.yml",
|
45
|
-
"spec/fixtures/git-notifier-ignore-merge.yml",
|
46
|
-
"spec/fixtures/git-notifier-with-branch-restrictions.yml",
|
47
|
-
"spec/fixtures/git-notifier-with-merge.yml",
|
48
|
-
"spec/fixtures/git_log",
|
49
|
-
"spec/fixtures/git_show_055850e7d925110322b8db4e17c3b840d76e144c",
|
50
|
-
"spec/fixtures/git_show_51b986619d88f7ba98be7d271188785cbbb541a0",
|
51
|
-
"spec/fixtures/git_show_a4629e707d80a5769f7a71ca6ed9471015e14dc9",
|
52
|
-
"spec/fixtures/git_show_dce6ade4cdc2833b53bd600ef10f9bce83c7102d",
|
53
|
-
"spec/fixtures/git_show_e28ad77bba0574241e6eb64dfd0c1291b221effe",
|
54
|
-
"spec/fixtures/git_show_ff037a73fc1094455e7bbf506171a3f3cf873ae6",
|
55
|
-
"spec/fixtures/new_file_one_line.txt",
|
56
|
-
"spec/lib/git_commit_notifier/commit_hook_spec.rb",
|
57
|
-
"spec/lib/git_commit_notifier/diff_to_html_spec.rb",
|
58
|
-
"spec/lib/git_commit_notifier/emailer_spec.rb",
|
59
|
-
"spec/lib/git_commit_notifier/git_spec.rb",
|
60
|
-
"spec/lib/git_commit_notifier/logger_spec.rb",
|
61
|
-
"spec/lib/git_commit_notifier/result_processor_spec.rb",
|
62
|
-
"spec/spec_helper.rb",
|
63
|
-
"template/email.html.erb",
|
64
|
-
"template/styles.css"
|
65
|
-
]
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
22
|
+
|
66
23
|
s.homepage = %q{http://github.com/bitboxer/git-commit-notifier}
|
67
24
|
s.require_paths = ["lib"]
|
68
25
|
s.rubygems_version = %q{1.3.7}
|
69
26
|
s.summary = %q{Sends git commit messages with diffs}
|
70
|
-
s.test_files = [
|
71
|
-
"spec/lib/git_commit_notifier/commit_hook_spec.rb",
|
72
|
-
"spec/lib/git_commit_notifier/diff_to_html_spec.rb",
|
73
|
-
"spec/lib/git_commit_notifier/emailer_spec.rb",
|
74
|
-
"spec/lib/git_commit_notifier/git_spec.rb",
|
75
|
-
"spec/lib/git_commit_notifier/logger_spec.rb",
|
76
|
-
"spec/lib/git_commit_notifier/result_processor_spec.rb",
|
77
|
-
"spec/spec_helper.rb"
|
78
|
-
]
|
79
27
|
|
80
|
-
|
81
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
82
|
-
s.specification_version = 3
|
28
|
+
s.specification_version = 3
|
83
29
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
s.add_development_dependency(%q<rspec-core>, [">= 0"])
|
97
|
-
s.add_development_dependency(%q<rspec-expectations>, [">= 0"])
|
98
|
-
s.add_development_dependency(%q<rr>, [">= 0"])
|
99
|
-
s.add_development_dependency(%q<faker>, [">= 0"])
|
100
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
101
|
-
s.add_development_dependency(%q<metric_fu>, [">= 0"])
|
102
|
-
else
|
103
|
-
s.add_dependency(%q<diff-lcs>, [">= 0"])
|
104
|
-
s.add_dependency(%q<nntp>, [">= 0"])
|
105
|
-
s.add_dependency(%q<premailer>, ["~> 1.7.1"])
|
106
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
107
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
108
|
-
s.add_dependency(%q<code-cleaner>, [">= 0"])
|
109
|
-
s.add_dependency(%q<metric_fu>, [">= 0"])
|
110
|
-
s.add_dependency(%q<diff-lcs>, [">= 0"])
|
111
|
-
s.add_dependency(%q<nntp>, [">= 0"])
|
112
|
-
s.add_dependency(%q<premailer>, ["~> 1.7.1"])
|
113
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
114
|
-
s.add_dependency(%q<rspec-core>, [">= 0"])
|
115
|
-
s.add_dependency(%q<rspec-expectations>, [">= 0"])
|
116
|
-
s.add_dependency(%q<rr>, [">= 0"])
|
117
|
-
s.add_dependency(%q<faker>, [">= 0"])
|
118
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
119
|
-
s.add_dependency(%q<metric_fu>, [">= 0"])
|
120
|
-
end
|
121
|
-
else
|
122
|
-
s.add_dependency(%q<diff-lcs>, [">= 0"])
|
123
|
-
s.add_dependency(%q<nntp>, [">= 0"])
|
124
|
-
s.add_dependency(%q<premailer>, ["~> 1.7.1"])
|
125
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
126
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
127
|
-
s.add_dependency(%q<code-cleaner>, [">= 0"])
|
128
|
-
s.add_dependency(%q<metric_fu>, [">= 0"])
|
129
|
-
s.add_dependency(%q<diff-lcs>, [">= 0"])
|
130
|
-
s.add_dependency(%q<nntp>, [">= 0"])
|
131
|
-
s.add_dependency(%q<premailer>, ["~> 1.7.1"])
|
132
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
133
|
-
s.add_dependency(%q<rspec-core>, [">= 0"])
|
134
|
-
s.add_dependency(%q<rspec-expectations>, [">= 0"])
|
135
|
-
s.add_dependency(%q<rr>, [">= 0"])
|
136
|
-
s.add_dependency(%q<faker>, [">= 0"])
|
137
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
138
|
-
s.add_dependency(%q<metric_fu>, [">= 0"])
|
139
|
-
end
|
30
|
+
s.add_runtime_dependency(%q<diff-lcs>, [">= 0"])
|
31
|
+
s.add_runtime_dependency(%q<nntp>, [">= 0"])
|
32
|
+
s.add_runtime_dependency(%q<premailer>, [">= 1.7.1"])
|
33
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.4"])
|
34
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
|
35
|
+
s.add_development_dependency(%q<code-cleaner>, [">= 0"])
|
36
|
+
s.add_development_dependency(%q<rspec-core>, [">= 0"])
|
37
|
+
s.add_development_dependency(%q<rspec-expectations>, [">= 0"])
|
38
|
+
s.add_development_dependency(%q<rr>, [">= 0"])
|
39
|
+
s.add_development_dependency(%q<faker>, [">= 0"])
|
40
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
41
|
+
s.add_development_dependency(%q<metric_fu>, [">= 0"])
|
140
42
|
end
|
141
43
|
|
@@ -26,6 +26,17 @@ module GitCommitNotifier
|
|
26
26
|
@logger ||= Logger.new(config)
|
27
27
|
end
|
28
28
|
|
29
|
+
def include_branches
|
30
|
+
include_branches = config["include_branches"]
|
31
|
+
unless include_branches.nil?
|
32
|
+
if include_branches.kind_of?(String) && include_branches =~ /\,/
|
33
|
+
include_branches = include_branches.split(/\s*\,\s*/)
|
34
|
+
end
|
35
|
+
include_branches = Array(include_branches)
|
36
|
+
end
|
37
|
+
include_branches
|
38
|
+
end
|
39
|
+
|
29
40
|
def run(config_name, rev1, rev2, ref_name)
|
30
41
|
@config = File.exists?(config_name) ? YAML::load_file(config_name) : {}
|
31
42
|
|
@@ -40,16 +51,14 @@ module GitCommitNotifier
|
|
40
51
|
return
|
41
52
|
end
|
42
53
|
|
43
|
-
include_branches = config["include_branches"]
|
44
|
-
|
45
54
|
logger.debug('----')
|
46
55
|
logger.debug("pwd: #{Dir.pwd}")
|
47
56
|
logger.debug("ref_name: #{ref_name}")
|
48
57
|
logger.debug("rev1: #{rev1}")
|
49
58
|
logger.debug("rev2: #{rev2}")
|
50
|
-
logger.debug("included branches: #{include_branches.join(',')}") unless include_branches.nil?
|
59
|
+
logger.debug("included branches: #{include_branches.join(', ')}") unless include_branches.nil?
|
51
60
|
|
52
|
-
prefix =
|
61
|
+
prefix = config["emailprefix"] || Git.repo_name
|
53
62
|
branch_name = ref_name.split("/").last
|
54
63
|
|
55
64
|
logger.debug("prefix: #{prefix}")
|
@@ -60,8 +69,9 @@ module GitCommitNotifier
|
|
60
69
|
return
|
61
70
|
end
|
62
71
|
|
63
|
-
branch_name =
|
64
|
-
|
72
|
+
branch_name = "/#{branch_name}"
|
73
|
+
branch_name = "" if !config["show_master_branch_name"] && branch_name.eql?('/master')
|
74
|
+
|
65
75
|
info("Sending mail...")
|
66
76
|
|
67
77
|
diff2html = DiffToHtml.new(Dir.pwd, config)
|
@@ -13,7 +13,7 @@ class GitCommitNotifier::Git
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def branch_commits(treeish)
|
16
|
-
args =
|
16
|
+
args = branch_heads - [ branch_head(treeish) ]
|
17
17
|
args.map! { |tree| "^#{tree}" }
|
18
18
|
args << treeish
|
19
19
|
lines = from_shell("git rev-list #{args.join(' ')}")
|
@@ -27,14 +27,14 @@ describe GitCommitNotifier::CommitHook do
|
|
27
27
|
# 4 commits, one email for each of them, without merge
|
28
28
|
run_with_config('spec/fixtures/git-notifier-with-branch-restrictions.yml',4,'refs/heads/branch2')
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
|
32
32
|
it "should email for commits to master if master set as include_branch" do
|
33
33
|
# 4 commits, one email for each of them, without merge
|
34
34
|
run_with_config('spec/fixtures/git-notifier-with-branch-restrictions.yml',4)
|
35
35
|
end
|
36
|
-
|
37
|
-
|
36
|
+
|
37
|
+
|
38
38
|
def run_with_config(config, times, branch = 'refs/heads/master')
|
39
39
|
expect_repository_access
|
40
40
|
|
@@ -45,7 +45,7 @@ describe GitCommitNotifier::CommitHook do
|
|
45
45
|
any_instance_of(GitCommitNotifier::DiffToHtml, :check_handled_commits => lambda { |commits| commits })
|
46
46
|
GitCommitNotifier::CommitHook.run config, REVISIONS.first, REVISIONS.last, branch
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
|
50
50
|
def run_and_reject(config,times,branch)
|
51
51
|
mock(GitCommitNotifier::Git).mailing_list_address { 'recipient@test.com' }
|
@@ -57,7 +57,7 @@ describe GitCommitNotifier::CommitHook do
|
|
57
57
|
|
58
58
|
GitCommitNotifier::CommitHook.run config, REVISIONS.first, REVISIONS.last, branch
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
|
62
62
|
def test_commit_from
|
63
63
|
# 1 commit with a from: adress
|
@@ -109,4 +109,24 @@ describe GitCommitNotifier::CommitHook do
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
+
describe :include_branches do
|
113
|
+
it "should be nil if not specified in config" do
|
114
|
+
mock(GitCommitNotifier::CommitHook).config { Hash.new }
|
115
|
+
GitCommitNotifier::CommitHook.include_branches.should be_nil
|
116
|
+
end
|
117
|
+
it "should be single item array if one branch as string specified" do
|
118
|
+
mock(GitCommitNotifier::CommitHook).config { { 'include_branches' => 'staging' } }
|
119
|
+
GitCommitNotifier::CommitHook.include_branches.should == %w( staging )
|
120
|
+
end
|
121
|
+
it "should be array if specified as array" do
|
122
|
+
mock(GitCommitNotifier::CommitHook).config { { 'include_branches' => %w(test staging gotcha) } }
|
123
|
+
GitCommitNotifier::CommitHook.include_branches.should == %w(test staging gotcha)
|
124
|
+
end
|
125
|
+
it "should be array of items, splitted by comma if specified as comma-separated list string" do
|
126
|
+
mock(GitCommitNotifier::CommitHook).config { { 'include_branches' => 'test, me, yourself' } }
|
127
|
+
GitCommitNotifier::CommitHook.include_branches.should == %w(test me yourself)
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
112
132
|
end
|
@@ -82,7 +82,7 @@ describe GitCommitNotifier::Emailer do
|
|
82
82
|
mock(GitCommitNotifier::Emailer).require('erubis') { raise LoadError.new('erubis') }
|
83
83
|
mock(GitCommitNotifier::Emailer).require('erb')
|
84
84
|
mock.proxy(ERB).new('erb')
|
85
|
-
|
85
|
+
|
86
86
|
GitCommitNotifier::Emailer.template.should be_kind_of(ERB)
|
87
87
|
end
|
88
88
|
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-commit-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 9
|
8
|
-
- 1
|
9
|
-
version: 0.9.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.9.2
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Bodo Tasche
|
@@ -14,234 +10,140 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-04-
|
18
|
-
default_executable: git-commit-notifier
|
13
|
+
date: 2011-04-29 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: diff-lcs
|
17
|
+
prerelease: false
|
22
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
19
|
none: false
|
24
20
|
requirements:
|
25
21
|
- - ">="
|
26
22
|
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 0
|
29
23
|
version: "0"
|
30
24
|
type: :runtime
|
31
|
-
prerelease: false
|
32
25
|
version_requirements: *id001
|
33
26
|
- !ruby/object:Gem::Dependency
|
34
27
|
name: nntp
|
28
|
+
prerelease: false
|
35
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
36
30
|
none: false
|
37
31
|
requirements:
|
38
32
|
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
segments:
|
41
|
-
- 0
|
42
34
|
version: "0"
|
43
35
|
type: :runtime
|
44
|
-
prerelease: false
|
45
36
|
version_requirements: *id002
|
46
37
|
- !ruby/object:Gem::Dependency
|
47
38
|
name: premailer
|
39
|
+
prerelease: false
|
48
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
49
41
|
none: false
|
50
42
|
requirements:
|
51
|
-
- -
|
43
|
+
- - ">="
|
52
44
|
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 1
|
55
|
-
- 7
|
56
|
-
- 1
|
57
45
|
version: 1.7.1
|
58
46
|
type: :runtime
|
59
|
-
prerelease: false
|
60
47
|
version_requirements: *id003
|
61
48
|
- !ruby/object:Gem::Dependency
|
62
49
|
name: nokogiri
|
50
|
+
prerelease: false
|
63
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
64
52
|
none: false
|
65
53
|
requirements:
|
66
54
|
- - ">="
|
67
55
|
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
- 0
|
70
|
-
version: "0"
|
56
|
+
version: 1.4.4
|
71
57
|
type: :runtime
|
72
|
-
prerelease: false
|
73
58
|
version_requirements: *id004
|
74
59
|
- !ruby/object:Gem::Dependency
|
75
|
-
name:
|
60
|
+
name: bundler
|
61
|
+
prerelease: false
|
76
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
77
63
|
none: false
|
78
64
|
requirements:
|
79
65
|
- - ">="
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
|
82
|
-
- 0
|
83
|
-
version: "0"
|
67
|
+
version: 1.0.10
|
84
68
|
type: :development
|
85
|
-
prerelease: false
|
86
69
|
version_requirements: *id005
|
87
70
|
- !ruby/object:Gem::Dependency
|
88
71
|
name: code-cleaner
|
72
|
+
prerelease: false
|
89
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
90
74
|
none: false
|
91
75
|
requirements:
|
92
76
|
- - ">="
|
93
77
|
- !ruby/object:Gem::Version
|
94
|
-
segments:
|
95
|
-
- 0
|
96
78
|
version: "0"
|
97
79
|
type: :development
|
98
|
-
prerelease: false
|
99
80
|
version_requirements: *id006
|
100
81
|
- !ruby/object:Gem::Dependency
|
101
|
-
name:
|
82
|
+
name: rspec-core
|
83
|
+
prerelease: false
|
102
84
|
requirement: &id007 !ruby/object:Gem::Requirement
|
103
85
|
none: false
|
104
86
|
requirements:
|
105
87
|
- - ">="
|
106
88
|
- !ruby/object:Gem::Version
|
107
|
-
segments:
|
108
|
-
- 0
|
109
89
|
version: "0"
|
110
90
|
type: :development
|
111
|
-
prerelease: false
|
112
91
|
version_requirements: *id007
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: diff-lcs
|
115
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
|
-
requirements:
|
118
|
-
- - ">="
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
segments:
|
121
|
-
- 0
|
122
|
-
version: "0"
|
123
|
-
type: :runtime
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: *id008
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: nntp
|
128
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ">="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
version: "0"
|
136
|
-
type: :runtime
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: *id009
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: premailer
|
141
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
|
-
requirements:
|
144
|
-
- - ~>
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
segments:
|
147
|
-
- 1
|
148
|
-
- 7
|
149
|
-
- 1
|
150
|
-
version: 1.7.1
|
151
|
-
type: :runtime
|
152
|
-
prerelease: false
|
153
|
-
version_requirements: *id010
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: nokogiri
|
156
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
|
-
requirements:
|
159
|
-
- - ">="
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
segments:
|
162
|
-
- 0
|
163
|
-
version: "0"
|
164
|
-
type: :runtime
|
165
|
-
prerelease: false
|
166
|
-
version_requirements: *id011
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rspec-core
|
169
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
version: "0"
|
177
|
-
type: :development
|
178
|
-
prerelease: false
|
179
|
-
version_requirements: *id012
|
180
92
|
- !ruby/object:Gem::Dependency
|
181
93
|
name: rspec-expectations
|
182
|
-
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
183
96
|
none: false
|
184
97
|
requirements:
|
185
98
|
- - ">="
|
186
99
|
- !ruby/object:Gem::Version
|
187
|
-
segments:
|
188
|
-
- 0
|
189
100
|
version: "0"
|
190
101
|
type: :development
|
191
|
-
|
192
|
-
version_requirements: *id013
|
102
|
+
version_requirements: *id008
|
193
103
|
- !ruby/object:Gem::Dependency
|
194
104
|
name: rr
|
195
|
-
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
196
107
|
none: false
|
197
108
|
requirements:
|
198
109
|
- - ">="
|
199
110
|
- !ruby/object:Gem::Version
|
200
|
-
segments:
|
201
|
-
- 0
|
202
111
|
version: "0"
|
203
112
|
type: :development
|
204
|
-
|
205
|
-
version_requirements: *id014
|
113
|
+
version_requirements: *id009
|
206
114
|
- !ruby/object:Gem::Dependency
|
207
115
|
name: faker
|
208
|
-
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
209
118
|
none: false
|
210
119
|
requirements:
|
211
120
|
- - ">="
|
212
121
|
- !ruby/object:Gem::Version
|
213
|
-
segments:
|
214
|
-
- 0
|
215
122
|
version: "0"
|
216
123
|
type: :development
|
217
|
-
|
218
|
-
version_requirements: *id015
|
124
|
+
version_requirements: *id010
|
219
125
|
- !ruby/object:Gem::Dependency
|
220
126
|
name: rcov
|
221
|
-
|
127
|
+
prerelease: false
|
128
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
222
129
|
none: false
|
223
130
|
requirements:
|
224
131
|
- - ">="
|
225
132
|
- !ruby/object:Gem::Version
|
226
|
-
segments:
|
227
|
-
- 0
|
228
133
|
version: "0"
|
229
134
|
type: :development
|
230
|
-
|
231
|
-
version_requirements: *id016
|
135
|
+
version_requirements: *id011
|
232
136
|
- !ruby/object:Gem::Dependency
|
233
137
|
name: metric_fu
|
234
|
-
|
138
|
+
prerelease: false
|
139
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
235
140
|
none: false
|
236
141
|
requirements:
|
237
142
|
- - ">="
|
238
143
|
- !ruby/object:Gem::Version
|
239
|
-
segments:
|
240
|
-
- 0
|
241
144
|
version: "0"
|
242
145
|
type: :development
|
243
|
-
|
244
|
-
version_requirements: *id017
|
146
|
+
version_requirements: *id012
|
245
147
|
description: This git commit notifier sends html mails with nice diffs for every changed file.
|
246
148
|
email: bodo@bitboxer.de
|
247
149
|
executables:
|
@@ -252,9 +154,9 @@ extra_rdoc_files:
|
|
252
154
|
- LICENSE
|
253
155
|
- README.textile
|
254
156
|
files:
|
255
|
-
- .
|
157
|
+
- .gitignore
|
158
|
+
- .rspec
|
256
159
|
- Gemfile
|
257
|
-
- Gemfile.lock
|
258
160
|
- LICENSE
|
259
161
|
- README.textile
|
260
162
|
- Rakefile
|
@@ -295,7 +197,6 @@ files:
|
|
295
197
|
- spec/spec_helper.rb
|
296
198
|
- template/email.html.erb
|
297
199
|
- template/styles.css
|
298
|
-
has_rdoc: true
|
299
200
|
homepage: http://github.com/bitboxer/git-commit-notifier
|
300
201
|
licenses: []
|
301
202
|
|
@@ -309,25 +210,34 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
210
|
requirements:
|
310
211
|
- - ">="
|
311
212
|
- !ruby/object:Gem::Version
|
312
|
-
segments:
|
313
|
-
- 0
|
314
213
|
version: "0"
|
315
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
215
|
none: false
|
317
216
|
requirements:
|
318
217
|
- - ">="
|
319
218
|
- !ruby/object:Gem::Version
|
320
|
-
segments:
|
321
|
-
- 0
|
322
219
|
version: "0"
|
323
220
|
requirements: []
|
324
221
|
|
325
222
|
rubyforge_project:
|
326
|
-
rubygems_version: 1.
|
223
|
+
rubygems_version: 1.7.2
|
327
224
|
signing_key:
|
328
225
|
specification_version: 3
|
329
226
|
summary: Sends git commit messages with diffs
|
330
227
|
test_files:
|
228
|
+
- spec/fixtures/existing_file_one_line.txt
|
229
|
+
- spec/fixtures/git-notifier-group-email-by-push.yml
|
230
|
+
- spec/fixtures/git-notifier-ignore-merge.yml
|
231
|
+
- spec/fixtures/git-notifier-with-branch-restrictions.yml
|
232
|
+
- spec/fixtures/git-notifier-with-merge.yml
|
233
|
+
- spec/fixtures/git_log
|
234
|
+
- spec/fixtures/git_show_055850e7d925110322b8db4e17c3b840d76e144c
|
235
|
+
- spec/fixtures/git_show_51b986619d88f7ba98be7d271188785cbbb541a0
|
236
|
+
- spec/fixtures/git_show_a4629e707d80a5769f7a71ca6ed9471015e14dc9
|
237
|
+
- spec/fixtures/git_show_dce6ade4cdc2833b53bd600ef10f9bce83c7102d
|
238
|
+
- spec/fixtures/git_show_e28ad77bba0574241e6eb64dfd0c1291b221effe
|
239
|
+
- spec/fixtures/git_show_ff037a73fc1094455e7bbf506171a3f3cf873ae6
|
240
|
+
- spec/fixtures/new_file_one_line.txt
|
331
241
|
- spec/lib/git_commit_notifier/commit_hook_spec.rb
|
332
242
|
- spec/lib/git_commit_notifier/diff_to_html_spec.rb
|
333
243
|
- spec/lib/git_commit_notifier/emailer_spec.rb
|
@@ -335,3 +245,4 @@ test_files:
|
|
335
245
|
- spec/lib/git_commit_notifier/logger_spec.rb
|
336
246
|
- spec/lib/git_commit_notifier/result_processor_spec.rb
|
337
247
|
- spec/spec_helper.rb
|
248
|
+
has_rdoc:
|
data/.document
DELETED
data/Gemfile.lock
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
Saikuro (1.1.0)
|
5
|
-
abstract (1.0.0)
|
6
|
-
activesupport (3.0.5)
|
7
|
-
arrayfields (4.7.4)
|
8
|
-
chronic (0.3.0)
|
9
|
-
churn (0.0.13)
|
10
|
-
chronic (>= 0.2.3)
|
11
|
-
hirb
|
12
|
-
json_pure
|
13
|
-
main
|
14
|
-
ruby_parser (~> 2.0.4)
|
15
|
-
sexp_processor (~> 3.0.3)
|
16
|
-
code-cleaner (0.8.2)
|
17
|
-
colored (1.2)
|
18
|
-
css_parser (1.1.9)
|
19
|
-
diff-lcs (1.1.2)
|
20
|
-
erubis (2.6.6)
|
21
|
-
abstract (>= 1.0.0)
|
22
|
-
faker (0.9.5)
|
23
|
-
i18n (~> 0.4)
|
24
|
-
fattr (2.2.0)
|
25
|
-
flay (1.4.2)
|
26
|
-
ruby_parser (~> 2.0)
|
27
|
-
sexp_processor (~> 3.0)
|
28
|
-
flog (2.5.1)
|
29
|
-
ruby_parser (~> 2.0)
|
30
|
-
sexp_processor (~> 3.0)
|
31
|
-
git (1.2.5)
|
32
|
-
haml (3.0.25)
|
33
|
-
hirb (0.4.3)
|
34
|
-
htmlentities (4.3.0)
|
35
|
-
i18n (0.5.0)
|
36
|
-
jeweler (1.5.2)
|
37
|
-
bundler (~> 1.0.0)
|
38
|
-
git (>= 1.2.5)
|
39
|
-
rake
|
40
|
-
json_pure (1.5.1)
|
41
|
-
main (4.4.0)
|
42
|
-
arrayfields (>= 4.7.4)
|
43
|
-
fattr (>= 2.1.0)
|
44
|
-
metric_fu (2.1.1)
|
45
|
-
Saikuro (>= 1.1.0)
|
46
|
-
activesupport (>= 2.0.0)
|
47
|
-
chronic (~> 0.3.0)
|
48
|
-
churn (>= 0.0.7)
|
49
|
-
flay (>= 1.2.1)
|
50
|
-
flog (>= 2.3.0)
|
51
|
-
rails_best_practices (>= 0.6.4)
|
52
|
-
rcov (>= 0.8.3.3)
|
53
|
-
reek (>= 1.2.6)
|
54
|
-
roodi (>= 2.1.0)
|
55
|
-
syntax
|
56
|
-
nntp (1.0.0)
|
57
|
-
nokogiri (1.4.4)
|
58
|
-
premailer (1.7.1)
|
59
|
-
css_parser (>= 1.1.9)
|
60
|
-
htmlentities (>= 4.0.0)
|
61
|
-
rails_best_practices (0.7.5)
|
62
|
-
activesupport
|
63
|
-
colored (~> 1.2)
|
64
|
-
erubis (~> 2.6.6)
|
65
|
-
haml (~> 3.0.18)
|
66
|
-
i18n
|
67
|
-
ruby-progressbar (~> 0.0.9)
|
68
|
-
ruby_parser (~> 2.0.4)
|
69
|
-
rake (0.8.7)
|
70
|
-
rcov (0.9.9)
|
71
|
-
reek (1.2.8)
|
72
|
-
ruby2ruby (~> 1.2)
|
73
|
-
ruby_parser (~> 2.0)
|
74
|
-
sexp_processor (~> 3.0)
|
75
|
-
roodi (2.1.0)
|
76
|
-
ruby_parser
|
77
|
-
rr (1.0.2)
|
78
|
-
rspec-core (2.5.1)
|
79
|
-
rspec-expectations (2.5.0)
|
80
|
-
diff-lcs (~> 1.1.2)
|
81
|
-
ruby-progressbar (0.0.9)
|
82
|
-
ruby2ruby (1.2.5)
|
83
|
-
ruby_parser (~> 2.0)
|
84
|
-
sexp_processor (~> 3.0)
|
85
|
-
ruby_parser (2.0.6)
|
86
|
-
sexp_processor (~> 3.0)
|
87
|
-
sexp_processor (3.0.5)
|
88
|
-
syntax (1.0.0)
|
89
|
-
|
90
|
-
PLATFORMS
|
91
|
-
ruby
|
92
|
-
|
93
|
-
DEPENDENCIES
|
94
|
-
code-cleaner
|
95
|
-
diff-lcs
|
96
|
-
faker
|
97
|
-
jeweler
|
98
|
-
metric_fu
|
99
|
-
nntp
|
100
|
-
nokogiri
|
101
|
-
premailer (~> 1.7.1)
|
102
|
-
rcov
|
103
|
-
rr
|
104
|
-
rspec-core
|
105
|
-
rspec-expectations
|