Permalink
Browse files

Make files UTF-8 compatible

  • Loading branch information...
1 parent 23573ab commit f8ebd6ad416c7d2676dc82080dce51295bb25c02 Cédric FABIANSKI committed with jyurek Nov 27, 2012
View
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
require 'rbconfig'
require 'cocaine/command_line'
require 'cocaine/command_line/runners'
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
class CommandLine
class << self
@@ -1,4 +1,6 @@
+# coding: UTF-8
+
require 'cocaine/command_line/runners/backticks_runner'
require 'cocaine/command_line/runners/process_runner'
require 'cocaine/command_line/runners/posix_runner'
-require 'cocaine/command_line/runners/fake_runner'
+require 'cocaine/command_line/runners/fake_runner'
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
class CommandLine
class BackticksRunner
@@ -1,7 +1,9 @@
+# coding: UTF-8
+
module Cocaine
class CommandLine
class FakeRunner
-
+
attr_reader :commands
def initialize
@@ -19,4 +21,4 @@ def ran?(predicate_command)
end
end
-end
+end
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
class CommandLine
class PosixRunner
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
class CommandLine
class ProcessRunner
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
class CommandLineError < StandardError; end
class CommandNotFoundError < CommandLineError; end
View
@@ -1,3 +1,5 @@
+# coding: UTF-8
+
module Cocaine
VERSION = "0.4.2".freeze
end

3 comments on commit f8ebd6a

Owner

mike-burns replied Nov 30, 2012

What does this gain us?

Member

jyurek replied Nov 30, 2012

It, according to some reports, fixes encoding errors when gsubbing.

Owner

mike-burns replied Nov 30, 2012

That's super cool to know. Is there a blog post we can tweet about, or can we write one?

Please sign in to comment.