Permalink
Browse files

Rails 2 generator fix.

Rakefile fix.
  • Loading branch information...
1 parent 4302045 commit baaf19515c8e44d792afc79c0e85c8924c388fe7 Alex Fortuna committed Jul 13, 2011
Showing with 17 additions and 16 deletions.
  1. +10 −10 Rakefile
  2. +1 −2 VERSION.yml
  3. +2 −2 generators/rails_dt/rails_dt_generator.rb
  4. +4 −2 rails_dt.gemspec
View
20 Rakefile
@@ -12,12 +12,12 @@ begin
gem.homepage = "http://github.com/dadooda/rails_dt"
gem.authors = ["Alex Fortuna"]
gem.files = FileList[
- "[A-Z]*.*",
+ "[A-Z]*",
"*.gemspec",
"generators/**/*",
+ "init.rb",
"lib/generators/**/*",
"lib/**/*.rb",
- "init.rb",
]
end
rescue LoadError
@@ -29,20 +29,20 @@ task :rebuild => [:update_generator2, :gemspec, :build]
desc "Push (publish) gem to RubyGems (aka Gemcutter)"
task :push => :rebuild do
- # Yet found no way to ask Jeweler forge a complete version string for us.
+ # NOTE: Yet found no way to ask Jeweler forge a complete version string for us.
vh = YAML.load(File.read("VERSION.yml"))
- version = [vh[:major], vh[:minor], vh[:patch]].join(".")
+ version = [vh[:major], vh[:minor], vh[:patch], vh[:build]].compact.join(".")
pkgfile = File.join("pkg", "#{GEM_NAME}-#{version}.gem")
system("gem", "push", pkgfile)
end
-desc "Generate rdoc documentation"
+desc "Generate RDoc documentation"
Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = "doc"
- rdoc.title = "DT"
- #rdoc.options << "--line-numbers"
- #rdoc.options << "--inline-source"
- rdoc.rdoc_files.include("lib/**/*.rb")
+ rdoc.rdoc_dir = "doc"
+ rdoc.title = "DT"
+ #rdoc.options << "--line-numbers"
+ #rdoc.options << "--inline-source"
+ rdoc.rdoc_files.include("lib/**/*.rb")
end
desc "Update Rails 2 generator files with Rails 3 generator files"
View
3 VERSION.yml
@@ -1,5 +1,4 @@
---
:major: 0
:minor: 1
-:patch: 2
-#:build: pre1
+:patch: 3
View
4 generators/rails_dt/rails_dt_generator.rb
@@ -1,8 +1,8 @@
class RailsDtGenerator < Rails::Generator::Base #:nodoc:
def manifest
record do |m|
- m.file "stylesheets/dt.css", "public/stylesheets/dt.css"
- m.file "initializers/dt.rb", "config/initializers/dt.rb"
+ m.file (fn = "dt.css"), "public/stylesheets/#{fn}"
+ m.file (fn = "dt.rb"), "config/initializers/#{fn}"
m.readme "INSTALL"
end
end
View
6 rails_dt.gemspec
@@ -5,20 +5,22 @@
Gem::Specification.new do |s|
s.name = %q{rails_dt}
- s.version = "0.1.2"
+ s.version = "0.1.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alex Fortuna"]
- s.date = %q{2011-07-10}
+ s.date = %q{2011-07-13}
s.description = %q{Rails Debug Toolkit}
s.email = %q{alex.r@askit.org}
s.extra_rdoc_files = [
"README.html",
"README.md"
]
s.files = [
+ "MIT-LICENSE",
"README.html",
"README.md",
+ "Rakefile",
"VERSION.yml",
"generators/rails_dt/USAGE",
"generators/rails_dt/WARNING",

0 comments on commit baaf195

Please sign in to comment.