Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds gemcutter tsks

  • Loading branch information...
commit 11de0be6c2f79ab525b6c68c5d1e4c07219b52a6 1 parent cc48e09
Krekoten Marjan authored
Showing with 18 additions and 1 deletion.
  1. +2 −0  .gitignore
  2. +15 −0 Rakefile
  3. +1 −1  simple_qs.gemspec
View
2  .gitignore
@@ -1,3 +1,5 @@
coverage
.bundle
*.swp
+pkg/
+doc/
View
15 Rakefile
@@ -5,6 +5,8 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
+require 'rake/gempackagetask'
+
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--format', 'profile', '--color', '-b']
@@ -12,3 +14,16 @@ end
desc "Default task is to run specs"
task :default => :spec
+
+spec = eval(File.read('simple_qs.gemspec'))
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.gem_spec = spec
+end
+
+desc "Release gem to gemcutter."
+task :release do
+ require 'rake/gemcutter'
+ Rake::Gemcutter::Tasks.new(spec).define
+ Rake::Task['gem:push'].invoke
+end
+
View
2  simple_qs.gemspec
@@ -1,4 +1,4 @@
-include File.expand_path(File.join(File.dirname(__FILE__), 'lib', 'version'))
+require File.expand_path(File.join(File.dirname(__FILE__), 'lib', 'version'))
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
Please sign in to comment.
Something went wrong with that request. Please try again.