correct all rubocop warnings

correct all rubocop warning

I know the hash changes are somewhat annoying but we are using the Discourse official rubocop file here so keeping formatting consistent trumps over this niggle

diff --git a/lib/mobystash/container.rb b/lib/mobystash/container.rb
index badcc2d..a97ea47 100644
--- a/lib/mobystash/container.rb
+++ b/lib/mobystash/container.rb
@@ -64,10 +64,10 @@ module Mobystash
 
       @tags = {
         moby: {
-          name:     @name,
-          id:       @id,
+          name: @name,
+          id: @id,
           hostname: docker_data.info["Config"]["Hostname"],
-          image:    docker_data.info["Config"]["Image"],
+          image: docker_data.info["Config"]["Image"],
           image_id: docker_data.info["Image"],
         }
       }
@@ -164,13 +164,13 @@ module Mobystash
           conn.get(
             "/containers/#{@id}/logs",
             {
-              since:      (Time.strptime(@last_log_timestamp, "%FT%T.%N%Z") + ONE_NANOSECOND).strftime("%s.%N"),
+              since: (Time.strptime(@last_log_timestamp, "%FT%T.%N%Z") + ONE_NANOSECOND).strftime("%s.%N"),
               timestamps: true,
-              follow:     true,
-              stdout:     true,
-              stderr:     true,
+              follow: true,
+              stdout: true,
+              stderr: true,
             },
-            idempotent:     false,
+            idempotent: false,
             response_block: chunk_parser
           )
         rescue Docker::Error::NotFoundError
@@ -222,7 +222,7 @@ module Mobystash
         metadata = {
           "@metadata": {
             document_id: MurmurHash3::V128.murmur3_128_str_base64digest(event.to_json)[0..-3],
-            event_type:  "moby",
+            event_type: "moby",
           }
         }
 
@@ -260,14 +260,14 @@ module Mobystash
         facility = flags / 8
 
         [message, { syslog: {
-          timestamp:     timestamp,
-          severity_id:   severity,
+          timestamp: timestamp,
+          severity_id: severity,
           severity_name: SYSLOG_SEVERITIES[severity],
-          facility_id:   facility,
+          facility_id: facility,
           facility_name: SYSLOG_FACILITIES[facility],
-          hostname:      hostname,
-          program:       program,
-          pid:           pid.nil? ? nil : pid.to_i,
+          hostname: hostname,
+          program: program,
+          pid: pid.nil? ? nil : pid.to_i,
         }.select { |k, v| !v.nil? } }]
       else
         [msg, {}]
diff --git a/spec/container_spec.rb b/spec/container_spec.rb
index c5d7160..c46765d 100644
--- a/spec/container_spec.rb
+++ b/spec/container_spec.rb
@@ -71,7 +71,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdfbasic/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "0.000000001" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -94,7 +94,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdfbasic/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "1538469556.458228204" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -102,19 +102,19 @@ describe Mobystash::Container do
         expect(mock_writer)
           .to receive(:send_event)
           .with(
-            message:      "xyzzy",
-            moby:         {
-              name:     "basic_container",
-              id:       "asdfasdfbasic",
+            message: "xyzzy",
+            moby: {
+              name: "basic_container",
+              id: "asdfasdfbasic",
               hostname: "basic-container",
-              image:    "rspec/basic_container:latest",
+              image: "rspec/basic_container:latest",
               image_id: "poiuytrewqbasic",
-              stream:   "stdout",
+              stream: "stdout",
             },
             "@timestamp": "2018-10-02T08:39:16.458228203Z",
-            "@metadata":  {
+            "@metadata": {
               document_id: match(DOC_ID_REGEX),
-              event_type:  "moby",
+              event_type: "moby",
             },
           )
 
@@ -138,7 +138,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdfbasic/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "1234567890.987654322" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -161,7 +161,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdfbasic/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "1538469556.458228204" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -169,19 +169,19 @@ describe Mobystash::Container do
         expect(mock_writer)
           .to receive(:send_event)
           .with(
-            message:      "<150>Oct 11 10:10:35 sumhost ohai[3656]: hello from syslog!",
-            moby:         {
-              name:     "basic_container",
-              id:       "asdfasdfbasic",
+            message: "<150>Oct 11 10:10:35 sumhost ohai[3656]: hello from syslog!",
+            moby: {
+              name: "basic_container",
+              id: "asdfasdfbasic",
               hostname: "basic-container",
-              image:    "rspec/basic_container:latest",
+              image: "rspec/basic_container:latest",
               image_id: "poiuytrewqbasic",
-              stream:   "stderr",
+              stream: "stderr",
             },
             "@timestamp": "2018-10-02T08:39:16.458228203Z",
-            "@metadata":  {
+            "@metadata": {
               document_id: match(DOC_ID_REGEX),
-              event_type:  "moby",
+              event_type: "moby",
             },
           )
 
@@ -210,7 +210,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdffiltered/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "0.000000001" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -233,7 +233,7 @@ describe Mobystash::Container do
           .to receive(:get)
           .with("/containers/asdfasdffiltered/logs",
             { timestamps: true, stdout: true, stderr: true, follow: true, since: "1538469556.458228204" },
-            idempotent:     false,
+            idempotent: false,
             response_block: instance_of(Mobystash::MobyChunkParser)
           )
           .and_raise(Mobystash::MobyEventWorker.const_get(:TerminateEventWorker))
@@ -241,19 +241,19 @@ describe Mobystash::Container do
         expect(mock_writer)
           .to receive(:send_event)
           .with(
-            message:      "A",
-            moby:         {
-              name:     "filtered_container",
-              id:       "asdfasdffiltered",
+            message: "A",
+            moby: {
+              name: "filtered_container",
+              id: "asdfasdffiltered",
               hostname: "filtered-container",
-              image:    "rspec/filtered_container:latest",
+              image: "rspec/filtered_container:latest",
               image_id: "poiuytrewqfiltered",
-              stream:   "stdout",

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

GitHub sha: 3ebf1050