diff options
-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 # # # |