From 9860e53fc3796f7e306ae25b04ca540a966a8195 Mon Sep 17 00:00:00 2001 From: Ben Langfeld Date: Wed, 24 Apr 2013 19:57:53 -0300 Subject: [PATCH] [CS] UTF-8 everywhere --- lib/ruby_fs.rb | 2 ++ lib/ruby_fs/command_reply.rb | 2 ++ lib/ruby_fs/event.rb | 2 ++ lib/ruby_fs/lexer.rb | 2 ++ lib/ruby_fs/response.rb | 2 ++ lib/ruby_fs/stream.rb | 2 ++ lib/ruby_fs/version.rb | 2 ++ spec/ruby_fs/command_reply_spec.rb | 2 ++ spec/ruby_fs/event_spec.rb | 2 ++ spec/ruby_fs/response_spec.rb | 2 ++ spec/ruby_fs/stream_spec.rb | 2 ++ spec/spec_helper.rb | 2 ++ spec/support/mock_server.rb | 2 ++ 13 files changed, 26 insertions(+) diff --git a/lib/ruby_fs.rb b/lib/ruby_fs.rb index 2b00076..58bc04e 100644 --- a/lib/ruby_fs.rb +++ b/lib/ruby_fs.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + %w{ logger celluloid/io diff --git a/lib/ruby_fs/command_reply.rb b/lib/ruby_fs/command_reply.rb index 0c5dc08..29c3e3d 100644 --- a/lib/ruby_fs/command_reply.rb +++ b/lib/ruby_fs/command_reply.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'ruby_fs/response' module RubyFS diff --git a/lib/ruby_fs/event.rb b/lib/ruby_fs/event.rb index c6dfbb1..a71d93e 100644 --- a/lib/ruby_fs/event.rb +++ b/lib/ruby_fs/event.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'ruby_fs/response' module RubyFS diff --git a/lib/ruby_fs/lexer.rb b/lib/ruby_fs/lexer.rb index 2d25a17..6c24f8e 100644 --- a/lib/ruby_fs/lexer.rb +++ b/lib/ruby_fs/lexer.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module RubyFS class Lexer ContentLengthPattern = /Content-length:\s*(\d+)/i diff --git a/lib/ruby_fs/response.rb b/lib/ruby_fs/response.rb index 9f0ae60..b3df378 100644 --- a/lib/ruby_fs/response.rb +++ b/lib/ruby_fs/response.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module RubyFS class Response attr_reader :headers, :content diff --git a/lib/ruby_fs/stream.rb b/lib/ruby_fs/stream.rb index 8fe27fb..562a827 100644 --- a/lib/ruby_fs/stream.rb +++ b/lib/ruby_fs/stream.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'json' require 'ruby_fs/lexer' diff --git a/lib/ruby_fs/version.rb b/lib/ruby_fs/version.rb index 848cf8f..dd5f8ef 100644 --- a/lib/ruby_fs/version.rb +++ b/lib/ruby_fs/version.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module RubyFS VERSION = "1.1.0" end diff --git a/spec/ruby_fs/command_reply_spec.rb b/spec/ruby_fs/command_reply_spec.rb index 94b0215..90e78dd 100644 --- a/spec/ruby_fs/command_reply_spec.rb +++ b/spec/ruby_fs/command_reply_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' module RubyFS diff --git a/spec/ruby_fs/event_spec.rb b/spec/ruby_fs/event_spec.rb index f69a736..377304c 100644 --- a/spec/ruby_fs/event_spec.rb +++ b/spec/ruby_fs/event_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' module RubyFS diff --git a/spec/ruby_fs/response_spec.rb b/spec/ruby_fs/response_spec.rb index 0fad9d3..72e6faf 100644 --- a/spec/ruby_fs/response_spec.rb +++ b/spec/ruby_fs/response_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' module RubyFS diff --git a/spec/ruby_fs/stream_spec.rb b/spec/ruby_fs/stream_spec.rb index cf71083..7f8ce3a 100644 --- a/spec/ruby_fs/stream_spec.rb +++ b/spec/ruby_fs/stream_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' require 'timeout' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3b133ec..6e38ab4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'ruby_fs' Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} diff --git a/spec/support/mock_server.rb b/spec/support/mock_server.rb index 09f2493..c66e4c9 100644 --- a/spec/support/mock_server.rb +++ b/spec/support/mock_server.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + MockServer = Class.new class ServerMock