diff --git a/Rakefile b/Rakefile index aee8009..0ee7521 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,32 @@ require 'rake' require 'rake/testtask' require 'rake/rdoctask' +begin + require 'jeweler' + Jeweler::Tasks.new do |gemspec| + gemspec.name = 'more' + + gemspec.summary = 'LESS on Rails' + gemspec.description = + 'More is a plugin for Ruby on Rails applications. It automatically ' \ + 'parses your applications .less files through LESS and outputs CSS.' + + gemspec.authors = ['August Lilleaas', 'Logan Raarup'] + gemspec.homepage = 'http://github.com/cloudhead/more' + + gemspec.files = FileList[*%w(Rakefile init.rb lib/**/*.{rb,rake} rails/init.rb tasks/* test/*)] + gemspec.extra_rdoc_files = %w( README.markdown MIT-LICENSE ) + gemspec.has_rdoc = true + + gemspec.version = '0.1.2' + gemspec.require_path = 'lib' + + gemspec.add_dependency 'less' + end +rescue LoadError + puts 'Jeweler not available. Install it with: gem install jeweler' +end + desc 'Default: run unit tests.' task :default => :test diff --git a/more.gemspec b/more.gemspec index 7b0209e..a64f9c3 100644 --- a/more.gemspec +++ b/more.gemspec @@ -1,17 +1,51 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' +# -*- encoding: utf-8 -*- -require 'rake' +Gem::Specification.new do |s| + s.name = %q{more} + s.version = "0.1.2" -SPEC = Gem::Specification.new do |s| - s.name = "more" - s.summary = "LESS on Rails" - s.homepage = "http://github.com/cloudhead/more" - s.description = <<-EOS - More is a plugin for Ruby on Rails applications. It automatically - parses your applications .less files through LESS and outputs CSS files. - EOS + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["August Lilleaas", "Logan Raarup"] - s.version = "0.1.0" - s.files = FileList["README.markdown", "MIT-LICENSE", "Rakefile", "init.rb", "lib/*.rb", "rails/init.rb", "tasks/*", "test/*"] - s.has_rdoc = true - s.add_dependency "less" + s.date = %q{2011-01-11} + s.description = %q{More is a plugin for Ruby on Rails applications. It automatically parses your applications .less files through LESS and outputs CSS.} + s.extra_rdoc_files = [ + "MIT-LICENSE", + "README.markdown" + ] + s.files = [ + "Rakefile", + "init.rb", + "lib/less/controller_extension.rb", + "lib/less/more.rb", + "lib/tasks/more_tasks.rake", + "rails/init.rb", + "test/controller_test.rb", + "test/more_test.rb", + "test/test_helper.rb" + ] + s.homepage = %q{http://github.com/cloudhead/more} + s.require_paths = ["lib"] + s.rubygems_version = %q{1.4.1} + s.summary = %q{LESS on Rails} + s.test_files = [ + "test/controller_test.rb", + "test/more_test.rb", + "test/test_helper.rb" + ] + + if s.respond_to? :specification_version then + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, [">= 0"]) + else + s.add_dependency(%q, [">= 0"]) + end + else + s.add_dependency(%q, [">= 0"]) + end end +