Browse Source

Rubocop update

develop
Bèr Kessels 2 months ago
parent
commit
9aed109e40
5 changed files with 26 additions and 20 deletions
  1. 1
    1
      .ruby-version
  2. 17
    12
      Gemfile.lock
  3. 6
    6
      config/environment.rb
  4. 1
    0
      lib/contact.rb
  5. 1
    1
      test/test_helper.rb

+ 1
- 1
.ruby-version View File

@@ -1 +1 @@
2.4.4
2.7.2

+ 17
- 12
Gemfile.lock View File

@@ -3,7 +3,7 @@ GEM
specs:
airbrussh (1.3.0)
sshkit (>= 1.6.1, != 1.7.0)
ast (2.4.0)
ast (2.4.1)
awesome_print (1.8.0)
byebug (10.0.2)
capistrano (3.10.2)
@@ -37,12 +37,11 @@ GEM
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.2.0)
parallel (1.12.1)
parser (2.5.1.0)
ast (~> 2.4.0)
parallel (1.19.2)
parser (2.7.1.5)
ast (~> 2.4.1)
pony (1.12)
mail (>= 2.0)
powerpack (0.1.1)
puma (3.12.2)
rack (2.0.7)
rack-protection (2.0.2)
@@ -54,16 +53,22 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
regexp_parser (1.8.1)
rerun (0.13.0)
listen (~> 3.0)
rubocop (0.55.0)
rexml (3.2.4)
rubocop (0.92.0)
parallel (~> 1.10)
parser (>= 2.5)
powerpack (~> 0.1)
parser (>= 2.7.1.5)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.5.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.7.1)
parser (>= 2.7.1.5)
ruby-progressbar (1.10.1)
ruby_dep (1.5.0)
semver (1.0.1)
sinatra (2.0.2)
@@ -76,7 +81,7 @@ GEM
net-ssh (>= 2.8.0)
thor (0.19.4)
tilt (2.0.10)
unicode-display_width (1.3.2)
unicode-display_width (1.7.0)

PLATFORMS
ruby
@@ -98,4 +103,4 @@ DEPENDENCIES
sinatra

BUNDLED WITH
1.16.1
2.1.4

+ 6
- 6
config/environment.rb View File

@@ -4,12 +4,12 @@ Contact.configure do |config|
config.mail_to = ENV['MAIL_TO']
config.mail_from = 'contact@placebazaar.org'
config.smtp_options = {
address: 'fairfax.webschuur.com',
port: '587',
address: 'fairfax.webschuur.com',
port: '587',
enable_starttls_auto: true,
user_name: ENV['SMTP_USER'],
password: ENV['SMTP_PASSWORD'],
authentication: :plain,
domain: 'placebazaar.org'
user_name: ENV['SMTP_USER'],
password: ENV['SMTP_PASSWORD'],
authentication: :plain,
domain: 'placebazaar.org'
}
end

+ 1
- 0
lib/contact.rb View File

@@ -18,6 +18,7 @@ end

post '/messages' do
return status(201) if spam?

validate
raise BadRequest, errors.join("\n") if errors.any?


+ 1
- 1
test/test_helper.rb View File

@@ -17,7 +17,7 @@ ENV['RACK_ENV'] = 'test'
Sinatra::Application.environment = :test

## Include all support files
Dir[File.join(__dir__, 'support', '**', '*.rb')].each { |file| require file }
Dir[File.join(__dir__, 'support', '**', '*.rb')].sort.each { |file| require file }

module Minitest
class Spec

Loading…
Cancel
Save