Ver código fonte

Autocorrect with rubocop after upgrading.

tags/0.3.0^2
Bèr Kessels 1 ano atrás
pai
commit
c53a070984

+ 3
- 1
Rakefile Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

$LOAD_PATH.unshift '.'

require 'dotenv/load'
@@ -22,7 +24,7 @@ task run_processors: :environment do
Hours.projections_database.disconnect

esps = [
Hours::Projections::Nodes::Projector.new,
Hours::Projections::Nodes::Projector.new
]

# The ESPRunner will fork child processes for each of the ESPs passed to it.

+ 2
- 0
app/aggregates/node.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Hours
module Aggregates
##

+ 2
- 0
app/commands/node/add.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Hours
module Commands
module Node

+ 2
- 0
app/events/node_added.rb Ver arquivo

@@ -1 +1,3 @@
# frozen_string_literal: true

NodeAdded = Class.new(EventSourcery::Event)

+ 2
- 0
app/models/node.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'opening_hours_converter'

module Hours

+ 2
- 0
app/projections/nodes.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Hours
module Projections
module Nodes

+ 2
- 0
app/projections/query.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Hours
module Projections
module Nodes

+ 2
- 0
app/serializers/node.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Hours
module Serializers
##

+ 2
- 0
config.ru Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

$LOAD_PATH << '.'

require 'lib/app.rb'

+ 2
- 0
config/environment.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

##
# Setup of database.
Hours.configure do |config|

+ 2
- 0
config/event_sourcery.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

##
# Configure the event sourcery databases.
# This assumes they already exist!

+ 2
- 0
lib/app.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This contains the Sinatra App
require_relative './hours.rb'
require_relative '../config/event_sourcery.rb'

+ 2
- 0
lib/hours.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'dotenv/load'

require 'event_sourcery'

+ 2
- 0
test/commands/node/add_test.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

describe Hours::Commands::Node::Add::Command do

+ 2
- 0
test/integration/add_node_test.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

describe 'add node' do

+ 2
- 0
test/integration/view_proposed_nodes_test.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'json_expressions/minitest'
require 'timecop'

+ 2
- 0
test/models/node_test.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

describe Hours::Models::Node do

+ 2
- 0
test/projections/query_test.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

describe Hours::Projections::Nodes::Query do

+ 3
- 1
test/support/event_helpers.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

##
# Helpers for testing events.
module EventHelpers
@@ -19,7 +21,7 @@ module EventHelpers

def projectors
@projectors = [
Hours::Projections::Nodes::Projector.new,
Hours::Projections::Nodes::Projector.new
]
end
end

+ 2
- 0
test/support/file_helpers.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

##
# Helpers for testing against files
module FileHelpers

+ 2
- 0
test/support/request_helpers.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'ostruct'
require 'json'
require 'rack/test'

+ 2
- 0
test/support/time_helpers.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

module TimeHelpers
##
# Time Helper to freeze the time at die_wende for the duration of a block

+ 2
- 0
test/test_helper.rb Ver arquivo

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'minitest/autorun'
require 'database_cleaner'
require 'byebug'

Carregando…
Cancelar
Salvar