git-commit-notifier 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/git-commit-notifier +0 -6
- data/lib/git_commit_notifier/git.rb +5 -2
- data/local-run.rb +0 -6
- metadata +25 -25
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.4
|
data/bin/git-commit-notifier
CHANGED
@@ -3,6 +3,7 @@ class GitCommitNotifier::Git
|
|
3
3
|
def from_shell(cmd)
|
4
4
|
r = `#{cmd}`
|
5
5
|
raise ArgumentError.new("#{cmd} failed") unless $?.exitstatus.zero?
|
6
|
+
r.force_encoding(Encoding::UTF_8) if r.respond_to?(:force_encoding)
|
6
7
|
r
|
7
8
|
end
|
8
9
|
|
@@ -10,11 +11,13 @@ class GitCommitNotifier::Git
|
|
10
11
|
gitopt = ""
|
11
12
|
gitopt += " --pretty=fuller"
|
12
13
|
gitopt += " -w" if ignore_whitespace
|
13
|
-
from_shell("git show #{rev.strip}#{gitopt}")
|
14
|
+
data = from_shell("git show #{rev.strip}#{gitopt}")
|
15
|
+
data
|
14
16
|
end
|
15
17
|
|
16
18
|
def log(rev1, rev2)
|
17
|
-
from_shell("git log --pretty=fuller #{rev1}..#{rev2}").strip
|
19
|
+
data = from_shell("git log --pretty=fuller #{rev1}..#{rev2}").strip
|
20
|
+
data
|
18
21
|
end
|
19
22
|
|
20
23
|
def changed_files(rev1, rev2)
|
data/local-run.rb
CHANGED
@@ -6,12 +6,6 @@ if RUBY_VERSION < '1.9'
|
|
6
6
|
require 'jcode'
|
7
7
|
end
|
8
8
|
|
9
|
-
if RUBY_VERSION >= '1.9'
|
10
|
-
Encoding.default_external = "utf-8"
|
11
|
-
Encoding.default_internal = "utf-8"
|
12
|
-
end
|
13
|
-
|
14
|
-
|
15
9
|
require 'rubygems'
|
16
10
|
$LOAD_PATH.unshift(File.expand_path('./lib', File.dirname(__FILE__)))
|
17
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-commit-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,12 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-10-
|
13
|
+
date: 2011-10-21 00:00:00.000000000 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: diff-lcs
|
18
|
-
requirement: &
|
18
|
+
requirement: &70146987224500 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 1.1.2
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70146987224500
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nntp
|
29
|
-
requirement: &
|
29
|
+
requirement: &70146987224020 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '1.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70146987224020
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: premailer
|
40
|
-
requirement: &
|
40
|
+
requirement: &70146987223500 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
@@ -51,10 +51,10 @@ dependencies:
|
|
51
51
|
version: 1.7.2
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
|
-
version_requirements: *
|
54
|
+
version_requirements: *70146987223500
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
|
-
requirement: &
|
57
|
+
requirement: &70146987222540 !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
59
|
requirements:
|
60
60
|
- - ~>
|
@@ -62,10 +62,10 @@ dependencies:
|
|
62
62
|
version: '1.4'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
|
-
version_requirements: *
|
65
|
+
version_requirements: *70146987222540
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
67
|
name: rake
|
68
|
-
requirement: &
|
68
|
+
requirement: &70146987222040 !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
71
71
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.9.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70146987222040
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: bundler
|
82
|
-
requirement: &
|
82
|
+
requirement: &70146987221280 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -90,10 +90,10 @@ dependencies:
|
|
90
90
|
version: 1.0.10
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
|
-
version_requirements: *
|
93
|
+
version_requirements: *70146987221280
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: code-cleaner
|
96
|
-
requirement: &
|
96
|
+
requirement: &70146987183560 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ! '>='
|
@@ -101,10 +101,10 @@ dependencies:
|
|
101
101
|
version: '0'
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
|
-
version_requirements: *
|
104
|
+
version_requirements: *70146987183560
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: rspec-core
|
107
|
-
requirement: &
|
107
|
+
requirement: &70146987182960 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ! '>='
|
@@ -112,10 +112,10 @@ dependencies:
|
|
112
112
|
version: '0'
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
|
-
version_requirements: *
|
115
|
+
version_requirements: *70146987182960
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: rspec-expectations
|
118
|
-
requirement: &
|
118
|
+
requirement: &70146987182380 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
121
|
- - ! '>='
|
@@ -123,10 +123,10 @@ dependencies:
|
|
123
123
|
version: '0'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
|
-
version_requirements: *
|
126
|
+
version_requirements: *70146987182380
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: rr
|
129
|
-
requirement: &
|
129
|
+
requirement: &70146987181780 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
@@ -134,10 +134,10 @@ dependencies:
|
|
134
134
|
version: '1.0'
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
|
-
version_requirements: *
|
137
|
+
version_requirements: *70146987181780
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: faker
|
140
|
-
requirement: &
|
140
|
+
requirement: &70146987181200 !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
@@ -145,7 +145,7 @@ dependencies:
|
|
145
145
|
version: 0.9.5
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
|
-
version_requirements: *
|
148
|
+
version_requirements: *70146987181200
|
149
149
|
description: This git commit notifier sends html mails with nice diffs for every changed
|
150
150
|
file.
|
151
151
|
email: bodo@bitboxer.de
|
@@ -216,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
segments:
|
218
218
|
- 0
|
219
|
-
hash:
|
219
|
+
hash: 2487211850689935719
|
220
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
221
|
none: false
|
222
222
|
requirements:
|