mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-24 01:57:46 -05:00
Rubocop for hash alignment
This commit is contained in:
@@ -26,6 +26,10 @@ Style/PercentLiteralDelimiters:
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
EnforcedStyle: indented
|
||||
|
||||
Layout/AlignHash:
|
||||
EnforcedColonStyle: table
|
||||
EnforcedHashRocketStyle: table
|
||||
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
||||
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
||||
Layout/AlignParameters:
|
||||
|
||||
@@ -57,10 +57,10 @@ Rails.application.configure do
|
||||
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
config.action_mailer.smtp_settings = {
|
||||
port: '587',
|
||||
address: 'smtp.mandrillapp.com',
|
||||
user_name: ENV['GROWSTUFF_MANDRILL_USERNAME'],
|
||||
password: ENV['GROWSTUFF_MANDRILL_APIKEY'],
|
||||
port: '587',
|
||||
address: 'smtp.mandrillapp.com',
|
||||
user_name: ENV['GROWSTUFF_MANDRILL_USERNAME'],
|
||||
password: ENV['GROWSTUFF_MANDRILL_APIKEY'],
|
||||
authentication: :login
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ Geocoder.configure(lookup: :test)
|
||||
Geocoder::Lookup::Test.add_stub(
|
||||
"Amundsen-Scott Base, Antarctica", [
|
||||
{
|
||||
'latitude' => -90.0,
|
||||
'longitude' => 0.0
|
||||
'latitude' => -90.0,
|
||||
'longitude' => 0.0
|
||||
}
|
||||
]
|
||||
)
|
||||
@@ -78,8 +78,8 @@ Geocoder::Lookup::Test.add_stub(
|
||||
Geocoder::Lookup::Test.add_stub(
|
||||
"Greenwich, UK", [
|
||||
{
|
||||
'latitude' => 51.483061,
|
||||
'longitude' => -0.004151
|
||||
'latitude' => 51.483061,
|
||||
'longitude' => -0.004151
|
||||
}
|
||||
]
|
||||
)
|
||||
@@ -87,8 +87,8 @@ Geocoder::Lookup::Test.add_stub(
|
||||
Geocoder::Lookup::Test.add_stub(
|
||||
"Edinburgh", [
|
||||
{
|
||||
'latitude' => 55.953252,
|
||||
'longitude' => -3.188267
|
||||
'latitude' => 55.953252,
|
||||
'longitude' => -3.188267
|
||||
}
|
||||
]
|
||||
)
|
||||
@@ -103,15 +103,15 @@ end
|
||||
|
||||
OmniAuth.config.test_mode = true
|
||||
# Fake the omniauth
|
||||
OmniAuth.config.mock_auth[:facebook] = OmniAuth::AuthHash.new(provider: 'facebook',
|
||||
uid: '123545',
|
||||
info: {
|
||||
name: "John Testerson",
|
||||
OmniAuth.config.mock_auth[:facebook] = OmniAuth::AuthHash.new(provider: 'facebook',
|
||||
uid: '123545',
|
||||
info: {
|
||||
name: "John Testerson",
|
||||
nickname: 'JohnnyT',
|
||||
email: 'example.oauth.facebook@example.com',
|
||||
image: 'http://findicons.com/files/icons/1072/face_avatars/300/i04.png'
|
||||
email: 'example.oauth.facebook@example.com',
|
||||
image: 'http://findicons.com/files/icons/1072/face_avatars/300/i04.png'
|
||||
},
|
||||
credentials: {
|
||||
token: "token",
|
||||
token: "token",
|
||||
secret: "donttell"
|
||||
})
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
require 'geocodable'
|
||||
|
||||
Geocoder.configure(
|
||||
units: :km,
|
||||
timeout: 10,
|
||||
units: :km,
|
||||
timeout: 10,
|
||||
http_headers: {
|
||||
"User-Agent" =>
|
||||
"#{Rails.application.config.user_agent} #{Rails.application.config.user_agent_email}",
|
||||
"From" => Rails.application.config.user_agent_email
|
||||
"#{Rails.application.config.user_agent} #{Rails.application.config.user_agent_email}",
|
||||
"From" => Rails.application.config.user_agent_email
|
||||
}
|
||||
)
|
||||
# This configuration takes precedence over environment/test.rb
|
||||
|
||||
@@ -4,9 +4,9 @@ Rails.application.routes.draw do
|
||||
resources :plant_parts
|
||||
|
||||
devise_for :members, controllers: {
|
||||
registrations: "registrations",
|
||||
passwords: "passwords",
|
||||
sessions: "sessions",
|
||||
registrations: "registrations",
|
||||
passwords: "passwords",
|
||||
sessions: "sessions",
|
||||
omniauth_callbacks: "omniauth_callbacks"
|
||||
}
|
||||
devise_scope :member do
|
||||
|
||||
Reference in New Issue
Block a user