aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-03-25 10:25:53 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-03-25 10:25:53 +0100
commit9f1a8e209c33597c78bf4e0bc57a902bc39471c8 (patch)
tree7407b4bdb114352a0616c4803892cd7db2ad1555
parentdbc5a188f5a13f0e7a8c233290e83c910fc2b443 (diff)
add silent comment for ruby 1.9
-rw-r--r--config_sample.rb1
-rw-r--r--date_locale.rb2
-rw-r--r--dudle.rb1
-rw-r--r--git.rb3
-rw-r--r--html.rb1
5 files changed, 6 insertions, 2 deletions
diff --git a/config_sample.rb b/config_sample.rb
index 470b53c..d54ff24 100644
--- a/config_sample.rb
+++ b/config_sample.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
############################################################################
# Copyright 2009,2010 Benjamin Kellermann #
# #
diff --git a/date_locale.rb b/date_locale.rb
index e40e6c7..af00803 100644
--- a/date_locale.rb
+++ b/date_locale.rb
@@ -1,4 +1,4 @@
-#
+# coding: utf-8
#Make a 'localization' for Date, DateTime and Time.
#
#This is not using locale, but if you use locale, it is detected and locale sensitive.
diff --git a/dudle.rb b/dudle.rb
index 031693e..c470a1e 100644
--- a/dudle.rb
+++ b/dudle.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
############################################################################
# Copyright 2009,2010 Benjamin Kellermann #
# #
diff --git a/git.rb b/git.rb
index fbfb8cb..e74502c 100644
--- a/git.rb
+++ b/git.rb
@@ -35,7 +35,8 @@ class VCS
end
def VCS.revno
- `#{GITCMD} log --oneline`.scan("\n").size
+ # there is a bug in git log --format, which supresses the \n on the last line
+ `#{GITCMD} log --format="format:x"`.scan("\n").size + 1
end
def VCS.cat revision, file
diff --git a/html.rb b/html.rb
index 3ea4425..f95b2b8 100644
--- a/html.rb
+++ b/html.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
############################################################################
# Copyright 2009,2010 Benjamin Kellermann #
# #