rubigen 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ == 1.2.1 2008-02-19
2
+
3
+ * Fixed rake post_news/email output bug ("\\n\\n")
4
+ * removed bad \" from generator banner strings
5
+ * destination_path/root have File.expand_path applied to them to ensure
6
+ base_name gives useful term
7
+ * generate/destroy set APP_ROOT with expand_path too
8
+
1
9
  == 1.2.0 2008-02-14
2
10
 
3
11
  * application_generator's bin now looks for generator within local source, not
data/config/hoe.rb CHANGED
@@ -61,7 +61,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
61
61
  p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
62
62
 
63
63
  # == Optional
64
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
64
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
65
65
  p.extra_deps = [ ['activesupport', '>= 1.4.4'] ] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
66
66
 
67
67
  #p.spec_extras = {} # A hash of extra values to set in the gemspec.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
3
 
4
4
  begin
5
5
  require 'rubigen'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
3
 
4
4
  begin
5
5
  require 'rubigen'
data/lib/rubigen/base.rb CHANGED
@@ -103,6 +103,7 @@ module RubiGen
103
103
  elsif defined? ::APP_ROOT
104
104
  @destination_root = ::APP_ROOT
105
105
  end
106
+ @destination_root = File.expand_path(@destination_root)
106
107
 
107
108
  # Silence the logger if requested.
108
109
  logger.quiet = options[:quiet]
@@ -145,7 +146,7 @@ module RubiGen
145
146
  # Example for destination_root = '/dest':
146
147
  # destination_path('some/path.rb') == '/dest/some/path.rb'
147
148
  def destination_path(relative_destination)
148
- File.join(destination_root, relative_destination)
149
+ File.expand_path(File.join(destination_root, relative_destination))
149
150
  end
150
151
 
151
152
  # Return the basename of the destination_root,
@@ -2,7 +2,7 @@ module Rubigen #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -35,7 +35,7 @@ class <%= class_name %> < RubiGen::Base
35
35
  <<-EOS
36
36
  Creates a ...
37
37
 
38
- USAGE: #{spec.name} name"
38
+ USAGE: #{spec.name} name
39
39
  EOS
40
40
  end
41
41
 
@@ -27,7 +27,7 @@ class <%= class_name %> < RubiGen::Base
27
27
  <<-EOS
28
28
  Creates a ...
29
29
 
30
- USAGE: #{$0} #{spec.name} name"
30
+ USAGE: #{$0} #{spec.name} name
31
31
  EOS
32
32
  end
33
33
 
data/script/destroy CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
3
 
4
4
  begin
5
5
  require 'rubigen'
data/script/generate CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
3
 
4
4
  begin
5
5
  require 'rubigen'
data/website/index.html CHANGED
@@ -31,7 +31,7 @@
31
31
  <h1>rubigen</h1>
32
32
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rubigen"; return false'>
33
33
  <p>Get Version</p>
34
- <a href="http://rubyforge.org/projects/rubigen" class="numbers">1.2.0</a>
34
+ <a href="http://rubyforge.org/projects/rubigen" class="numbers">1.2.1</a>
35
35
  </div>
36
36
  <h1>Ruby Generator Framework</h1>
37
37
 
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "1.2.0";
2
+ var version = "1.2.1";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "1.2.0";
2
+ var version = "1.2.1";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubigen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-02-14 00:00:00 +10:00
13
+ date: 2008-02-20 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency