Skip to content

Commit

Permalink
Rails 2 generator fix.
Browse files Browse the repository at this point in the history
Rakefile fix.
  • Loading branch information
Alex Fortuna committed Jul 13, 2011
1 parent 4302045 commit baaf195
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
20 changes: 10 additions & 10 deletions Rakefile
Expand Up @@ -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
Expand All @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions VERSION.yml
@@ -1,5 +1,4 @@
---
:major: 0
:minor: 1
:patch: 2
#:build: pre1
:patch: 3
4 changes: 2 additions & 2 deletions 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
Expand Down
6 changes: 4 additions & 2 deletions rails_dt.gemspec
Expand Up @@ -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",
Expand Down

0 comments on commit baaf195

Please sign in to comment.