Browse Source

Add frozen-string-literal magic comment

develop
Bèr Kessels 1 month ago
parent
commit
18bb93066d

+ 2
- 0
Capfile View File

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

# Load DSL and set up stages
require 'capistrano/setup'


+ 2
- 0
config.ru View File

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

$LOAD_PATH << '.'

require 'lib/contact.rb'

+ 2
- 0
config/deploy.rb View File

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

# config valid for current version and patch releases of Capistrano
lock '~> 3.10.2'


+ 2
- 0
config/deploy/production.rb View File

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

server 'contact.placebazaar.org', user: 'deploy', roles: %w[app db web]

+ 2
- 0
config/environment.rb View File

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

Contact.configure do |config|
config.mail_to = ENV['MAIL_TO']
config.mail_from = 'contact@placebazaar.org'

+ 2
- 0
lib/contact.rb View File

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

require 'sinatra'
require 'pony'


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

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

require 'test_helper'

describe 'add message through REST' do

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

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

require 'test_helper'

describe 'attempt to spam message through REST' do

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

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

##
# Helpers for testing against files
module FileHelpers

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

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

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

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

@@ -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 View File

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

require 'minitest/autorun'
require 'minitest/assert_changes'
require 'byebug'

Loading…
Cancel
Save