Commit 6876c7af authored by Marcel Amirault's avatar Marcel Amirault Committed by Douwe Maan

Fix grammar (setup to set-up) in code comments, spec, views, etc.

parent cdc4cd09
...@@ -29,12 +29,12 @@ export default class Renderer { ...@@ -29,12 +29,12 @@ export default class Renderer {
this.scene.add(this.camera); this.scene.add(this.camera);
// Setup the viewer // Set up the viewer
this.setupRenderer(); this.setupRenderer();
this.setupGrid(); this.setupGrid();
this.setupLight(); this.setupLight();
// Setup OrbitControls // Set up OrbitControls
this.controls = new OrbitControls( this.controls = new OrbitControls(
this.camera, this.camera,
this.renderer.domElement, this.renderer.domElement,
......
...@@ -16,7 +16,7 @@ export function setupFeatureHighlightPopover(id, debounceTimeout = 300) { ...@@ -16,7 +16,7 @@ export function setupFeatureHighlightPopover(id, debounceTimeout = 300) {
const hideOnScroll = togglePopover.bind($selector, false); const hideOnScroll = togglePopover.bind($selector, false);
$selector $selector
// Setup popover // Set up popover
.data('content', $popoverContent.prop('outerHTML')) .data('content', $popoverContent.prop('outerHTML'))
.popover({ .popover({
html: true, html: true,
......
...@@ -18,7 +18,7 @@ export default class GLForm { ...@@ -18,7 +18,7 @@ export default class GLForm {
}); });
// Before we start, we should clean up any previous data for this form // Before we start, we should clean up any previous data for this form
this.destroy(); this.destroy();
// Setup the form // Set up the form
this.setupForm(); this.setupForm();
this.form.data('glForm', this); this.form.data('glForm', this);
} }
......
...@@ -631,7 +631,7 @@ export default class Notes { ...@@ -631,7 +631,7 @@ export default class Notes {
* *
* deactivates the submit button when text is empty * deactivates the submit button when text is empty
* hides the preview button when text is empty * hides the preview button when text is empty
* setup GFM auto complete * set up GFM auto complete
* show the form * show the form
*/ */
setupNoteForm(form, enableGFM = defaultAutocompleteConfig) { setupNoteForm(form, enableGFM = defaultAutocompleteConfig) {
...@@ -954,7 +954,7 @@ export default class Notes { ...@@ -954,7 +954,7 @@ export default class Notes {
* Note: dataHolder must have the "discussionId" and "lineCode" data attributes set. * Note: dataHolder must have the "discussionId" and "lineCode" data attributes set.
*/ */
setupDiscussionNoteForm(dataHolder, form) { setupDiscussionNoteForm(dataHolder, form) {
// setup note target // set up note target
let diffFileData = dataHolder.closest('.text-file'); let diffFileData = dataHolder.closest('.text-file');
if (diffFileData.length === 0) { if (diffFileData.length === 0) {
...@@ -1036,7 +1036,7 @@ export default class Notes { ...@@ -1036,7 +1036,7 @@ export default class Notes {
$diffFile[0].dispatchEvent(clickEvent); $diffFile[0].dispatchEvent(clickEvent);
// Setup comment form // Set up comment form
let newForm; let newForm;
const $noteContainer = $link.closest('.diff-viewer').find('.note-container'); const $noteContainer = $link.closest('.diff-viewer').find('.note-container');
const $form = $noteContainer.find('> .discussion-form'); const $form = $noteContainer.find('> .discussion-form');
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
} }
}, },
basePath() { basePath() {
// We might get the project path from rails with the relative url already setup // We might get the project path from rails with the relative url already set up
return this.projectPath.indexOf('/') === 0 ? '' : `${gon.relative_url_root}/`; return this.projectPath.indexOf('/') === 0 ? '' : `${gon.relative_url_root}/`;
}, },
fullOldPath() { fullOldPath() {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%fieldset %fieldset
%p %p
Setup InfluxDB to measure a wide variety of statistics like the time spent Set up InfluxDB to measure a wide variety of statistics like the time spent
in running SQL queries. These settings require a in running SQL queries. These settings require a
= link_to 'restart', help_page_path('administration/restart_gitlab') = link_to 'restart', help_page_path('administration/restart_gitlab')
to take effect. to take effect.
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
.form-check .form-check
= f.check_box :mirror_available, class: 'form-check-input' = f.check_box :mirror_available, class: 'form-check-input'
= f.label :mirror_available, class: 'form-check-label' do = f.label :mirror_available, class: 'form-check-label' do
Allow mirrors to be setup for projects Allow mirrors to be set up for projects
%span.form-text.text-muted %span.form-text.text-muted
If disabled, only admins will be able to setup mirrors in projects. If disabled, only admins will be able to set up mirrors in projects.
= link_to icon('question-circle'), help_page_path('workflow/repository_mirroring') = link_to icon('question-circle'), help_page_path('workflow/repository_mirroring')
= f.submit 'Save changes', class: "btn btn-success" = f.submit 'Save changes', class: "btn btn-success"
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
.form-check .form-check
= f.check_box :require_two_factor_authentication, class: 'form-check-input' = f.check_box :require_two_factor_authentication, class: 'form-check-input'
= f.label :require_two_factor_authentication, class: 'form-check-label' do = f.label :require_two_factor_authentication, class: 'form-check-label' do
Require all users to setup Two-factor authentication Require all users to set up Two-factor authentication
.form-group .form-group
= f.label :two_factor_authentication, 'Two-factor grace period (hours)', class: 'label-bold' = f.label :two_factor_authentication, 'Two-factor grace period (hours)', class: 'label-bold'
= f.number_field :two_factor_grace_period, min: 0, class: 'form-control', placeholder: '0' = f.number_field :two_factor_grace_period, min: 0, class: 'form-control', placeholder: '0'
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
= f.check_box :require_two_factor_authentication, class: 'form-check-input' = f.check_box :require_two_factor_authentication, class: 'form-check-input'
= f.label :require_two_factor_authentication, class: 'form-check-label' do = f.label :require_two_factor_authentication, class: 'form-check-label' do
%strong %strong
Require all users in this group to setup Two-factor authentication Require all users in this group to set up Two-factor authentication
= link_to icon('question-circle'), help_page_path('security/two_factor_authentication', anchor: 'enforcing-2fa-for-all-users-in-a-group') = link_to icon('question-circle'), help_page_path('security/two_factor_authentication', anchor: 'enforcing-2fa-for-all-users-in-a-group')
.form-group.row .form-group.row
.offset-sm-2.col-sm-10 .offset-sm-2.col-sm-10
......
- page_title "New Password" - page_title "New Password"
- header_title "New Password" - header_title "New Password"
%h3.page-title Setup new password %h3.page-title Set up new password
%hr %hr
= form_for @user, url: profile_password_path, method: :post do |f| = form_for @user, url: profile_password_path, method: :post do |f|
%p.slead %p.slead
......
- run_actions_text = "Perform common operations on GitLab project: #{@project.full_name}" - run_actions_text = "Perform common operations on GitLab project: #{@project.full_name}"
%p To setup this service: %p To set up this service:
%ul.list-unstyled.indent-list %ul.list-unstyled.indent-list
%li %li
1. 1.
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
by entering by entering
%kbd.inline /<command> help %kbd.inline /<command> help
- unless @service.template? - unless @service.template?
%p To setup this service: %p To set up this service:
%ul.list-unstyled.indent-list %ul.list-unstyled.indent-list
%li %li
1. 1.
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
- if current_user.two_factor_otp_enabled? - if current_user.two_factor_otp_enabled?
.row.append-bottom-10 .row.append-bottom-10
.col-md-4 .col-md-4
%button#js-setup-u2f-device.btn.btn-info.btn-block Setup new U2F device %button#js-setup-u2f-device.btn.btn-info.btn-block Set up new U2F device
.col-md-8 .col-md-8
%p Your U2F device needs to be set up. Plug it in (if not already) and click the button on the left. %p Your U2F device needs to be set up. Plug it in (if not already) and click the button on the left.
- else - else
.row.append-bottom-10 .row.append-bottom-10
.col-md-4 .col-md-4
%button#js-setup-u2f-device.btn.btn-info.btn-block{ disabled: true } Setup new U2F device %button#js-setup-u2f-device.btn.btn-info.btn-block{ disabled: true } Set up new U2F device
.col-md-8 .col-md-8
%p.text-warning You need to register a two-factor authentication app before you can set up a U2F device. %p.text-warning You need to register a two-factor authentication app before you can set up a U2F device.
......
...@@ -16,7 +16,7 @@ if rails5? ...@@ -16,7 +16,7 @@ if rails5?
end end
Dir.chdir APP_ROOT do Dir.chdir APP_ROOT do
# This script is a starting point to setup your application. # This script is a starting point to set up your application.
# Add necessary setup steps to this file: # Add necessary setup steps to this file:
puts "== Installing dependencies ==" puts "== Installing dependencies =="
......
...@@ -760,8 +760,8 @@ test: ...@@ -760,8 +760,8 @@ test:
host: localhost host: localhost
port: 80 port: 80
# When you run tests we clone and setup gitlab-shell # When you run tests we clone and set up gitlab-shell
# In order to setup it correctly you need to specify # In order to set it up correctly you need to specify
# your system username you use to run GitLab # your system username you use to run GitLab
# user: YOUR_USERNAME # user: YOUR_USERNAME
pages: pages:
......
...@@ -71,7 +71,7 @@ Devise.setup do |config| ...@@ -71,7 +71,7 @@ Devise.setup do |config|
# a value less than 10 in other environments. # a value less than 10 in other environments.
config.stretches = Rails.env.test? ? 1 : 10 config.stretches = Rails.env.test? ? 1 : 10
# Setup a pepper to generate the encrypted password. # Set up a pepper to generate the encrypted password.
# config.pepper = "2ef62d549c4ff98a5d3e0ba211e72cff592060247e3bbbb9f499af1222f876f53d39b39b823132affb32858168c79c1d7741d26499901b63c6030a42129924ef" # config.pepper = "2ef62d549c4ff98a5d3e0ba211e72cff592060247e3bbbb9f499af1222f876f53d39b39b823132affb32858168c79c1d7741d26499901b63c6030a42129924ef"
# ==> Configuration for :confirmable # ==> Configuration for :confirmable
......
...@@ -102,7 +102,7 @@ module API ...@@ -102,7 +102,7 @@ module API
end end
optional :repository_checks_enabled, type: Boolean, desc: "GitLab will periodically run 'git fsck' in all project and wiki repositories to look for silent disk corruption issues." optional :repository_checks_enabled, type: Boolean, desc: "GitLab will periodically run 'git fsck' in all project and wiki repositories to look for silent disk corruption issues."
optional :repository_storages, type: Array[String], desc: 'Storage paths for new projects' optional :repository_storages, type: Array[String], desc: 'Storage paths for new projects'
optional :require_two_factor_authentication, type: Boolean, desc: 'Require all users to setup Two-factor authentication' optional :require_two_factor_authentication, type: Boolean, desc: 'Require all users to set up Two-factor authentication'
given require_two_factor_authentication: ->(val) { val } do given require_two_factor_authentication: ->(val) { val } do
requires :two_factor_grace_period, type: Integer, desc: 'Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication' requires :two_factor_grace_period, type: Integer, desc: 'Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication'
end end
......
...@@ -7,7 +7,7 @@ module SystemCheck ...@@ -7,7 +7,7 @@ module SystemCheck
if config if config
try_connect_imap try_connect_imap
else else
@error = "#{mail_room_config_path} does not have mailboxes setup" @error = "#{mail_room_config_path} does not have mailboxes set up"
false false
end end
end end
......
...@@ -86,7 +86,7 @@ namespace :gemojione do ...@@ -86,7 +86,7 @@ namespace :gemojione do
SPRITESHEET_WIDTH = 860 SPRITESHEET_WIDTH = 860
SPRITESHEET_HEIGHT = 840 SPRITESHEET_HEIGHT = 840
# Setup a map to rename image files # Set up a map to rename image files
emoji_unicode_string_to_name_map = {} emoji_unicode_string_to_name_map = {}
Gitlab::Emoji.emojis.each do |name, emoji_hash| Gitlab::Emoji.emojis.each do |name, emoji_hash|
# Ignore aliases # Ignore aliases
......
...@@ -36,7 +36,7 @@ module QA ...@@ -36,7 +36,7 @@ module QA
if @install_helm_tiller if @install_helm_tiller
Page::Project::Operations::Kubernetes::Show.perform do |page| Page::Project::Operations::Kubernetes::Show.perform do |page|
# We must wait a few seconds for permissions to be setup correctly for new cluster # We must wait a few seconds for permissions to be set up correctly for new cluster
sleep 10 sleep 10
# Helm must be installed before everything else # Helm must be installed before everything else
......
...@@ -160,7 +160,7 @@ describe 'Merge request > User sees merge widget', :js do ...@@ -160,7 +160,7 @@ describe 'Merge request > User sees merge widget', :js do
end end
end end
context 'view merge request where project has CI setup but no CI status' do context 'view merge request where project has CI set up but no CI status' do
before do before do
pipeline = create(:ci_pipeline, project: project, pipeline = create(:ci_pipeline, project: project,
sha: merge_request.diff_head_sha, sha: merge_request.diff_head_sha,
...@@ -178,7 +178,7 @@ describe 'Merge request > User sees merge widget', :js do ...@@ -178,7 +178,7 @@ describe 'Merge request > User sees merge widget', :js do
end end
end end
context 'view merge request in project with only-mwps setting enabled but no CI is setup' do context 'view merge request in project with only-mwps setting enabled but no CI is set up' do
before do before do
visit project_merge_request_path(project_only_mwps, merge_request_in_only_mwps_project) visit project_merge_request_path(project_only_mwps, merge_request_in_only_mwps_project)
end end
......
require 'spec_helper' require 'spec_helper'
describe 'Setup Mattermost slash commands', :js do describe 'Set up Mattermost slash commands', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:service) { project.create_mattermost_slash_commands_service } let(:service) { project.create_mattermost_slash_commands_service }
......
...@@ -3,14 +3,14 @@ require 'spec_helper' ...@@ -3,14 +3,14 @@ require 'spec_helper'
describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
def manage_two_factor_authentication def manage_two_factor_authentication
click_on 'Manage two-factor authentication' click_on 'Manage two-factor authentication'
expect(page).to have_content("Setup new U2F device") expect(page).to have_content("Set up new U2F device")
wait_for_requests wait_for_requests
end end
def register_u2f_device(u2f_device = nil, name: 'My device') def register_u2f_device(u2f_device = nil, name: 'My device')
u2f_device ||= FakeU2fDevice.new(page, name) u2f_device ||= FakeU2fDevice.new(page, name)
u2f_device.respond_to_u2f_registration u2f_device.respond_to_u2f_registration
click_on 'Setup new U2F device' click_on 'Set up new U2F device'
expect(page).to have_content('Your device was successfully set up') expect(page).to have_content('Your device was successfully set up')
fill_in "Pick a name", with: name fill_in "Pick a name", with: name
click_on 'Register U2F device' click_on 'Register U2F device'
...@@ -34,7 +34,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do ...@@ -34,7 +34,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
visit profile_account_path visit profile_account_path
click_on 'Enable two-factor authentication' click_on 'Enable two-factor authentication'
expect(page).to have_button('Setup new U2F device', disabled: true) expect(page).to have_button('Set up new U2F device', disabled: true)
end end
end end
...@@ -109,7 +109,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do ...@@ -109,7 +109,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
# Have the "u2f device" respond with bad data # Have the "u2f device" respond with bad data
page.execute_script("u2f.register = function(_,_,_,callback) { callback('bad response'); };") page.execute_script("u2f.register = function(_,_,_,callback) { callback('bad response'); };")
click_on 'Setup new U2F device' click_on 'Set up new U2F device'
expect(page).to have_content('Your device was successfully set up') expect(page).to have_content('Your device was successfully set up')
click_on 'Register U2F device' click_on 'Register U2F device'
...@@ -124,7 +124,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do ...@@ -124,7 +124,7 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
# Failed registration # Failed registration
page.execute_script("u2f.register = function(_,_,_,callback) { callback('bad response'); };") page.execute_script("u2f.register = function(_,_,_,callback) { callback('bad response'); };")
click_on 'Setup new U2F device' click_on 'Set up new U2F device'
expect(page).to have_content('Your device was successfully set up') expect(page).to have_content('Your device was successfully set up')
click_on 'Register U2F device' click_on 'Register U2F device'
expect(page).to have_content("The form contains the following error") expect(page).to have_content("The form contains the following error")
......
...@@ -11,7 +11,7 @@ describe('Modal store', () => { ...@@ -11,7 +11,7 @@ describe('Modal store', () => {
let issue2; let issue2;
beforeEach(() => { beforeEach(() => {
// Setup default state // Set up default state
Store.store.issues = []; Store.store.issues = [];
Store.store.selectedIssues = []; Store.store.selectedIssues = [];
......
...@@ -11,7 +11,7 @@ describe('Deploy keys app component', () => { ...@@ -11,7 +11,7 @@ describe('Deploy keys app component', () => {
let mock; let mock;
beforeEach((done) => { beforeEach((done) => {
// setup axios mock before component // set up axios mock before component
mock = new MockAdapter(axios); mock = new MockAdapter(axios);
mock.onGet(`${TEST_HOST}/dummy/`).replyOnce(200, data); mock.onGet(`${TEST_HOST}/dummy/`).replyOnce(200, data);
......
...@@ -12,7 +12,7 @@ describe('Sidebar Subscriptions', function () { ...@@ -12,7 +12,7 @@ describe('Sidebar Subscriptions', function () {
beforeEach(() => { beforeEach(() => {
SidebarSubscriptions = Vue.extend(sidebarSubscriptions); SidebarSubscriptions = Vue.extend(sidebarSubscriptions);
// Setup the stores, services, etc // Set up the stores, services, etc
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new SidebarMediator(Mock.mediator); new SidebarMediator(Mock.mediator);
}); });
......
...@@ -16,7 +16,7 @@ describe('U2FRegister', function () { ...@@ -16,7 +16,7 @@ describe('U2FRegister', function () {
it('allows registering a U2F device', () => { it('allows registering a U2F device', () => {
const setupButton = this.container.find('#js-setup-u2f-device'); const setupButton = this.container.find('#js-setup-u2f-device');
expect(setupButton.text()).toBe('Setup new U2F device'); expect(setupButton.text()).toBe('Set up new U2F device');
setupButton.trigger('click'); setupButton.trigger('click');
const inProgressMessage = this.container.children('p'); const inProgressMessage = this.container.children('p');
expect(inProgressMessage.text()).toContain('Trying to communicate with your device'); expect(inProgressMessage.text()).toContain('Trying to communicate with your device');
......
...@@ -82,7 +82,7 @@ describe Mattermost::Session, type: :request do ...@@ -82,7 +82,7 @@ describe Mattermost::Session, type: :request do
.to_return(headers: { Authorization: 'token thisworksnow' }, status: 200) .to_return(headers: { Authorization: 'token thisworksnow' }, status: 200)
end end
it 'can setup a session' do it 'can set up a session' do
subject.with_session do |session| subject.with_session do |session|
end end
...@@ -106,7 +106,7 @@ describe Mattermost::Session, type: :request do ...@@ -106,7 +106,7 @@ describe Mattermost::Session, type: :request do
expect_to_obtain_exclusive_lease(lease_key, 'uuid') expect_to_obtain_exclusive_lease(lease_key, 'uuid')
expect_to_cancel_exclusive_lease(lease_key, 'uuid') expect_to_cancel_exclusive_lease(lease_key, 'uuid')
# Cannot setup a session, but we should still cancel the lease # Cannot set up a session, but we should still cancel the lease
expect { subject.with_session }.to raise_error(Mattermost::NoSessionError) expect { subject.with_session }.to raise_error(Mattermost::NoSessionError)
end end
......
...@@ -412,7 +412,7 @@ describe ProjectPresenter do ...@@ -412,7 +412,7 @@ describe ProjectPresenter do
end end
describe '#koding_anchor_data' do describe '#koding_anchor_data' do
it 'returns link to setup Koding if user can push and no koding YML exists' do it 'returns link to set up Koding if user can push and no koding YML exists' do
project.add_developer(user) project.add_developer(user)
allow(project.repository).to receive(:koding_yml).and_return(nil) allow(project.repository).to receive(:koding_yml).and_return(nil)
allow(Gitlab::CurrentSettings).to receive(:koding_enabled?).and_return(true) allow(Gitlab::CurrentSettings).to receive(:koding_enabled?).and_return(true)
......
...@@ -85,7 +85,7 @@ module TestEnv ...@@ -85,7 +85,7 @@ module TestEnv
clean_test_path clean_test_path
# Setup GitLab shell for test instance # Set up GitLab shell for test instance
setup_gitlab_shell setup_gitlab_shell
setup_gitaly setup_gitaly
...@@ -367,7 +367,7 @@ module TestEnv ...@@ -367,7 +367,7 @@ module TestEnv
FileUtils.rm_rf(install_dir) FileUtils.rm_rf(install_dir)
exit 1 exit 1
ensure ensure
puts " #{component} setup in #{Time.now - start} seconds...\n" puts " #{component} set up in #{Time.now - start} seconds...\n"
end end
def ensure_component_dir_name_is_correct!(component, path) def ensure_component_dir_name_is_correct!(component, path)
......
# Lifted from: https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/ # Lifted from: https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/
# This file assumes an own GitLab CI runner, setup on a macOS system. # This file assumes an own GitLab CI runner, set up on a macOS system.
stages: stages:
- build - build
- archive - archive
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment