autobuild 1.5.11 → 1.5.12
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/Changes.txt +4 -0
- data/lib/autobuild.rb +1 -1
- data/lib/autobuild/import/git.rb +5 -1
- metadata +3 -3
data/Changes.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
== Version 1.5.12
|
|
2
|
+
* fix exception when git logs contain non-ASCII characters on Ruby 1.9 version
|
|
3
|
+
compiled with another default encoding than UTF-8 (!)
|
|
4
|
+
|
|
1
5
|
== Version 1.5.11
|
|
2
6
|
* don't sleep unnecessarily on filesystems that have sub-second modification
|
|
3
7
|
time resolutions. This speeds up builds.
|
data/lib/autobuild.rb
CHANGED
data/lib/autobuild/import/git.rb
CHANGED
|
@@ -168,7 +168,11 @@ module Autobuild
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
def log(from, to)
|
|
171
|
-
`git log --pretty=format:"%h %cr %cn %s" #{from}..#{to}
|
|
171
|
+
log = `git log --pretty=format:"%h %cr %cn %s" #{from}..#{to}`
|
|
172
|
+
if log.respond_to?(:force_encoding)
|
|
173
|
+
log.force_encoding('UTF-8')
|
|
174
|
+
end
|
|
175
|
+
log.chomp.split("\n")
|
|
172
176
|
end
|
|
173
177
|
end
|
|
174
178
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
7
|
- 5
|
|
8
|
-
-
|
|
9
|
-
version: 1.5.
|
|
8
|
+
- 12
|
|
9
|
+
version: 1.5.12
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Sylvain Joyeux
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-06-
|
|
17
|
+
date: 2010-06-09 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|