File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RubyBench was born out from
99
1010# Benchmark Scripts
1111
12- Ruby Scripts: https://github.com/ruby/ruby/tree/trunk /benchmark
12+ Ruby Scripts: https://github.com/ruby/ruby/tree/master /benchmark
1313
1414Discourse Scripts: https://github.com/discourse/discourse/tree/master/script
1515
@@ -50,7 +50,7 @@ Motherboard | Intel Coporation S1200RP
5050``` bash
5151redis-server
5252
53- # Make sure that the current user has a Postgres account
53+ # Make sure that the current user has a Postgres account
5454# If not run : sudo -u postgres createuser <username> -s
5555bundle exec rake db:setup
5656
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13class GithubEventHandler
24 PUSH = 'push'
35 HEADER = 'HTTP_X_GITHUB_EVENT'
4- MAIN_BRANCHES = [
5- 'master' ,
6- 'trunk'
7- ]
86
97 def initialize ( request , payload )
108 @request = request
@@ -18,7 +16,7 @@ def handle
1816 private
1917
2018 def push_to_main_branch?
21- @request . env [ HEADER ] == PUSH && MAIN_BRANCHES . include? ( branch_from_payload )
19+ @request . env [ HEADER ] == PUSH && branch_from_payload == "master"
2220 end
2321
2422 def branch_from_payload
You can’t perform that action at this time.
0 commit comments