Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 444077b

Browse files
committed
Merge pull request #73 from professor/double_to_single_quote
Double quote to single quote
2 parents 78281b9 + 56d7805 commit 444077b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+153
-163
lines changed

app/controllers/omniauth_callbacks_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
22
def google_oauth2
3-
@user = User.find_for_google_oauth2(request.env["omniauth.auth"], current_user)
3+
@user = User.find_for_google_oauth2(request.env['omniauth.auth'], current_user)
44

55
if @user.persisted?
66
flash[:notice] = I18n.t "devise.omniauth_callbacks.success", kind: "Google"
77
sign_in_and_redirect @user, event: :authentication
88
else
9-
session["devise.google_data"] = request.env["omniauth.auth"]
9+
session['devise.google_data'] = request.env['omniauth.auth']
1010
redirect_to edit_configuration_url
1111
end
1212
end

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SessionsController < Devise::SessionsController
55
def create
66
super
77
rescue BCrypt::Errors::InvalidHash
8-
flash[:error] = "The system has been upgraded, your password needs to be reset before logging in."
8+
flash[:error] = 'The system has been upgraded, your password needs to be reset before logging in.'
99
redirect_to new_user_password_path
1010
end
1111

app/controllers/status_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class StatusController < ApplicationController
44
def create
55
if project = Project.find_by_guid(params.delete(:project_id))
66
payload = project.webhook_payload
7-
payload.remote_addr = request.env["REMOTE_ADDR"]
7+
payload.remote_addr = request.env['REMOTE_ADDR']
88

99
params.merge!(parse_legacy_jenkins_notification) if is_legacy_jenkins_notification?(payload)
1010

@@ -17,7 +17,7 @@ def create
1717
end
1818

1919
log = PayloadProcessor.new(project_status_updater: StatusUpdater.new).process_payload(project: project, payload: payload)
20-
log.update_method = "Webhooks"
20+
log.update_method = 'Webhooks'
2121
log.save!
2222

2323
project.save!

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def create
99
@user = User.new(user_params)
1010
if @user.save
1111
redirect_to(root_path)
12-
flash[:notice] = "User created."
12+
flash[:notice] = 'User created.'
1313
else
1414
render :new
1515
end

app/decorators/aggregate_project_decorator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ def status_in_words
1212
def css_class
1313
"project #{status_in_words} aggregate"
1414
end
15-
1615
end

app/decorators/circle_ci_project_decorator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ class CircleCiProjectDecorator < ProjectDecorator
33
def current_build_url
44
"https://circleci.com/api/v1/project/#{object.circleci_username}/#{object.ci_build_identifier}?circle-token=#{object.ci_auth_token}"
55
end
6-
76
end

app/decorators/codeship_project_decorator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ class CodeshipProjectDecorator < ProjectDecorator
33
def current_build_url
44
"https://www.codeship.io/projects/#{object.ci_build_identifier}"
55
end
6-
76
end

app/decorators/concourse_project_decorator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ class ConcourseProjectDecorator < ProjectDecorator
33
def current_build_url
44
"#{object.ci_base_url}/jobs/#{object.ci_build_identifier}"
55
end
6-
76
end

app/decorators/jenkins_project_decorator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ class JenkinsProjectDecorator < ProjectDecorator
33
def current_build_url
44
object.webhooks_enabled? ? object.parsed_url : object.ci_base_url
55
end
6-
76
end

app/decorators/project_decorator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def current_build_url
2121
# To know more about this method, see:
2222
# http://api.rubyonrails.org/classes/ActiveModel/Conversion.html#method-i-to_partial_path
2323
def to_partial_path
24-
"projects/project"
24+
'projects/project'
2525
end
26-
end
26+
end

0 commit comments

Comments
 (0)