FIX: Magic comment to satisfy rubocop

FIX: Magic comment to satisfy rubocop

diff --git a/Gemfile b/Gemfile
index 4f89c30..9da809a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 source 'https://rubygems.org'
 
 # Specify your gem's dependencies in message_bus.gemspec
diff --git a/Guardfile b/Guardfile
index 637b353..743d1c7 100644
--- a/Guardfile
+++ b/Guardfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # A sample Guardfile
 # More info at https://github.com/guard/guard#readme
 
diff --git a/Rakefile b/Rakefile
index f84e959..4a8da43 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'rubygems'
 require 'rake/testtask'
 require 'bundler'
diff --git a/examples/bench/config.ru b/examples/bench/config.ru
index afd6ab4..e7f238e 100644
--- a/examples/bench/config.ru
+++ b/examples/bench/config.ru
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 $LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
 
 require 'message_bus'
diff --git a/examples/bench/puma.rb b/examples/bench/puma.rb
index ffe75c8..b01e692 100644
--- a/examples/bench/puma.rb
+++ b/examples/bench/puma.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'message_bus'
 on_worker_boot do
   MessageBus.after_fork
diff --git a/examples/bench/unicorn.conf.rb b/examples/bench/unicorn.conf.rb
index 8476990..f3d5e74 100644
--- a/examples/bench/unicorn.conf.rb
+++ b/examples/bench/unicorn.conf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'message_bus'
 after_fork do |_server, _worker|
   MessageBus.after_fork
diff --git a/examples/chat/Gemfile b/examples/chat/Gemfile
index b486b78..f304576 100644
--- a/examples/chat/Gemfile
+++ b/examples/chat/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 gem 'puma'
 gem 'redis'
 gem 'sinatra'
diff --git a/examples/chat/chat.rb b/examples/chat/chat.rb
index 87646bf..4c01a75 100644
--- a/examples/chat/chat.rb
+++ b/examples/chat/chat.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 $LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
 require 'message_bus'
 require 'sinatra'
diff --git a/examples/chat/config.ru b/examples/chat/config.ru
index b8fa9e6..efa8b35 100644
--- a/examples/chat/config.ru
+++ b/examples/chat/config.ru
@@ -1,2 +1,4 @@
+# frozen_string_literal: true
+
 require './chat'
 run Chat
diff --git a/examples/diagnostics/Gemfile b/examples/diagnostics/Gemfile
index 5ba0587..fdc0dcb 100644
--- a/examples/diagnostics/Gemfile
+++ b/examples/diagnostics/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 source 'https://rubygems.org'
 
 gem 'message_bus', path: '../..'
diff --git a/examples/diagnostics/config.ru b/examples/diagnostics/config.ru
index 2fd4b6a..5cccd6a 100644
--- a/examples/diagnostics/config.ru
+++ b/examples/diagnostics/config.ru
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'message_bus'
 
 MessageBus.configure(backend: :redis, url: ENV['REDISURL'])
diff --git a/examples/minimal/Gemfile b/examples/minimal/Gemfile
index 26bc5f3..04dae5f 100644
--- a/examples/minimal/Gemfile
+++ b/examples/minimal/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 source 'https://rubygems.org'
 
 gem 'message_bus'
diff --git a/examples/minimal/config.ru b/examples/minimal/config.ru
index 54731db..e16a75a 100644
--- a/examples/minimal/config.ru
+++ b/examples/minimal/config.ru
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'message_bus'
 
 # MessageBus.long_polling_interval = 1000 * 2
diff --git a/lib/message_bus/diagnostics.rb b/lib/message_bus/diagnostics.rb
index 40c5d94..d17f66e 100644
--- a/lib/message_bus/diagnostics.rb
+++ b/lib/message_bus/diagnostics.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 # MessageBus diagnostics are used for troubleshooting the bus and optimising its configuration
 # @see MessageBus::Rack::Diagnostics
 class MessageBus::Diagnostics
diff --git a/lib/message_bus/em_ext.rb b/lib/message_bus/em_ext.rb
index 1f67cfb..e3d0b09 100644
--- a/lib/message_bus/em_ext.rb
+++ b/lib/message_bus/em_ext.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module EM
   def self.reactor_pid
     @reactor_pid
diff --git a/lib/message_bus/http_client.rb b/lib/message_bus/http_client.rb
index b665b3a..997125c 100644
--- a/lib/message_bus/http_client.rb
+++ b/lib/message_bus/http_client.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'securerandom'
 require 'net/http'
 require 'json'
diff --git a/lib/message_bus/http_client/channel.rb b/lib/message_bus/http_client/channel.rb
index 2890a18..12c78a9 100644
--- a/lib/message_bus/http_client/channel.rb
+++ b/lib/message_bus/http_client/channel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module MessageBus
   class HTTPClient
     # @private
diff --git a/spec/assets/support/jasmine_helper.rb b/spec/assets/support/jasmine_helper.rb
index d921d4c..cb1ba53 100644
--- a/spec/assets/support/jasmine_helper.rb
+++ b/spec/assets/support/jasmine_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 Jasmine.configure do |_config|
   # patch for travis
   if ENV['TRAVIS']
diff --git a/spec/fixtures/test/Gemfile b/spec/fixtures/test/Gemfile
index 26bc5f3..04dae5f 100644
--- a/spec/fixtures/test/Gemfile
+++ b/spec/fixtures/test/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 source 'https://rubygems.org'
 
 gem 'message_bus'
diff --git a/spec/fixtures/test/config.ru b/spec/fixtures/test/config.ru
index 541f0ae..9f94e88 100644
--- a/spec/fixtures/test/config.ru
+++ b/spec/fixtures/test/config.ru
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'message_bus'
 
 MessageBus.config[:backend] = :memory
diff --git a/spec/helpers.rb b/spec/helpers.rb
index c948aaa..9ac8420 100644
--- a/spec/helpers.rb
+++ b/spec/helpers.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 def wait_for(timeout_milliseconds = 2000)
   timeout = (timeout_milliseconds + 0.0) / 1000
   finish = Time.now + timeout
diff --git a/spec/integration/http_client_spec.rb b/spec/integration/http_client_spec.rb
index 77321de..4967fe1 100644
--- a/spec/integration/http_client_spec.rb
+++ b/spec/integration/http_client_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_relative '../spec_helper'
 require 'message_bus/http_client'
 
diff --git a/spec/lib/fake_async_middleware.rb b/spec/lib/fake_async_middleware.rb
index 1c63926..b15a71c 100644
--- a/spec/lib/fake_async_middleware.rb
+++ b/spec/lib/fake_async_middleware.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'http/parser'
 class FakeAsyncMiddleware
   def initialize(app, config = {})
diff --git a/spec/lib/message_bus/assets/asset_encoding_spec.rb b/spec/lib/message_bus/assets/asset_encoding_spec.rb
index ace275d..1c4a421 100644
--- a/spec/lib/message_bus/assets/asset_encoding_spec.rb
+++ b/spec/lib/message_bus/assets/asset_encoding_spec.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require_relative '../../../spec_helper'
 asset_directory = File.expand_path('../../../../../assets', __FILE__)
 asset_file_paths = Dir.glob(File.join(asset_directory, 'message-bus.js'))
diff --git a/spec/lib/message_bus/backend_spec.rb b/spec/lib/message_bus/backend_spec.rb
index ab2c31b..03cab13 100644
--- a/spec/lib/message_bus/backend_spec.rb
+++ b/spec/lib/message_bus/backend_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_relative '../../spec_helper'
 require 'message_bus'
 
diff --git a/spec/lib/message_bus/client_spec.rb b/spec/lib/message_bus/client_spec.rb
index 2800094..86bda68 100644
--- a/spec/lib/message_bus/client_spec.rb
+++ b/spec/lib/message_bus/client_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_relative '../../spec_helper'
 require 'message_bus'
 
diff --git a/spec/lib/message_bus/connection_manager_spec.rb b/spec/lib/message_bus/connection_manager_spec.rb
index 15f59c7..dca0476 100644
--- a/spec/lib/message_bus/connection_manager_spec.rb
+++ b/spec/lib/message_bus/connection_manager_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_relative '../../spec_helper'
 require 'message_bus'
 

[... diff too long, it was truncated ...]

GitHub sha: de498b12

This commit appears in #215 which was merged by @SamSaffron.