Commit 173fc0716e38f4ddb72dd5c65695cc0efae93ad9
Exists in
master
and in
27 other branches
Merge remote-tracking branch 'origin/master'
Showing
9 changed files
with
41 additions
and
23 deletions
Show diff stats
AUTHORS.md
| ... | ... | @@ -127,12 +127,14 @@ Eduardo Tourinho Edington <eduardo.edington@serpro.gov.br> |
| 127 | 127 | Evandro Jr <evandrojr@gmail.com> |
| 128 | 128 | Evandro Junior <evandrojr@gmail.com> |
| 129 | 129 | Fabio Teixeira <fabio1079@gmail.com> |
| 130 | +FAMMA TV NOTICIAS MEDIOS DE CO <revistafammatvmusic.oficial@gmail.com> | |
| 130 | 131 | Fernanda Lopes <nanda.listas+psl@gmail.com> |
| 131 | 132 | Francisco Marcelo A. Lima Júnior <francisco.lima-junior@serpro.gov.br> |
| 132 | 133 | Francisco Marcelo de Araujo Lima Junior <79350259591@serpro-1457614.(none)> |
| 133 | 134 | Francisco Marcelo de Araújo Lima Júnior <francisco.lima-junior@serpro.gov.br> |
| 134 | 135 | Francisco Marcelo de Araújo Lima Júnior <maljunior@gmail.com> |
| 135 | 136 | Gabriela Navarro <navarro1703@gmail.com> |
| 137 | +Gonzalo Exequiel Pedone <hipersayan.x@gmail.com> | |
| 136 | 138 | Grazieno Pellegrino <grazieno@gmail.com> |
| 137 | 139 | Gust <darksshades@hotmail.com> |
| 138 | 140 | Hebert Douglas <hebertdougl@gmail.com> |
| ... | ... | @@ -200,10 +202,12 @@ Marcos <marcos.rpj2@gmail.com> |
| 200 | 202 | Marcos Ramos <ms.ramos@outlook.com> |
| 201 | 203 | Martín Olivera <molivera@solar.org.ar> |
| 202 | 204 | Maurilio Atila <cabelotaina@gmail.com> |
| 205 | +M for Momo <mo@rtnp.org> | |
| 203 | 206 | Michal Čihař <michal@cihar.com> |
| 204 | 207 | Moises Machado <moises@colivre.coop.br> |
| 205 | 208 | Naíla Alves <naila@colivre.coop.br> |
| 206 | 209 | Nanda Lopes <nanda.listas+psl@gmail.com> |
| 210 | +Niemand Jedermann <predatorix@web.de> | |
| 207 | 211 | Parley Martins <parleypachecomartins@gmail.com> |
| 208 | 212 | Paulo Meirelles + Alessandro Palmeira + João M. M. da Silva <paulo@softwarelivre.org> |
| 209 | 213 | Paulo Meirelles + Alessandro Palmeira <paulo@softwarelivre.org> |
| ... | ... | @@ -244,6 +248,7 @@ Tallys Martins <tallysmartins@yahoo.com.br> |
| 244 | 248 | tallys <tallys@tallys> |
| 245 | 249 | tallys <tallys@tallys.(none)> |
| 246 | 250 | Thiago Zoroastro <thiago.zoroastro@bol.com.br> |
| 251 | +Tuux <tuxa@galaxie.eu.org> | |
| 247 | 252 | Valessio Brito <contato@valessiobrito.com.br> |
| 248 | 253 | Valessio Brito <contato@valessiobrito.info> |
| 249 | 254 | Valessio Brito <valessio@gmail.com> | ... | ... |
| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | +# This Rakefile is intentionally independent from Rails to it can be used to | |
| 2 | +# handle release-related tasks without having to load the entire Rails | |
| 3 | +# environment (which is slow, requires a database connection and several other | |
| 4 | +# inconveniences). | |
| 5 | + | |
| 6 | +$: << 'lib' | |
| 7 | +require 'noosfero' | |
| 8 | +require 'noosfero/version' | |
| 9 | + | |
| 10 | +load 'lib/tasks/gettext.rake' | |
| 11 | +load 'lib/tasks/doc.rake' | |
| 12 | +load 'lib/tasks/error_messages.rake' | |
| 13 | +load 'lib/tasks/translation.rake' | |
| 14 | + | |
| 15 | +load 'lib/tasks/package.rake' | |
| 16 | +load 'lib/tasks/release.rake' | |
| 17 | + | |
| 18 | +task :default => 'noosfero:translations:compile' | ... | ... |
Rakefile.translations
| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | -# This Rakefile is intentionally independent from Rails to it can be used to | |
| 2 | -# handle translations without having to load the entire Rails environment | |
| 3 | -# (which is slow, requires a database connection and several other | |
| 4 | -# inconveniences). | |
| 5 | - | |
| 6 | -$: << 'lib' | |
| 7 | -load 'lib/tasks/gettext.rake' | |
| 8 | -load 'lib/tasks/doc.rake' | |
| 9 | -load 'lib/tasks/translation.rake' | |
| 10 | - | |
| 11 | -task :default => 'noosfero:translations:compile' |
debian/changelog
debian/rules
lib/noosfero/version.rb
| 1 | 1 | module Noosfero |
| 2 | 2 | PROJECT = 'noosfero' |
| 3 | - VERSION = '1.1~rc1' | |
| 3 | + VERSION = '1.1~rc2' | |
| 4 | 4 | end |
| 5 | 5 | |
| 6 | 6 | root = File.expand_path(File.dirname(__FILE__) + '/../..') |
| 7 | 7 | if File.exist?(File.join(root, '.git')) |
| 8 | - Noosfero::VERSION.clear << Dir.chdir(root) { `git describe --tags`.strip } | |
| 8 | + Noosfero::VERSION.clear << Dir.chdir(root) { `git describe --tags`.strip.sub('-rc', '~rc') } | |
| 9 | 9 | end | ... | ... |
lib/tasks/error_messages.rake
| 1 | -templates = Dir.glob(Rails.root.join('public', '*.html.erb')) | |
| 1 | +root = Pathname(File.dirname(__FILE__)).join('../../').expand_path | |
| 2 | +templates = Dir.glob(root.join('public', '*.html.erb')) | |
| 2 | 3 | targets = [] |
| 3 | 4 | templates.each do |template| |
| 4 | 5 | target = template.gsub(/.erb$/, '') |
| ... | ... | @@ -16,6 +17,6 @@ end |
| 16 | 17 | namespace :noosfero do |
| 17 | 18 | namespace 'error-pages' do |
| 18 | 19 | desc 'Translates Noosfero error pages' |
| 19 | - task :translate => [:environment] + targets | |
| 20 | + task :translate => targets | |
| 20 | 21 | end |
| 21 | 22 | end | ... | ... |
lib/tasks/package.rake
lib/tasks/release.rake
| 1 | 1 | # encoding: UTF-8 |
| 2 | 2 | |
| 3 | -require 'noosfero/version' | |
| 4 | 3 | $version = Noosfero::VERSION |
| 5 | 4 | |
| 6 | 5 | namespace :noosfero do |
| ... | ... | @@ -132,13 +131,13 @@ EOF |
| 132 | 131 | |
| 133 | 132 | if target =~ /-test$/ |
| 134 | 133 | if new_version =~ /~rc\d+/ |
| 135 | - new_version.sub!(/\~rc([0-9]+)/) { "~rc#{$1.to_i + 1}" } | |
| 134 | + new_version.sub!(/\~rc([0-9]+).*/) { "~rc#{$1.to_i + 1}" } | |
| 136 | 135 | else |
| 137 | 136 | new_version += '~rc1' |
| 138 | 137 | end |
| 139 | 138 | else |
| 140 | - if new_version =~ /~rc\d+/ | |
| 141 | - new_version.sub!(/~rc[0-9]+/, '') | |
| 139 | + if new_version =~ /~rc\d+.*/ | |
| 140 | + new_version.sub!(/~rc[0-9]+.*/, '') | |
| 142 | 141 | else |
| 143 | 142 | components = new_version.split('.').map(&:to_i) |
| 144 | 143 | if components.size < 3 |
| ... | ... | @@ -158,9 +157,10 @@ EOF |
| 158 | 157 | sh "sed -i \"s/VERSION = '[^']*'/VERSION = '#{new_version}'/\" lib/noosfero/version.rb" |
| 159 | 158 | ENV['DEBFULLNAME'] ||= `git config user.name`.strip |
| 160 | 159 | ENV['DEBEMAIL'] ||= `git config user.email`.strip |
| 161 | - sh "dch --newversion #{new_version} --distribution #{target} --force-distribution '#{release_message}'" | |
| 160 | + distribution = `dpkg-parsechangelog | sed '/Distribution:/!d; s/^.*:\s*//'`.strip | |
| 161 | + sh "dch --newversion #{new_version} --distribution #{distribution} --force-distribution '#{release_message}'" | |
| 162 | 162 | |
| 163 | - sh 'git diff debian/changelog lib/noosfero/version.rb' | |
| 163 | + sh 'git diff --color debian/changelog lib/noosfero/version.rb' | |
| 164 | 164 | if confirm("Commit version bump to #{new_version} on #{target} distribution") |
| 165 | 165 | sh 'git add debian/changelog lib/noosfero/version.rb' |
| 166 | 166 | sh "git commit -m 'Bumping version #{new_version}'" | ... | ... |