public
Description: Tradução do livro Why's (Poignant) Guide to Ruby para português.
Homepage: http://poignantguide.net/ruby/
Clone URL: git://github.com/carlosbrando/poignant-br.git
Rakefile
carlosbrando (author)
Tue Jul 01 21:37:36 -0700 2008
commit  1fdc6c629b57e4a420c186be0ee5ffdc0ab232d3
tree    d03f8ddcfcec7ed11a3f270a3842b73dfa8b25a9
parent  fa4e96b4e3fce3098f76901e74c30d48d6c93a46
...
1
2
3
 
 
 
4
5
6
...
49
50
51
52
53
54
 
 
 
55
56
57
58
59
 
60
61
62
63
64
 
65
66
67
...
 
 
 
1
2
3
4
5
6
...
49
50
51
 
 
 
52
53
54
55
56
57
58
 
59
60
61
62
63
 
64
65
66
67
0
@@ -1,6 +1,6 @@
0
-LANGUAGES= FileList['lang-*'].map do |file|
0
- file.gsub(/lang-(\w+)/,'\1')
0
- end
0
+LANGUAGES = FileList['lang-*'].map do |file|
0
+ file.gsub(/lang-(\w+)/,'\1')
0
+end
0
 
0
 desc "List all known localizations"
0
 task :localizations do
0
@@ -49,19 +49,19 @@ task :info do
0
 end
0
 
0
 def generate_for( language , path)
0
- target = File.join( path, language )
0
- puts "About to generate for #{language} in #{target}"
0
- sh "ruby scripts/poignant.rb #{target} #{language}"
0
+ target = File.join( path, language )
0
+ puts "About to generate for #{language} in #{target}"
0
+ sh "ruby scripts/poignant.rb #{target} #{language}"
0
 end
0
 
0
 desc "Combina os trechos do poignant em um único arquivo"
0
 task :merge_pt do
0
- File.open('lang-pt/poignant.yml', 'w') do |output|
0
+ File.open('lang-pt/poignant.yml', "w") do |output|
0
     files = Dir["lang-pt/*.yml"]
0
     files -= %w[lang-pt/localization.yml lang-pt/poignant.yml]
0
     files.sort!
0
     files.each do |ind|
0
- output.write File.read(ind)
0
+ output.write(File.read(ind))
0
     end
0
   end
0
 end

Comments

    No one has commented yet.