fixup! gitlab: 8.0.5 -> 8.5.0, service improvements

8.5.0 -> 8.5.1

+44 -32
+3 -1
pkgs/applications/version-management/gitlab/Gemfile
··· 218 gem 'net-ssh', '~> 3.0.1' 219 220 # Sentry integration 221 - gem 'sentry-raven' 222 223 # Metrics 224 group :metrics do ··· 302 group :production do 303 gem "gitlab_meta", '7.0' 304 end 305 306 gem 'octokit', '~> 3.8.0' 307
··· 218 gem 'net-ssh', '~> 3.0.1' 219 220 # Sentry integration 221 + gem 'sentry-raven', '~> 0.15' 222 223 # Metrics 224 group :metrics do ··· 302 group :production do 303 gem "gitlab_meta", '7.0' 304 end 305 + 306 + gem "newrelic_rpm", '~> 3.14' 307 308 gem 'octokit', '~> 3.8.0' 309
+4 -1
pkgs/applications/version-management/gitlab/Gemfile.lock
··· 481 net-ldap (0.12.1) 482 net-ssh (3.0.1) 483 netrc (0.11.0) 484 nokogiri (1.6.7.2) 485 mini_portile2 (~> 2.0.0.rc2) 486 nprogress-rails (0.1.6.7) ··· 724 activesupport (>= 3.1, < 4.3) 725 select2-rails (3.5.9.3) 726 thor (~> 0.14) 727 - sentry-raven (0.15.4) 728 faraday (>= 0.7.6) 729 settingslogic (2.0.9) 730 sexp_processor (4.6.0) ··· 963 nested_form (~> 0.3.2) 964 net-ssh (~> 3.0.1) 965 nokogiri (~> 1.6.7, >= 1.6.7.2) 966 nprogress-rails (~> 0.1.6.7) 967 oauth2 (~> 1.0.0) 968 octokit (~> 3.8.0) ··· 1010 sdoc (~> 0.3.20) 1011 seed-fu (~> 2.3.5) 1012 select2-rails (~> 3.5.9) 1013 sentry-raven 1014 settingslogic (~> 2.0.9) 1015 sham_rack
··· 481 net-ldap (0.12.1) 482 net-ssh (3.0.1) 483 netrc (0.11.0) 484 + newrelic_rpm (3.14.1.311) 485 nokogiri (1.6.7.2) 486 mini_portile2 (~> 2.0.0.rc2) 487 nprogress-rails (0.1.6.7) ··· 725 activesupport (>= 3.1, < 4.3) 726 select2-rails (3.5.9.3) 727 thor (~> 0.14) 728 + sentry-raven (0.15.6) 729 faraday (>= 0.7.6) 730 settingslogic (2.0.9) 731 sexp_processor (4.6.0) ··· 964 nested_form (~> 0.3.2) 965 net-ssh (~> 3.0.1) 966 nokogiri (~> 1.6.7, >= 1.6.7.2) 967 + newrelic_rpm (~> 3.14) 968 nprogress-rails (~> 0.1.6.7) 969 oauth2 (~> 1.0.0) 970 octokit (~> 3.8.0) ··· 1012 sdoc (~> 0.3.20) 1013 seed-fu (~> 2.3.5) 1014 select2-rails (~> 3.5.9) 1015 + sentry-raven (~> 0.15) 1016 sentry-raven 1017 settingslogic (~> 2.0.9) 1018 sham_rack
+2 -2
pkgs/applications/version-management/gitlab/default.nix
··· 24 25 stdenv.mkDerivation rec { 26 name = "gitlab-${version}"; 27 - version = "8.5.0"; 28 29 buildInputs = [ ruby bundler tzdata git nodejs procps ]; 30 ··· 32 owner = "gitlabhq"; 33 repo = "gitlabhq"; 34 rev = "v${version}"; 35 - sha256 = "1rhl906xnvpxkw3ngwfzi80cl3daihx5vizy04b9b39adyd3i5hl"; 36 }; 37 38 patches = [
··· 24 25 stdenv.mkDerivation rec { 26 name = "gitlab-${version}"; 27 + version = "8.5.1"; 28 29 buildInputs = [ ruby bundler tzdata git nodejs procps ]; 30 ··· 32 owner = "gitlabhq"; 33 repo = "gitlabhq"; 34 rev = "v${version}"; 35 + sha256 = "1pn5r4axzjkgdjr59y3wgxsd2n83zfd5bry1g2w4c2qw0wcw7zqb"; 36 }; 37 38 patches = [
+29 -21
pkgs/applications/version-management/gitlab/gemset.nix
··· 534 version = "2.0.9"; 535 }; 536 sentry-raven = { 537 source = { 538 - remotes = ["https://rubygems.org"]; 539 - sha256 = "1h0w2ip02zcd3krpddn54vssd7asnbj823r4mlzzqpp28q3r3mcm"; 540 type = "gem"; 541 }; 542 - version = "0.15.4"; 543 }; 544 select2-rails = { 545 dependencies = ["thor"]; ··· 612 version = "1.0.4"; 613 }; 614 rugged = { 615 - version = "0.24.0b13"; 616 source = { 617 - type = "gem"; 618 remotes = ["https://rubygems.org"]; 619 sha256 = "0v0cvdw8cgy1hf5h3cx796zpxhbad8d5cm50nykyhwjc00q80zrr"; 620 }; 621 }; 622 rufus-scheduler = { 623 source = { ··· 1324 version = "0.0.6"; 1325 }; 1326 omniauth = { 1327 - version = "1.3.1"; 1328 source = { 1329 - type = "gem"; 1330 remotes = ["https://rubygems.org"]; 1331 sha256 = "0vsqxgzkcfi10b7k6vpv3shmlphbs8grc29hznwl9s0i16n8962p"; 1332 }; 1333 }; 1334 octokit = { 1335 - version = "3.8.0"; 1336 source = { 1337 - type = "gem"; 1338 remotes = ["https://rubygems.org"]; 1339 sha256 = "0vmknh0vz1g734q32kgpxv0qwz9ifmnw2jfpd2w5rrk6xwq1k7a8"; 1340 }; 1341 }; 1342 oauth2 = { 1343 dependencies = ["faraday" "jwt" "multi_json" "multi_xml" "rack"]; ··· 1373 }; 1374 version = "1.6.7.2"; 1375 }; 1376 netrc = { 1377 source = { 1378 remotes = ["https://rubygems.org"]; ··· 1840 version = "7.0"; 1841 }; 1842 gitlab_git = { 1843 - version = "8.2.0"; 1844 source = { 1845 - type = "gem"; 1846 remotes = ["https://rubygems.org"]; 1847 sha256 = "0311dl4vh6h7k8xarmpr61fndrhbmfskzjzkkj1rr8321gn8znfv"; 1848 }; 1849 }; 1850 gitlab_emoji = { 1851 - version = "0.3.1"; 1852 source = { 1853 - type = "gem"; 1854 remotes = ["https://rubygems.org"]; 1855 sha256 = "1dy746icdmyc548mb5xkavvkn37pk7vv3gznx0p6hff325pan8dj"; 1856 }; 1857 }; 1858 gitlab-grit = { 1859 dependencies = ["charlock_holmes" "diff-lcs" "mime-types" "posix-spawn"]; ··· 1882 version = "1.3.3"; 1883 }; 1884 github-linguist = { 1885 - version = "4.7.5"; 1886 source = { 1887 - type = "gem"; 1888 remotes = ["https://rubygems.org"]; 1889 sha256 = "1xxm2lbabkc1xmx2myv56a4fkw3wwg9n8w2bzwrl4s33kf6x62ag"; 1890 }; 1891 }; 1892 gherkin-ruby = { 1893 source = { ··· 1906 version = "0.2.0"; 1907 }; 1908 gemojione = { 1909 - version = "2.2.1"; 1910 source = { 1911 - type = "gem"; 1912 remotes = ["https://rubygems.org"]; 1913 sha256 = "0av60lajn64z1csmkzfaf5wvpd3x48lcshiknkqr8m0zx3sg7w3h"; 1914 }; 1915 }; 1916 gemnasium-gitlab-service = { 1917 dependencies = ["rugged"]; ··· 2853 version = "2.6.10"; 2854 }; 2855 allocations = { 2856 - version = "1.0.4"; 2857 source = { 2858 - type = "gem"; 2859 remotes = ["https://rubygems.org"]; 2860 sha256 = "0iynf7gkbnbr5mgl2wgbgvxmjdiawh7ywwbnyjm94bj3pkybzgkc"; 2861 }; 2862 }; 2863 akismet = { 2864 - version = "2.0.0"; 2865 source = { 2866 - type = "gem"; 2867 remotes = ["https://rubygems.org"]; 2868 sha256 = "0hqpn25iyypkwkrqaibjm5nss5jmlkrddhia7frmz94prvyjr02w"; 2869 }; 2870 }; 2871 after_commit_queue = { 2872 dependencies = ["activerecord"];
··· 534 version = "2.0.9"; 535 }; 536 sentry-raven = { 537 + version = "0.15.6"; 538 source = { 539 type = "gem"; 540 + remotes = ["https://rubygems.org"]; 541 + sha256 = "0iqnwfmf6rnpgrvl3c8gh2gkix91nhm21j5qf389g4mi2rkc0ky8"; 542 }; 543 }; 544 select2-rails = { 545 dependencies = ["thor"]; ··· 612 version = "1.0.4"; 613 }; 614 rugged = { 615 source = { 616 remotes = ["https://rubygems.org"]; 617 sha256 = "0v0cvdw8cgy1hf5h3cx796zpxhbad8d5cm50nykyhwjc00q80zrr"; 618 + type = "gem"; 619 }; 620 + version = "0.24.0b13"; 621 }; 622 rufus-scheduler = { 623 source = { ··· 1324 version = "0.0.6"; 1325 }; 1326 omniauth = { 1327 source = { 1328 remotes = ["https://rubygems.org"]; 1329 sha256 = "0vsqxgzkcfi10b7k6vpv3shmlphbs8grc29hznwl9s0i16n8962p"; 1330 + type = "gem"; 1331 }; 1332 + version = "1.3.1"; 1333 }; 1334 octokit = { 1335 source = { 1336 remotes = ["https://rubygems.org"]; 1337 sha256 = "0vmknh0vz1g734q32kgpxv0qwz9ifmnw2jfpd2w5rrk6xwq1k7a8"; 1338 + type = "gem"; 1339 }; 1340 + version = "3.8.0"; 1341 }; 1342 oauth2 = { 1343 dependencies = ["faraday" "jwt" "multi_json" "multi_xml" "rack"]; ··· 1373 }; 1374 version = "1.6.7.2"; 1375 }; 1376 + newrelic_rpm = { 1377 + version = "3.14.1.311"; 1378 + source = { 1379 + type = "gem"; 1380 + remotes = ["https://rubygems.org"]; 1381 + sha256 = "155aj845rxn8ikcs15gphr8svnsrki8wzps794ddbi90h0ypr319"; 1382 + }; 1383 + }; 1384 netrc = { 1385 source = { 1386 remotes = ["https://rubygems.org"]; ··· 1848 version = "7.0"; 1849 }; 1850 gitlab_git = { 1851 source = { 1852 remotes = ["https://rubygems.org"]; 1853 sha256 = "0311dl4vh6h7k8xarmpr61fndrhbmfskzjzkkj1rr8321gn8znfv"; 1854 + type = "gem"; 1855 }; 1856 + version = "8.2.0"; 1857 }; 1858 gitlab_emoji = { 1859 source = { 1860 remotes = ["https://rubygems.org"]; 1861 sha256 = "1dy746icdmyc548mb5xkavvkn37pk7vv3gznx0p6hff325pan8dj"; 1862 + type = "gem"; 1863 }; 1864 + version = "0.3.1"; 1865 }; 1866 gitlab-grit = { 1867 dependencies = ["charlock_holmes" "diff-lcs" "mime-types" "posix-spawn"]; ··· 1890 version = "1.3.3"; 1891 }; 1892 github-linguist = { 1893 source = { 1894 remotes = ["https://rubygems.org"]; 1895 sha256 = "1xxm2lbabkc1xmx2myv56a4fkw3wwg9n8w2bzwrl4s33kf6x62ag"; 1896 + type = "gem"; 1897 }; 1898 + version = "4.7.5"; 1899 }; 1900 gherkin-ruby = { 1901 source = { ··· 1914 version = "0.2.0"; 1915 }; 1916 gemojione = { 1917 source = { 1918 remotes = ["https://rubygems.org"]; 1919 sha256 = "0av60lajn64z1csmkzfaf5wvpd3x48lcshiknkqr8m0zx3sg7w3h"; 1920 + type = "gem"; 1921 }; 1922 + version = "2.2.1"; 1923 }; 1924 gemnasium-gitlab-service = { 1925 dependencies = ["rugged"]; ··· 2861 version = "2.6.10"; 2862 }; 2863 allocations = { 2864 source = { 2865 remotes = ["https://rubygems.org"]; 2866 sha256 = "0iynf7gkbnbr5mgl2wgbgvxmjdiawh7ywwbnyjm94bj3pkybzgkc"; 2867 + type = "gem"; 2868 }; 2869 + version = "1.0.4"; 2870 }; 2871 akismet = { 2872 source = { 2873 remotes = ["https://rubygems.org"]; 2874 sha256 = "0hqpn25iyypkwkrqaibjm5nss5jmlkrddhia7frmz94prvyjr02w"; 2875 + type = "gem"; 2876 }; 2877 + version = "2.0.0"; 2878 }; 2879 after_commit_queue = { 2880 dependencies = ["activerecord"];
+6 -7
pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch
··· 18 config.action_mailer.raise_delivery_errors = true 19 20 diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example 21 - index 05f127d..1daef74 100644 22 --- a/config/gitlab.yml.example 23 +++ b/config/gitlab.yml.example 24 - @@ -423,7 +422,7 @@ production: &base 25 # CAUTION! 26 # Use the default values unless you really know what you are doing 27 git: ··· 30 # The next value is the maximum memory size grit can use 31 # Given in number of bytes per git object (e.g. a commit) 32 # This value can be increased if you have very large commits 33 - 34 diff --git a/lib/gitlab/logger.rb b/lib/gitlab/logger.rb 35 index 59b2114..4f4a39a 100644 36 --- a/lib/gitlab/logger.rb ··· 73 end 74 end 75 diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake 76 - index 81099cb..a40b1ad 100644 77 --- a/lib/tasks/gitlab/check.rake 78 +++ b/lib/tasks/gitlab/check.rake 79 @@ -223,7 +223,7 @@ namespace :gitlab do ··· 95 + unless File.directory?(uploads_dir) 96 puts "no".red 97 try_fixing_it( 98 - - "sudo -u #{gitlab_user} mkdir -m 750 #{Rails.root}/public/uploads" 99 - + "sudo -u #{gitlab_user} mkdir -m 750 #{uploads_dir}" 100 ) 101 for_more_information( 102 see_installation_guide_section "GitLab" ··· 108 + upload_path = File.realpath(Rails.root.join(uploads_dir)) 109 upload_path_tmp = File.join(upload_path, 'tmp') 110 111 - if File.stat(upload_path).mode == 040750
··· 18 config.action_mailer.raise_delivery_errors = true 19 20 diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example 21 + index 05f127d..6a4ae68 100644 22 --- a/config/gitlab.yml.example 23 +++ b/config/gitlab.yml.example 24 + @@ -423,7 +423,7 @@ production: &base 25 # CAUTION! 26 # Use the default values unless you really know what you are doing 27 git: ··· 30 # The next value is the maximum memory size grit can use 31 # Given in number of bytes per git object (e.g. a commit) 32 # This value can be increased if you have very large commits 33 diff --git a/lib/gitlab/logger.rb b/lib/gitlab/logger.rb 34 index 59b2114..4f4a39a 100644 35 --- a/lib/gitlab/logger.rb ··· 72 end 73 end 74 diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake 75 + index d59872d..0b8007f 100644 76 --- a/lib/tasks/gitlab/check.rake 77 +++ b/lib/tasks/gitlab/check.rake 78 @@ -223,7 +223,7 @@ namespace :gitlab do ··· 94 + unless File.directory?(uploads_dir) 95 puts "no".red 96 try_fixing_it( 97 + - "sudo -u #{gitlab_user} mkdir #{Rails.root}/public/uploads" 98 + + "sudo -u #{gitlab_user} mkdir #{uploads_dir}" 99 ) 100 for_more_information( 101 see_installation_guide_section "GitLab" ··· 107 + upload_path = File.realpath(Rails.root.join(uploads_dir)) 108 upload_path_tmp = File.join(upload_path, 'tmp') 109 110 + if File.stat(upload_path).mode == 040700