Browse Source

Autocorrect with rubocop after upgrading.

develop^2
Bèr Kessels 3 months ago
parent
commit
c53a070984

+ 3
- 1
Rakefile View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 $LOAD_PATH.unshift '.'
2 4
 
3 5
 require 'dotenv/load'
@@ -22,7 +24,7 @@ task run_processors: :environment do
22 24
   Hours.projections_database.disconnect
23 25
 
24 26
   esps = [
25
-    Hours::Projections::Nodes::Projector.new,
27
+    Hours::Projections::Nodes::Projector.new
26 28
   ]
27 29
 
28 30
   # The ESPRunner will fork child processes for each of the ESPs passed to it.

+ 2
- 0
app/aggregates/node.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module Hours
2 4
   module Aggregates
3 5
     ##

+ 2
- 0
app/commands/node/add.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module Hours
2 4
   module Commands
3 5
     module Node

+ 2
- 0
app/events/node_added.rb View File

@@ -1 +1,3 @@
1
+# frozen_string_literal: true
2
+
1 3
 NodeAdded = Class.new(EventSourcery::Event)

+ 2
- 0
app/models/node.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'opening_hours_converter'
2 4
 
3 5
 module Hours

+ 2
- 0
app/projections/nodes.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module Hours
2 4
   module Projections
3 5
     module Nodes

+ 2
- 0
app/projections/query.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module Hours
2 4
   module Projections
3 5
     module Nodes

+ 2
- 0
app/serializers/node.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module Hours
2 4
   module Serializers
3 5
     ##

+ 2
- 0
config.ru View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 $LOAD_PATH << '.'
2 4
 
3 5
 require 'lib/app.rb'

+ 2
- 0
config/environment.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 ##
2 4
 # Setup of database.
3 5
 Hours.configure do |config|

+ 2
- 0
config/event_sourcery.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 ##
2 4
 # Configure the event sourcery databases.
3 5
 # This assumes they already exist!

+ 2
- 0
lib/app.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 # This contains the Sinatra App
2 4
 require_relative './hours.rb'
3 5
 require_relative '../config/event_sourcery.rb'

+ 2
- 0
lib/hours.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'dotenv/load'
2 4
 
3 5
 require 'event_sourcery'

+ 2
- 0
test/commands/node/add_test.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'test_helper'
2 4
 
3 5
 describe Hours::Commands::Node::Add::Command do

+ 2
- 0
test/integration/add_node_test.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'test_helper'
2 4
 
3 5
 describe 'add node' do

+ 2
- 0
test/integration/view_proposed_nodes_test.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'test_helper'
2 4
 require 'json_expressions/minitest'
3 5
 require 'timecop'

+ 2
- 0
test/models/node_test.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'test_helper'
2 4
 
3 5
 describe Hours::Models::Node do

+ 2
- 0
test/projections/query_test.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'test_helper'
2 4
 
3 5
 describe Hours::Projections::Nodes::Query do

+ 3
- 1
test/support/event_helpers.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 ##
2 4
 # Helpers for testing events.
3 5
 module EventHelpers
@@ -19,7 +21,7 @@ module EventHelpers
19 21
 
20 22
   def projectors
21 23
     @projectors = [
22
-      Hours::Projections::Nodes::Projector.new,
24
+      Hours::Projections::Nodes::Projector.new
23 25
     ]
24 26
   end
25 27
 end

+ 2
- 0
test/support/file_helpers.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 ##
2 4
 # Helpers for testing against files
3 5
 module FileHelpers

+ 2
- 0
test/support/request_helpers.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'ostruct'
2 4
 require 'json'
3 5
 require 'rack/test'

+ 2
- 0
test/support/time_helpers.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 module TimeHelpers
2 4
   ##
3 5
   # Time Helper to freeze the time at die_wende for the duration of a block

+ 2
- 0
test/test_helper.rb View File

@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
1 3
 require 'minitest/autorun'
2 4
 require 'database_cleaner'
3 5
 require 'byebug'

Loading…
Cancel
Save