Browse files

version up and use jeweler for gem

  • Loading branch information...
1 parent 968ec4c commit c2bd98721d99a5535ef44bb6b29b610182ab04a1 @jugyo committed Dec 15, 2009
Showing with 20 additions and 31 deletions.
  1. +1 −0 .gitignore
  2. +18 −31 Rakefile
  3. +1 −0 VERSION
View
1 .gitignore
@@ -1,2 +1,3 @@
*.gem
+pkg
View
49 Rakefile
@@ -1,38 +1,25 @@
-$:.unshift File.dirname(__FILE__) + '/lib/'
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "g"
+ gem.summary = %Q{g is like p}
+ gem.description = %Q{The Kernel.g that works like Kernel.p on growl :)}
+ gem.email = "jugyo.org@gmail.com"
+ gem.homepage = "http://github.com/jugyo/g"
+ gem.authors = ["jugyo"]
+ gem.add_development_dependency "rspec", ">= 0"
+ gem.add_dependency "ruby-growl", ">= 1.0.1"
+ end
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
require 'spec/rake/spectask'
desc 'run all specs'
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['-c']
end
-
-desc 'Generate gemspec'
-task :gemspec do |t|
- open('g.gemspec', "wb" ) do |file|
- file << <<-EOS
-Gem::Specification.new do |s|
- s.name = 'g'
- s.version = '1.2.0'
- s.summary = "The Kernel.g that works like Kernel.p on growl :)"
- s.description = "The Kernel.g that works like Kernel.p on growl :)"
- s.files = %w( #{Dir['lib/**/*.rb'].join(' ')}
- #{Dir['spec/**/*.rb'].join(' ')}
- README.markdown
- Rakefile )
- s.add_dependency("ruby-growl", ">= 1.0.1")
- s.author = 'jugyo'
- s.email = 'jugyo.org@gmail.com'
- s.homepage = 'http://github.com/jugyo/g'
- s.rubyforge_project = 'kernelg'
- s.has_rdoc = false
-end
- EOS
- end
- puts "Generate gemspec"
-end
-
-desc 'Generate gem'
-task :gem => :gemspec do |t|
- system 'gem', 'build', 'g.gemspec'
-end
View
1 VERSION
@@ -0,0 +1 @@
+1.3.0

0 comments on commit c2bd987

Please sign in to comment.