Skip to content
Browse files

Cleaned up the gem build a bit.

  • Loading branch information...
1 parent 5e753ff commit 168f96e50e52615991504f955696c25f846e3bd3 @commondream committed Dec 1, 2009
Showing with 12 additions and 24 deletions.
  1. +10 −0 Rakefile
  2. +2 −1 control_center.gemspec
  3. +0 −23 control_center.gemspec.erb
View
10 Rakefile
@@ -12,6 +12,16 @@ Rake::TestTask.new(:test) do |t|
t.verbose = true
end
+desc 'Build the gem'
+task :gem do
+ sh "gem build control_center.gemspec"
+end
+
+desc 'Clean up the project'
+task :clean do
+ sh 'rm control_center-*.gem'
+end
+
desc 'Generate documentation for the control_center plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
View
3 control_center.gemspec
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
A Rails plugin that helps in quickly developing admin style interfaces.
DESC
- s.files = ['lib/control_center.rb', 'lib/helpers.rb', 'lib/tab_builder.rb', 'rails/init.rb', 'generators/control_center', 'generators/control_center/control_center_generator.rb', 'generators/control_center/templates', 'generators/control_center/templates/_header_links.html.erb', 'generators/control_center/templates/_sub_tabs.html.erb', 'generators/control_center/templates/_tabs.html.erb', 'generators/control_center/templates/control_center.css', 'generators/control_center/templates/control_center.html.erb', 'generators/control_center/templates/control_center.rb', 'tasks/control_center_tasks.rake', 'test/control_center_test.rb', 'README.markdown', 'MIT-LICENSE']
+ s.files = Dir.glob("{lib,rails,generators,tasks,test}/**/*") +
+ %w(README.markdown MIT-LICENSE)
s.require_path = 'lib'
s.has_rdoc = true
View
23 control_center.gemspec.erb
@@ -1,23 +0,0 @@
-PKG_VERSION = "1.0.0"
-
-Gem::Specification.new do |s|
-
- s.name = 'control_center'
- s.version = PKG_VERSION
- s.platform = Gem::Platform::RUBY
- s.description = <<-DESC.strip.gsub(/\n\s+/, " ")
- Control Center is a Rails plugin that helps in quickly developing
- interfaces for website administration and application prototyping.
- DESC
- s.summary = <<-DESC.strip.gsub(/\n\s+/, " ")
- A Rails plugin that helps in quickly developing admin style interfaces.
- DESC
-
- s.files = <%= GEM_FILES %>
- s.require_path = 'lib'
- s.has_rdoc = true
-
- s.author = "Alan Johnson"
- s.email = "alan@commondream.net"
- s.homepage = "http://www.commondream.net"
-end

0 comments on commit 168f96e

Please sign in to comment.
Something went wrong with that request. Please try again.