Fix missing links and incorrect display of issue numbers for notes, comments, and merge requests
Updated the spring gem and fixed the guard file

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Use a ? after the $request_uri to perform a valid Redirect while cloning.

fixes #6203

before:

❯ curl -I http://gitlab/namespace/repo.git/info/refs?service=git-upload-pack
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 26 Jul 2014 18:20:27 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://gitlab/namespace/repo.git/info/refs?service=git-upload-pack?service=git-upload-pack

after:

❯ curl -I http://gitlab/namespace/repo.git/info/refs\?service=git-upload-pack
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 26 Jul 2014 18:23:54 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://gitlab/namespace/repo.git/info/refs?service=git-upload-pack

[ci skip]
Enable highlighting for blame

Fixes #3675

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Configure Redis cache for all environments

Also add support for connecting to Redis with Unix sockets.
Store sessions in a Redis namespace

This makes less of a mess of the Redis root.
Remove HAML eval for const strings.
Search results libraries added

Gitlab::SearchResults and Gitlab::ProjectSearchResults are libraries we
are going to use to get search results based on query, enitity type and
pagination.

It will allow us to get only issues from project #23 where title or
description includes 'foo'.

Ex:

search_results = Gitlab::ProjectSearchResults.new(project.id, 'foo', 'issues')

search_results.objects => # [<Issues #23>, <Issues #34>]
search_results.issues_count => 2
search_results.total_count => 12 (it includes results from comments and
merge requests too)

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Add search method to Note class

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Pass scope and page to Gitlab::SearchResults#objects instead of initialize

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diff headers made sticky.
Implement search page with filtering of results and pagination

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Improve search tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Added a checkbox to toggle line wrapping in diff.
Save search options when switch between filter

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Improve comment search results

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Search by issue/mr title and description

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Skip description if not exist

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Forgot to save file :)

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>