Commit b55e22e277bd754d4ab89c046ccbe8f943730c8d

Authored by Jacob Vosmaer
2 parents 5e0e97ec cd19f82e

Merge pull request #4660 from jojosch/fix-typos

Fix typos
CHANGELOG
... ... @@ -4,7 +4,7 @@ v 6.0.0
4 4 - cache project graph
5 5 - Drop support of root namespaces
6 6 - Redesign project settings navigation
7   - - Restlyed login screen
  7 + - Restyled login screen
8 8 - Default theme is classic now
9 9 - Cache result of methods like authorize_projects, project.team.members etc
10 10 - Remove $.ready events
... ... @@ -48,7 +48,7 @@ v 5.3.0
48 48 - Api: added teams api
49 49 - Api: Prevent blob content being escaped
50 50 - Api: Smart deploy key add behaviour
51   - - Api: projets/owned.json return user owned project
  51 + - Api: projects/owned.json return user owned project
52 52 - Fix bug with team assignation on project from #4109
53 53 - Advanced snippets: public/private, project/personal (Andrew Kulakov)
54 54 - Repository Graphs (Karlo Nicholas T. Soriano)
... ... @@ -84,7 +84,7 @@ v 5.2.0
84 84 v 5.1.0
85 85 - You can login with email or username now
86 86 - Corrected project transfer rollback when repository cannot be moved
87   - - Move both repo and wiki when project transfer requrested
  87 + - Move both repo and wiki when project transfer requested
88 88 - Admin area: project editing was removed from admin namespace
89 89 - Access: admin user has now access to any project.
90 90 - Notification settings
... ... @@ -94,7 +94,7 @@ v 5.1.0
94 94 - Restyled Issues list. Show milestone version in issue row
95 95 - Restyled Merge Request list
96 96 - Backup now dump/restore uploads
97   - - Improved perfomance of dashboard (Andrew Kumanyaev)
  97 + - Improved performance of dashboard (Andrew Kumanyaev)
98 98 - File history now tracks renames (Akzhan Abdulin)
99 99 - Drop wiki migration tools
100 100 - Drop sqlite migration tools
... ... @@ -103,7 +103,7 @@ v 5.1.0
103 103 - Restyled network graph (Hiroyuki Sato)
104 104  
105 105 v 5.0.1
106   - - Fixed issue with gitlab-grit being overrided by grit
  106 + - Fixed issue with gitlab-grit being overridden by grit
107 107  
108 108 v 5.0.0
109 109 - Replaced gitolite with gitlab-shell
... ... @@ -123,7 +123,7 @@ v 5.0.0
123 123 - Update capybara, rspec-rails, poltergeist to recent versions
124 124 - Wiki on git using Gollum
125 125 - Added Solarized Dark theme for code review
126   - - Dont show user emails in autocomplete lists, profile pages
  126 + - Don't show user emails in autocomplete lists, profile pages
127 127 - Added settings tab for group, team, project
128 128 - Replace user popup with icons in header
129 129 - Handle project moving with gitlab-shell
... ... @@ -176,7 +176,7 @@ v 4.1.0
176 176  
177 177 v 4.0.0
178 178 - Remove project code and path from API. Use id instead
179   - - Return valid clonable url to repo for web hook
  179 + - Return valid cloneable url to repo for web hook
180 180 - Fixed backup issue
181 181 - Reorganized settings
182 182 - Fixed commits compare
... ... @@ -241,15 +241,15 @@ v 3.0.0
241 241 - Web Editor
242 242 - Fixed bug with gitolite keys
243 243 - UI improved
244   - - Increased perfomance of application
  244 + - Increased performance of application
245 245 - Show user avatar in last commit when browsing Files
246 246 - Refactored Gitlab::Merge
247   - - Use Font Awsome for icons
248   - - Separate observing of Note and MergeRequestsa
  247 + - Use Font Awesome for icons
  248 + - Separate observing of Note and MergeRequests
249 249 - Milestone "All Issues" filter
250 250 - Fix issue close and reopen button text and styles
251 251 - Fix forward/back while browsing Tree hierarchy
252   - - Show numer of notes for commits and merge requests
  252 + - Show number of notes for commits and merge requests
253 253 - Added support pg from box and update installation doc
254 254 - Reject ssh keys that break gitolite
255 255 - [API] list one project hook
... ... @@ -268,7 +268,7 @@ v 2.9.0
268 268 - added factory_girl
269 269 - restyled projects list on dashboard
270 270 - ssh keys validation to prevent gitolite crash
271   - - send notifications if changed premission in project
  271 + - send notifications if changed permission in project
272 272 - scss refactoring. gitlab_bootstrap/ dir
273 273 - fix git push http body bigger than 112k problem
274 274 - list of labels page under issues tab
... ... @@ -302,7 +302,7 @@ v 2.7.0
302 302 - System hooks
303 303 - UI improved
304 304 - Dashboard events endless scroll
305   - - Source perfomance increased
  305 + - Source performance increased
306 306  
307 307 v 2.6.0
308 308 - UI polished
... ... @@ -310,7 +310,7 @@ v 2.6.0
310 310 - Handle huge commits
311 311 - Last Push widget
312 312 - Bugfix
313   - - Better perfomance
  313 + - Better performance
314 314 - Email in resque
315 315 - Increased test coverage
316 316 - Ability to remove branch with MR accept
... ... @@ -331,7 +331,7 @@ v 2.4.0
331 331 - Bootstrap 2.0
332 332 - Responsive layout
333 333 - Big commits handling
334   - - Perfomance improved
  334 + - Performance improved
335 335 - Milestones
336 336  
337 337 v 2.3.1
... ... @@ -411,11 +411,11 @@ v 1.0.2
411 411 - added adv validation for project path & code
412 412 - feature: issues can be sortable
413 413 - bugfix
414   - - username dispalyed on top panel
  414 + - username displayed on top panel
415 415  
416 416 v 1.0.1
417 417 - fixed: with invalid source code for commit
418   - - fixed: lose branch/tag selection when use tree navigateion
  418 + - fixed: lose branch/tag selection when use tree navigation
419 419 - when history clicked - display path
420 420 - bug fix & code cleaning
421 421  
... ... @@ -432,11 +432,11 @@ v 0.9.4
432 432 - authorization improved
433 433 - html escaping
434 434 - bug fix
435   - - increassed test coverage
  435 + - increased test coverage
436 436 - design improvements
437 437  
438 438 v 0.9.1
439   - - increassed test coverage
  439 + - increased test coverage
440 440 - design improvements
441 441 - new issue email notification
442 442 - updated app name
... ... @@ -444,7 +444,7 @@ v 0.9.1
444 444 - issue can be edit
445 445  
446 446 v 0.8.0
447   - - sytax highlight for main file types
  447 + - syntax highlight for main file types
448 448 - redesign
449 449 - stability
450 450 - security fixes
... ...
app/assets/javascripts/notes.js
... ... @@ -177,7 +177,7 @@ var NoteList = {
177 177 var form = $(this).closest("form");
178 178 var row = form.closest("tr");
179 179  
180   - // show the reply button (will only work for replys)
  180 + // show the reply button (will only work for replies)
181 181 form.prev(".js-discussion-reply-button").show();
182 182  
183 183 if (row.is(".js-temp-notes-holder")) {
... ...
app/controllers/admin/users_controller.rb
... ... @@ -24,7 +24,7 @@ class Admin::UsersController < Admin::ApplicationController
24 24 if user.block
25 25 redirect_to :back, alert: "Successfully blocked"
26 26 else
27   - redirect_to :back, alert: "Error occured. User was not blocked"
  27 + redirect_to :back, alert: "Error occurred. User was not blocked"
28 28 end
29 29 end
30 30  
... ... @@ -32,7 +32,7 @@ class Admin::UsersController < Admin::ApplicationController
32 32 if user.activate
33 33 redirect_to :back, alert: "Successfully unblocked"
34 34 else
35   - redirect_to :back, alert: "Error occured. User was not unblocked"
  35 + redirect_to :back, alert: "Error occurred. User was not unblocked"
36 36 end
37 37 end
38 38  
... ...
app/controllers/projects/team_members_controller.rb
... ... @@ -49,7 +49,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
49 49 def apply_import
50 50 giver = Project.find(params[:source_project_id])
51 51 status = @project.team.import(giver)
52   - notice = status ? "Succesfully imported" : "Import failed"
  52 + notice = status ? "Successfully imported" : "Import failed"
53 53  
54 54 redirect_to project_team_index_path(project), notice: notice
55 55 end
... ...
app/helpers/application_helper.rb
... ... @@ -35,7 +35,7 @@ module ApplicationHelper
35 35 args.any? { |v| v.to_s.downcase == controller.controller_name }
36 36 end
37 37  
38   - # Check if a partcular action is the current one
  38 + # Check if a particular action is the current one
39 39 #
40 40 # args - One or more action names to check
41 41 #
... ...
app/models/namespace.rb
... ... @@ -73,7 +73,7 @@ class Namespace < ActiveRecord::Base
73 73 gitlab_shell.rm_satellites(path_was)
74 74 send_update_instructions
75 75 rescue
76   - # Returning false does not rolback after_* transaction but gives
  76 + # Returning false does not rollback after_* transaction but gives
77 77 # us information about failing some of tasks
78 78 false
79 79 end
... ...
app/models/network/graph.rb
... ... @@ -43,9 +43,9 @@ module Network
43 43  
44 44 # Method is adding time and space on the
45 45 # list of commits. As well as returns date list
46   - # corelated with time set on commits.
  46 + # correlated with time set on commits.
47 47 #
48   - # @return [Array<TimeDate>] list of commit dates corelated with time on commits
  48 + # @return [Array<TimeDate>] list of commit dates correlated with time on commits
49 49 def index_commits
50 50 days = []
51 51 @map = {}
... ...
app/models/project.rb
... ... @@ -432,7 +432,7 @@ class Project &lt; ActiveRecord::Base
432 432 gitlab_shell.rm_satellites(old_path_with_namespace)
433 433 send_move_instructions
434 434 rescue
435   - # Returning false does not rolback after_* transaction but gives
  435 + # Returning false does not rollback after_* transaction but gives
436 436 # us information about failing some of tasks
437 437 false
438 438 end
... ...
app/models/user.rb
... ... @@ -155,7 +155,7 @@ class User &lt; ActiveRecord::Base
155 155 # Class methods
156 156 #
157 157 class << self
158   - # Devise method overriden to allow sing in with email or username
  158 + # Devise method overridden to allow sing in with email or username
159 159 def find_for_database_authentication(warden_conditions)
160 160 conditions = warden_conditions.dup
161 161 if login = conditions.delete(:login)
... ...
app/models/wiki_page.rb
... ... @@ -143,7 +143,7 @@ class WikiPage
143 143 save :update_page, @page, content, format, message
144 144 end
145 145  
146   - # Destroys the WIki Page.
  146 + # Destroys the Wiki Page.
147 147 #
148 148 # Returns boolean True or False.
149 149 def delete
... ...
app/observers/activity_observer.rb
... ... @@ -8,7 +8,7 @@ class ActivityObserver &lt; BaseObserver
8 8 # Skip system status notes like 'status changed to close'
9 9 return true if record.note.include?("_Status changed to ")
10 10  
11   - # Skip wall notes to prevent spaming of dashboard
  11 + # Skip wall notes to prevent spamming of dashboard
12 12 return true if record.noteable_type.blank?
13 13 end
14 14  
... ...
app/services/notification_service.rb
1 1 # NotificationService class
2 2 #
3   -# Used for notifing users with emails about different events
  3 +# Used for notifying users with emails about different events
4 4 #
5 5 # Ex.
6 6 # NotificationService.new.new_issue(issue, current_user)
... ... @@ -90,7 +90,7 @@ class NotificationService
90 90  
91 91 # Notify new user with email after creation
92 92 def new_user(user)
93   - # Dont email omniauth created users
  93 + # Don't email omniauth created users
94 94 mailer.new_user_email(user.id, user.password) unless user.extern_uid?
95 95 end
96 96  
... ...
app/views/help/public_access.html.haml
... ... @@ -3,7 +3,7 @@
3 3  
4 4 %p
5 5 GitLab allows you to open selected projects to be accessed publicly.
6   - These projects will be clonable
  6 + These projects will be cloneable
7 7 %em without any
8 8 authentication.
9 9 Also they will be listed on the #{link_to "public access directory", public_root_path}.
... ...
app/views/projects/compare/show.html.haml
... ... @@ -9,7 +9,7 @@
9 9 .alert.alert-block
10 10 %p
11 11 %strong Warning! This comparison include 100+ commits.
12   - %p To prevent performance issue we dont show diff information.
  12 + %p To prevent performance issue we don't show diff information.
13 13  
14 14 - if @commits.present?
15 15 %div.ui-box
... ...
app/views/projects/new.html.haml
... ... @@ -28,7 +28,7 @@
28 28 .input
29 29 = f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git'
30 30 .light
31   - URL must be clonable
  31 + URL must be cloneable
32 32  
33 33 %p.padded
34 34 New projects are private by default. You choose who can see the project and commit to repository.
... ...
app/views/projects/wikis/_new.html.haml
... ... @@ -7,6 +7,6 @@
7 7 %span Page slug
8 8 = text_field_tag :new_wiki_path, nil, placeholder: 'how-to-setup', class: 'input-xlarge', required: true, :'data-wikis-path' => project_wikis_path(@project)
9 9 %p.hint
10   - Please dont use spaces and slashes
  10 + Please don't use spaces and slashes
11 11 .modal-footer
12 12 = link_to 'Build', '#', class: 'build-new-wiki btn btn-create'
... ...
doc/api/issues.md
1 1 ## List issues
2 2  
3   -Get all issues created by authenticed user. This function takes pagination parameters
  3 +Get all issues created by authenticated user. This function takes pagination parameters
4 4 `page` and `per_page` to restrict the list of issues.
5 5  
6 6 ```
... ...
doc/api/projects.md
... ... @@ -193,7 +193,7 @@ Parameters:
193 193  
194 194 **Project access levels**
195 195  
196   -The project access levels are defined in the `user_project.rb` class. Currently, these levels are recoginized:
  196 +The project access levels are defined in the `user_project.rb` class. Currently, these levels are recognized:
197 197  
198 198 ```
199 199 GUEST = 10
... ...
doc/api/users.md
... ... @@ -123,7 +123,7 @@ Parameters:
123 123 + `bio` - User's bio
124 124  
125 125 Note, at the moment this method does only return a 404 error, even in cases where a 409 (Conflict) would
126   -be more appropriate, e.g. when renaming the email address to some exsisting one.
  126 +be more appropriate, e.g. when renaming the email address to some existing one.
127 127  
128 128  
129 129 ## User deletion
... ...
doc/make_release.md
... ... @@ -8,7 +8,7 @@ NOTE: This is a developer guide. If you are trying to install GitLab see the lat
8 8  
9 9 ### From x.x to x.x
10 10  
11   -#### 0. Any major changes? Database updates? Web server change? File strucuture changes?
  11 +#### 0. Any major changes? Database updates? Web server change? File structure changes?
12 12  
13 13 #### 1. Make backup
14 14  
... ...
doc/update/4.0-to-4.1.md
... ... @@ -37,7 +37,7 @@ sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
37 37 # backup old one
38 38 sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old
39 39  
40   -# get new one usign sidekiq
  40 +# get new one using sidekiq
41 41 sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
42 42 sudo chmod +x /etc/init.d/gitlab
43 43  
... ...
doc/update/4.2-to-5.0.md
... ... @@ -2,7 +2,7 @@
2 2  
3 3 ## Important changes
4 4  
5   -* We dont use `gitlab` user any more. Everything will be moved to `git` user
  5 +* We don't use `gitlab` user any more. Everything will be moved to `git` user
6 6 * __requires ruby1.9.3__
7 7  
8 8  
... ... @@ -126,7 +126,7 @@ sudo service nginx restart
126 126  
127 127 ```
128 128  
129   -__7. Start gitlab instace__
  129 +__7. Start gitlab instance__
130 130  
131 131 ```
132 132  
... ...
lib/gitlab/backend/shell.rb
... ... @@ -142,7 +142,7 @@ module Gitlab
142 142 # Remove all ssh keys from gitlab shell
143 143 #
144 144 # Ex.
145   - # remmove_all_keys
  145 + # remove_all_keys
146 146 #
147 147 def remove_all_keys
148 148 system "#{gitlab_shell_user_home}/gitlab-shell/bin/gitlab-keys", "clear"
... ...
lib/gitlab/backend/shell_env.rb
1 1 module Gitlab
2 2 # This module provide 2 methods
3   - # to set specific ENV variabled for GitLab Shell
  3 + # to set specific ENV variables for GitLab Shell
4 4 module ShellEnv
5 5 extend self
6 6  
... ...
lib/gitlab/satellite/satellite.rb
... ... @@ -116,7 +116,7 @@ module Gitlab
116 116 repo.git.fetch({timeout: true}, :origin)
117 117 end
118 118  
119   - # Create directory for stroing
  119 + # Create directory for storing
120 120 # satellites lock files
121 121 def create_locks_dir
122 122 FileUtils.mkdir_p(lock_files_dir)
... ...
lib/tasks/gitlab/cleanup.rake
... ... @@ -43,7 +43,7 @@ namespace :gitlab do
43 43 end
44 44 end
45 45  
46   - desc "GITLAB | Cleanup | Clean respositories"
  46 + desc "GITLAB | Cleanup | Clean repositories"
47 47 task repos: :environment do
48 48 warn_user_is_not_gitlab
49 49 remove_flag = ENV['REMOVE']
... ...
lib/tasks/gitlab/enable_namespaces.rake
... ... @@ -42,7 +42,7 @@ namespace :gitlab do
42 42 username = user.email.match(/^[^@]*/)[0]
43 43 username.gsub!("+", ".")
44 44  
45   - # return username if no mathes
  45 + # return username if no matches
46 46 return username unless User.find_by_username(username)
47 47  
48 48 # look for same username
... ...
lib/tasks/gitlab/task_helpers.rake
... ... @@ -55,7 +55,7 @@ namespace :gitlab do
55 55 # Runs the given command and matches the output against the given pattern
56 56 #
57 57 # Returns nil if nothing matched
58   - # Retunrs the MatchData if the pattern matched
  58 + # Returns the MatchData if the pattern matched
59 59 #
60 60 # see also #run
61 61 # see also String#match
... ...
lib/tasks/migrate/migrate_groups.rake
1   -desc "GITLAB | Migrate Gropus to match v6.0"
  1 +desc "GITLAB | Migrate Groups to match v6.0"
2 2 task migrate_groups: :environment do
3 3 puts "This will add group owners to group membership"
4 4 ask_to_continue
... ...
spec/helpers/gitlab_markdown_helper_spec.rb
... ... @@ -287,7 +287,7 @@ describe GitlabMarkdownHelper do
287 287 gfm(":invalid-emoji:").should_not match(/<img/)
288 288 end
289 289  
290   - it "should work independet of reference links (i.e. without @project being set)" do
  290 + it "should work independent of reference links (i.e. without @project being set)" do
291 291 @project = nil
292 292 gfm(":+1:").should match(/<img/)
293 293 end
... ...
spec/lib/auth_spec.rb
... ... @@ -36,7 +36,7 @@ describe Gitlab::Auth do
36 36 end
37 37  
38 38  
39   - it "should create from auth if user doesnot exist"do
  39 + it "should create from auth if user does not exist"do
40 40 User.stub find_by_extern_uid_and_provider: nil
41 41 User.stub find_by_email: nil
42 42 gl_auth.should_receive :create_from_omniauth
... ...
spec/models/issue_spec.rb
... ... @@ -45,7 +45,7 @@ describe Issue do
45 45 end
46 46  
47 47 describe '#is_being_reassigned?' do
48   - it 'returnes issues assigned to user' do
  48 + it 'returns issues assigned to user' do
49 49 user = create :user
50 50  
51 51 2.times do
... ...
spec/models/milestone_spec.rb
... ... @@ -127,11 +127,11 @@ describe Milestone do
127 127 issue = create :issue
128 128 end
129 129  
130   - it 'should be true if milestone active and all nestied issues closed' do
  130 + it 'should be true if milestone active and all nested issues closed' do
131 131 milestone.can_be_closed?.should be_true
132 132 end
133 133  
134   - it 'should be false if milestone active and not all nestied issues closed' do
  134 + it 'should be false if milestone active and not all nested issues closed' do
135 135 issue.milestone = milestone
136 136 issue.save
137 137  
... ...
spec/models/namespace_spec.rb
... ... @@ -59,7 +59,7 @@ describe Namespace do
59 59 @namespace.stub(path_changed?: true)
60 60 end
61 61  
62   - it "should raise error when dirtory exists" do
  62 + it "should raise error when directory exists" do
63 63 expect { @namespace.move_dir }.to raise_error("namespace directory cannot be moved")
64 64 end
65 65  
... ...
spec/models/project_spec.rb
... ... @@ -235,7 +235,7 @@ describe Project do
235 235 project.can_have_issues_tracker_id?.should be_false
236 236 end
237 237  
238   - it "should be always false if issues disbled" do
  238 + it "should be always false if issues disabled" do
239 239 project.issues_enabled = false
240 240 ext_project.issues_enabled = false
241 241  
... ...
spec/requests/api/users_spec.rb
... ... @@ -247,7 +247,7 @@ describe API::API do
247 247 end
248 248  
249 249 describe "GET /user/keys/:id" do
250   - it "should returm single key" do
  250 + it "should return single key" do
251 251 user.keys << key
252 252 user.save
253 253 get api("/user/keys/#{key.id}", user)
... ...
spec/support/select2_helper.rb
1   -# Select2 ajax programatic helper
  1 +# Select2 ajax programmatic helper
2 2 # It allows you to select value from select2
3 3 #
4 4 # Params
... ...
spec/tasks/gitlab/backup_rake_spec.rb
... ... @@ -30,7 +30,7 @@ describe &#39;gitlab:app namespace rake task&#39; do
30 30  
31 31 let(:gitlab_version) { %x{git rev-parse HEAD}.gsub(/\n/,"") }
32 32  
33   - it 'should fail on mismach' do
  33 + it 'should fail on mismatch' do
34 34 YAML.stub load_file: {gitlab_version: gitlab_version.reverse}
35 35 expect { run_rake_task }.to raise_error SystemExit
36 36 end
... ...