public
Description: RubiGen - generator framework for your framework
Homepage: http://rubigen.rubyforge.org
Clone URL: git://github.com/drnic/rubigen.git
* destination_path/root have File.expand_path applied to them to ensure
  base_name gives useful term
* generate/destroy set APP_ROOT with expand_path too



git-svn-id: svn+ssh://rubyforge.org/var/svn/rubigen/trunk@40 
bdf7f5a1-e071-427e-899e-064d0b0c9aa4
nicwilliams (author)
Wed Feb 20 04:08:14 -0800 2008
commit  15d23de29dddaabc8337f4c639ab66a7d0d754c0
tree    32af15de9e8188d5638c4b10b52cc28163ee4aaf
parent  d31e202c808b19993be0cfddb416639ff555e508
...
1
 
2
3
4
 
 
 
5
6
7
...
 
1
2
3
4
5
6
7
8
9
10
0
@@ -1,7 +1,10 @@
0
-== 1.2.1 2008-02-19 NOT RELEASED YET
0
+== 1.2.1 2008-02-19
0
 
0
 * Fixed rake post_news/email output bug ("\\n\\n")
0
 * removed bad \" from generator banner strings
0
+* destination_path/root have File.expand_path applied to them to ensure
0
+ base_name gives useful term
0
+* generate/destroy set APP_ROOT with expand_path too
0
   
0
 == 1.2.0 2008-02-14
0
 
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 #!/usr/bin/env ruby
0
-APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
0
 
0
 begin
0
   require 'rubigen'
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 #!/usr/bin/env ruby
0
-APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
0
 
0
 begin
0
   require 'rubigen'
...
103
104
105
 
106
107
108
...
145
146
147
148
 
149
150
151
...
103
104
105
106
107
108
109
...
146
147
148
 
149
150
151
152
0
@@ -103,6 +103,7 @@ module RubiGen
0
       elsif defined? ::APP_ROOT
0
         @destination_root = ::APP_ROOT
0
       end
0
+ @destination_root = File.expand_path(@destination_root)
0
 
0
       # Silence the logger if requested.
0
       logger.quiet = options[:quiet]
0
@@ -145,7 +146,7 @@ module RubiGen
0
     # Example for destination_root = '/dest':
0
     # destination_path('some/path.rb') == '/dest/some/path.rb'
0
     def destination_path(relative_destination)
0
- File.join(destination_root, relative_destination)
0
+ File.expand_path(File.join(destination_root, relative_destination))
0
     end
0
     
0
     # Return the basename of the destination_root,
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ module Rubigen #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 1
0
     MINOR = 2
0
- TINY = 0
0
+ TINY = 1
0
 
0
     STRING = [MAJOR, MINOR, TINY].join('.')
0
   end
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 #!/usr/bin/env ruby
0
-APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
0
 
0
 begin
0
   require 'rubigen'
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 #!/usr/bin/env ruby
0
-APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
0
 
0
 begin
0
   require 'rubigen'

Comments

    No one has commented yet.