noosfero | 2 new commits pushed to repository
Antonio Terceiro
gitlab at gitlab.com
Tue Feb 3 12:07:00 BRST 2015
Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/ba1b25b93c0e69312b1c720ee4149d7dbc3d4f7a">ba1b25b9</a> by Antonio Terceiro
Noosfero::VERSION: use git data when available
For code in development, this produces version numbers like
"1.0-119-g124a746", which is useful when running from git. Those
running Noosfero forks can even make their own tags and get version
numbers like "1.0+vendor1".
- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/601aaddf98d6a67062610fbf9ce30e2e1c76bc29">601aaddf</a> by Antonio Terceiro
Merge branch 'git-version' into 'master'
Use git information in Noosfero::VERSION
the commit message is self-explanatory
See merge request !435
- - - - -
Changes:
=====================================
lib/noosfero/version.rb
=====================================
--- a/lib/noosfero/version.rb
+++ b/lib/noosfero/version.rb
@@ -2,3 +2,7 @@ module Noosfero
PROJECT = 'noosfero'
VERSION = '1.0'
end
+
+if File.exist?(File.join(Rails.root, '.git'))
+ Noosfero::VERSION.clear << Dir.chdir(Rails.root) { `git describe --tags`.strip }
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150203/542451be/attachment.html>
More information about the Noosfero-dev
mailing list