Commit b7297285369171c95b006e49d6da7bc84b969fc8
1 parent
e65cc4f8
Exists in
master
and in
4 other branches
uppercase Gitlab version and revision constants. check api return gitlab version now
Showing
5 changed files
with
10 additions
and
7 deletions
Show diff stats
.gitignore
| @@ -20,6 +20,7 @@ config/database.yml | @@ -20,6 +20,7 @@ config/database.yml | ||
| 20 | config/initializers/omniauth.rb | 20 | config/initializers/omniauth.rb |
| 21 | config/unicorn.rb | 21 | config/unicorn.rb |
| 22 | config/resque.yml | 22 | config/resque.yml |
| 23 | +config/aws.yml | ||
| 23 | db/data.yml | 24 | db/data.yml |
| 24 | .idea | 25 | .idea |
| 25 | .DS_Store | 26 | .DS_Store |
app/views/help/index.html.haml
config/initializers/2_app.rb
| 1 | module Gitlab | 1 | module Gitlab |
| 2 | - Version = File.read(Rails.root.join("VERSION")) | ||
| 3 | - Revision = `git log --pretty=format:'%h' -n 1` | 2 | + VERSION = File.read(Rails.root.join("VERSION")).strip |
| 3 | + REVISION = `git log --pretty=format:'%h' -n 1` | ||
| 4 | 4 | ||
| 5 | def self.config | 5 | def self.config |
| 6 | Settings | 6 | Settings |
lib/api/internal.rb
lib/tasks/gitlab/info.rake
| @@ -40,8 +40,8 @@ namespace :gitlab do | @@ -40,8 +40,8 @@ namespace :gitlab do | ||
| 40 | 40 | ||
| 41 | puts "" | 41 | puts "" |
| 42 | puts "GitLab information".yellow | 42 | puts "GitLab information".yellow |
| 43 | - puts "Version:\t#{Gitlab::Version}" | ||
| 44 | - puts "Revision:\t#{Gitlab::Revision}" | 43 | + puts "Version:\t#{Gitlab::VERSION}" |
| 44 | + puts "Revision:\t#{Gitlab::REVISION}" | ||
| 45 | puts "Directory:\t#{Rails.root}" | 45 | puts "Directory:\t#{Rails.root}" |
| 46 | puts "DB Adapter:\t#{database_adapter}" | 46 | puts "DB Adapter:\t#{database_adapter}" |
| 47 | puts "URL:\t\t#{Gitlab.config.gitlab.url}" | 47 | puts "URL:\t\t#{Gitlab.config.gitlab.url}" |