Skip to content

Commit

Permalink
Merge pull request #115 from digitaltom/dependabot/bundler/rubocop-ra…
Browse files Browse the repository at this point in the history
…ils-2.4.0

Bump rubocop-rails from 2.3.2 to 2.4.0
  • Loading branch information
digitaltom committed Dec 2, 2019
2 parents 53e07e4 + 9d7cdc2 commit a4da6d0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ GEM
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-rails (2.3.2)
rubocop-rails (2.4.0)
rack (>= 1.1)
rubocop (>= 0.72.0)
ruby-progressbar (1.10.1)
Expand Down
2 changes: 1 addition & 1 deletion app/models/picture_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PictureSet
POLAROID_SUFFIX = '_polaroid.png'
ANIMATION_SUFFIX = '_animation.gif'
COMBINED_SUFFIX = '_combined.jpg'
PICTURE_PATH = Rails.root.join('public', 'picture_sets').to_s
PICTURE_PATH = Rails.root.join('public/picture_sets').to_s

attr_accessor :date, :dir, :animation, :combined, :pictures, :next, :last

Expand Down
4 changes: 2 additions & 2 deletions config/initializers/gpio.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Output
# rubocop:disable Rails/Output
# rubocop:disable Lint/RescueException
begin
$VERBOSE = nil
Expand All @@ -13,5 +13,5 @@
ensure
$VERBOSE = false
end
# rubocop:enable Output
# rubocop:enable Rails/Output
# rubocop:enable Lint/RescueException
2 changes: 1 addition & 1 deletion config/initializers/locale.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Where the I18n library should search for translation files
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
I18n.load_path += Dir[Rails.root.join('config/locales/*.{rb,yml}')]

# Whitelist locales available for the application
I18n.available_locales = %i[en de]
Expand Down
6 changes: 3 additions & 3 deletions spec/models/picture_set_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

require 'rails_helper'

# rubocop:disable BlockLength
# rubocop:disable Metrics/BlockLength
RSpec.describe PictureSet, type: :model do

before do
stub_const('PictureSet::PICTURE_PATH', Rails.root.join('spec', 'fixtures', 'filesystem'))
stub_const('PictureSet::PICTURE_PATH', Rails.root.join('spec/fixtures/filesystem'))
end

describe '#all' do
Expand Down Expand Up @@ -126,4 +126,4 @@
end

end
# rubocop:enable BlockLength
# rubocop:enable Metrics/BlockLength

0 comments on commit a4da6d0

Please sign in to comment.