Skip to content

Commit b8262ec

Browse files
committed
Fixed rubocop messages
1 parent 8dc8f4d commit b8262ec

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

Diff for: Guardfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ guard "brakeman", run_on_start: true do
1010
end
1111

1212
guard :shell do
13-
watch(%r{^Gemfile|Gemfile.lock$}) { system("bundle-audit")}
13+
watch(%r{^Gemfile|Gemfile.lock$}) { system("bundle-audit") }
1414
end
1515

1616
guard "livereload", host: "railsgoat.dev", port: "35727" do
@@ -23,7 +23,7 @@ guard "livereload", host: "railsgoat.dev", port: "35727" do
2323
end
2424

2525

26-
guard :rspec, cmd: 'bundle exec rspec' do
26+
guard :rspec, cmd: "bundle exec rspec" do
2727
watch(%r{^spec/.+_spec\.rb$})
2828
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
2929
watch("spec/spec_helper.rb") { "spec" }

Diff for: app/controllers/pay_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def update_dd_info
1515

1616
msg = true if pay.save!
1717
respond_to do |format|
18-
format.json {render json: {msg: msg } }
18+
format.json { render json: {msg: msg } }
1919
end
2020
end
2121

@@ -38,7 +38,7 @@ def destroy
3838
def decrypted_bank_acct_num
3939
decrypted = Encryption.decrypt_sensitive_value(params[:value_to_decrypt])
4040
respond_to do |format|
41-
format.json {render json: {account_num: decrypted || "No Data" }}
41+
format.json { render json: {account_num: decrypted || "No Data" } }
4242
end
4343
end
4444
end

Diff for: app/controllers/schedule_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def create
1515
end
1616

1717
respond_to do |format|
18-
format.json {render json: {msg: message ? "success" : "failure" }}
18+
format.json { render json: {msg: message ? "success" : "failure" } }
1919
end
2020
end
2121

Diff for: app/models/analytics.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22
class Analytics < ApplicationRecord
3-
scope :hits_by_ip, ->(ip, col = "*") { select("#{col}").where(ip_address: ip).order("id DESC")}
3+
scope :hits_by_ip, ->(ip, col = "*") { select("#{col}").where(ip_address: ip).order("id DESC") }
44

55
def self.count_by_col(col)
66
calculate(:count, col)

Diff for: db/migrate/20140408185601_create_analytics.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
class CreateAnalytics < ActiveRecord::Migration[4.2]
33
def change
44
create_table :analytics do |t|
5-
t.string :ip_address
6-
t.string :referrer
7-
t.string :user_agent
5+
t.string :ip_address
6+
t.string :referrer
7+
t.string :user_agent
88
t.timestamps
99
end
1010
end

Diff for: db/schema.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# This file is auto-generated from the current state of the database. Instead
23
# of editing this file, please use the migrations feature of Active Record to
34
# incrementally modify your database, and then regenerate this schema definition.

Diff for: spec/support/capybara_shared.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def write(message)
8989
private
9090

9191
def ignore?(message)
92-
IGNORE_PATTERNS.any? {|regexp| message =~ regexp }
92+
IGNORE_PATTERNS.any? { |regexp| message =~ regexp }
9393
end
9494
end
9595

0 commit comments

Comments
 (0)