Commit c8359d528404cc0b605a523383b4bd5386c42fd8
1 parent
377749a2
Exists in
master
and in
28 other branches
ActionItem65: renaming file project_meta to noosfero
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@491 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
19 additions
and
19 deletions
Show diff stats
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +module Noosfero | ||
2 | + PROJECT = 'noosfero' | ||
3 | + VERSION = '0.2.0~alpha' | ||
4 | + SVN_ROOT = 'https://svn.colivre.coop.br/svn/noosfero' | ||
5 | + | ||
6 | + def self.controllers_in_directory(dir) | ||
7 | + Dir.glob(File.join(RAILS_ROOT, 'app', 'controllers', dir, '*_controller.rb')).map do |item| | ||
8 | + item.gsub(/^.*\/([^\/]+)_controller.rb$/, '\1') | ||
9 | + end | ||
10 | + end | ||
11 | + | ||
12 | + def self.pattern_for_controllers_in_directory(dir) | ||
13 | + disjunction = controllers_in_directory(dir).join('|') | ||
14 | + pattern = disjunction.blank? ? '' : (('(' + disjunction + ')')) | ||
15 | + Regexp.new(pattern) | ||
16 | + end | ||
17 | +end |
lib/project_meta.rb
@@ -1,17 +0,0 @@ | @@ -1,17 +0,0 @@ | ||
1 | -module Noosfero | ||
2 | - PROJECT = 'noosfero' | ||
3 | - VERSION = '0.2.0~alpha' | ||
4 | - SVN_ROOT = 'https://svn.colivre.coop.br/svn/noosfero' | ||
5 | - | ||
6 | - def self.controllers_in_directory(dir) | ||
7 | - Dir.glob(File.join(RAILS_ROOT, 'app', 'controllers', dir, '*_controller.rb')).map do |item| | ||
8 | - item.gsub(/^.*\/([^\/]+)_controller.rb$/, '\1') | ||
9 | - end | ||
10 | - end | ||
11 | - | ||
12 | - def self.pattern_for_controllers_in_directory(dir) | ||
13 | - disjunction = controllers_in_directory(dir).join('|') | ||
14 | - pattern = disjunction.blank? ? '' : (('(' + disjunction + ')')) | ||
15 | - Regexp.new(pattern) | ||
16 | - end | ||
17 | -end |
lib/tasks/gettext.rake
lib/tasks/package.rake