diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-03-25 10:25:53 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-03-25 10:25:53 +0100 |
commit | 9f1a8e209c33597c78bf4e0bc57a902bc39471c8 (patch) | |
tree | 7407b4bdb114352a0616c4803892cd7db2ad1555 | |
parent | dbc5a188f5a13f0e7a8c233290e83c910fc2b443 (diff) |
add silent comment for ruby 1.9
-rw-r--r-- | config_sample.rb | 1 | ||||
-rw-r--r-- | date_locale.rb | 2 | ||||
-rw-r--r-- | dudle.rb | 1 | ||||
-rw-r--r-- | git.rb | 3 | ||||
-rw-r--r-- | html.rb | 1 |
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.
@@ -1,3 +1,4 @@ +# coding: utf-8 ############################################################################ # Copyright 2009,2010 Benjamin Kellermann # # # @@ -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 @@ -1,3 +1,4 @@ +# coding: utf-8 ############################################################################ # Copyright 2009,2010 Benjamin Kellermann # # # |