Permalink
Browse files

Create Rake task to generate gemspec for github; Ignore some files

Signed-off-by: Ryan Grove <ryan@wonko.com>
  • Loading branch information...
1 parent 3987eda commit b80bf2adb172e0ada8b61566866025bac13cd8ca @reagent reagent committed with Feb 20, 2009
Showing with 38 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +7 −0 Rakefile
  3. +28 −0 jsmin.gemspec
View
@@ -0,0 +1,3 @@
+/pkg/
+/*.gem
+
View
@@ -56,3 +56,10 @@ Rake::RDocTask.new do |rd|
rd.options << '--line-numbers' << '--inline-source'
end
+
+desc 'Generate the gemspec to serve this Gem from Github'
+task :github do
+ file = File.dirname(__FILE__) + "/#{gemspec.name}.gemspec"
+ File.open(file, 'w') {|f| f << gemspec.to_ruby }
+ puts "Created gemspec: #{file}"
+end
View
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{jsmin}
+ s.version = "1.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Ryan Grove"]
+ s.date = %q{2009-02-20}
+ s.email = %q{ryan@wonko.com}
+ s.files = ["HISTORY", "lib/jsmin.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://github.com/rgrove/jsmin/}
+ s.require_paths = ["lib"]
+ s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{Ruby implementation of Douglas Crockford's JSMin JavaScript minifier.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end

0 comments on commit b80bf2a

Please sign in to comment.