From 97ee66be0294ddcbdeab072473ad40a85e86ae4c Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Fri, 7 May 2010 15:33:27 -0400 Subject: [PATCH] minor: source file encoding with magic comment --- lib/bson.rb | 2 ++ lib/bson/bson_c.rb | 2 ++ lib/bson/bson_ruby.rb | 2 ++ lib/bson/byte_buffer.rb | 2 ++ lib/bson/exceptions.rb | 2 ++ lib/bson/ordered_hash.rb | 4 +++- lib/bson/types/binary.rb | 2 ++ lib/bson/types/code.rb | 2 ++ lib/bson/types/dbref.rb | 2 ++ lib/bson/types/min_max_keys.rb | 2 ++ lib/bson/types/objectid.rb | 2 ++ lib/mongo.rb | 2 ++ lib/mongo/collection.rb | 2 ++ lib/mongo/connection.rb | 2 ++ lib/mongo/cursor.rb | 2 ++ lib/mongo/db.rb | 2 ++ lib/mongo/exceptions.rb | 3 +++ lib/mongo/gridfs/grid.rb | 2 ++ lib/mongo/gridfs/grid_ext.rb | 2 ++ lib/mongo/gridfs/grid_file_system.rb | 2 ++ lib/mongo/gridfs/grid_io.rb | 2 ++ lib/mongo/util/conversions.rb | 2 ++ lib/mongo/util/core_ext.rb | 2 ++ lib/mongo/util/server_version.rb | 2 ++ lib/mongo/util/support.rb | 2 ++ 25 files changed, 52 insertions(+), 1 deletion(-) diff --git a/lib/bson.rb b/lib/bson.rb index c8fbfea..7115532 100644 --- a/lib/bson.rb +++ b/lib/bson.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) module BSON diff --git a/lib/bson/bson_c.rb b/lib/bson/bson_c.rb index 16e4d5a..4ea75e3 100644 --- a/lib/bson/bson_c.rb +++ b/lib/bson/bson_c.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # A thin wrapper for the CBson class module BSON class BSON_C diff --git a/lib/bson/bson_ruby.rb b/lib/bson/bson_ruby.rb index b054a08..319a808 100644 --- a/lib/bson/bson_ruby.rb +++ b/lib/bson/bson_ruby.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/byte_buffer.rb b/lib/bson/byte_buffer.rb index d55549f..972b7b9 100644 --- a/lib/bson/byte_buffer.rb +++ b/lib/bson/byte_buffer.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/exceptions.rb b/lib/bson/exceptions.rb index 9f204db..75bcd31 100644 --- a/lib/bson/exceptions.rb +++ b/lib/bson/exceptions.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/ordered_hash.rb b/lib/bson/ordered_hash.rb index c732e15..3968500 100644 --- a/lib/bson/ordered_hash.rb +++ b/lib/bson/ordered_hash.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # @@ -139,4 +141,4 @@ module BSON end end -end \ No newline at end of file +end diff --git a/lib/bson/types/binary.rb b/lib/bson/types/binary.rb index 13c6056..cc43d33 100644 --- a/lib/bson/types/binary.rb +++ b/lib/bson/types/binary.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/types/code.rb b/lib/bson/types/code.rb index a90fdb6..ca5a77a 100644 --- a/lib/bson/types/code.rb +++ b/lib/bson/types/code.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/types/dbref.rb b/lib/bson/types/dbref.rb index b2ee1b0..ca0924b 100644 --- a/lib/bson/types/dbref.rb +++ b/lib/bson/types/dbref.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/types/min_max_keys.rb b/lib/bson/types/min_max_keys.rb index 5cd4887..8b0af02 100644 --- a/lib/bson/types/min_max_keys.rb +++ b/lib/bson/types/min_max_keys.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/bson/types/objectid.rb b/lib/bson/types/objectid.rb index 56106cc..10cbb11 100644 --- a/lib/bson/types/objectid.rb +++ b/lib/bson/types/objectid.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo.rb b/lib/mongo.rb index 5913ddd..311cbb1 100644 --- a/lib/mongo.rb +++ b/lib/mongo.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) module Mongo diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index 5d279fc..8792dc4 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index d7238be..b99eaf2 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 386be99..b1449a4 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # Copyright (C) 2008-2010 10gen Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index b9f326a..b080fdf 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/exceptions.rb b/lib/mongo/exceptions.rb index adbc0fc..8ec655b 100644 --- a/lib/mongo/exceptions.rb +++ b/lib/mongo/exceptions.rb @@ -1,3 +1,6 @@ +# encoding: UTF-8 + +# # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/gridfs/grid.rb b/lib/mongo/gridfs/grid.rb index a2dea1e..6b23867 100644 --- a/lib/mongo/gridfs/grid.rb +++ b/lib/mongo/gridfs/grid.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/gridfs/grid_ext.rb b/lib/mongo/gridfs/grid_ext.rb index 98a367d..2083b94 100644 --- a/lib/mongo/gridfs/grid_ext.rb +++ b/lib/mongo/gridfs/grid_ext.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/gridfs/grid_file_system.rb b/lib/mongo/gridfs/grid_file_system.rb index d740529..440532f 100644 --- a/lib/mongo/gridfs/grid_file_system.rb +++ b/lib/mongo/gridfs/grid_file_system.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/gridfs/grid_io.rb b/lib/mongo/gridfs/grid_io.rb index 1001f5d..6f6b8ee 100644 --- a/lib/mongo/gridfs/grid_io.rb +++ b/lib/mongo/gridfs/grid_io.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/util/conversions.rb b/lib/mongo/util/conversions.rb index e692e54..0107c22 100644 --- a/lib/mongo/util/conversions.rb +++ b/lib/mongo/util/conversions.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/util/core_ext.rb b/lib/mongo/util/core_ext.rb index 5e8f829..7f19f05 100644 --- a/lib/mongo/util/core_ext.rb +++ b/lib/mongo/util/core_ext.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/util/server_version.rb b/lib/mongo/util/server_version.rb index 8a00a6c..78b9c70 100644 --- a/lib/mongo/util/server_version.rb +++ b/lib/mongo/util/server_version.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. # diff --git a/lib/mongo/util/support.rb b/lib/mongo/util/support.rb index 2b9dc66..7ce51a0 100644 --- a/lib/mongo/util/support.rb +++ b/lib/mongo/util/support.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # -- # Copyright (C) 2008-2010 10gen Inc. #