summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2013-02-17 17:16:33 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2013-02-17 17:16:33 +0100
commite60de37b478d3f892f6985a58d573016f33f0269 (patch)
tree6679ff6efa7aa24288172fc4320ab77b822de281
parent436e8c1bbeb6ffde8bcfbcf72af449c5f8a741f3 (diff)
downloadstyleguide-e60de37b478d3f892f6985a58d573016f33f0269.tar.gz
styleguide-e60de37b478d3f892f6985a58d573016f33f0269.tar.xz
styleguide-e60de37b478d3f892f6985a58d573016f33f0269.zip
Update for 1.9
-rw-r--r--RUBY-STYLE6
1 files changed, 4 insertions, 2 deletions
diff --git a/RUBY-STYLE b/RUBY-STYLE
index eb10450..82b5a64 100644
--- a/RUBY-STYLE
+++ b/RUBY-STYLE
@@ -12,7 +12,7 @@ when you contribute to my code, please follow these rules:
 
 * Use 2 space indent, no tabs.
 
-* Use Unix-style line endings.
+* Use Unix-style line endings.  On the last line of the file, too.
 
 * Use spaces around operators, after commas, colons and semicolons,
   around { and before }.
@@ -79,6 +79,8 @@ when you contribute to my code, please follow these rules:
 * Use non-OO regexps (they won't make the code better).  Freely use
   =~, $0-9, $~, $` and $' when needed.
 
+* Never use smalltalk: symbols.
+
 
 == Naming:
 
@@ -149,7 +151,7 @@ when you contribute to my code, please follow these rules:
 * Use OptionParser for parsing complex command line options and
   ruby -s for trivial command line options.
 
-* Write for 1.8, but avoid doing things you know that will break in 1.9.
+* Target Ruby 1.9.
 
 * Avoid needless metaprogramming.