Permalink
Browse files

simplify gemspec - closes #3

  • Loading branch information...
1 parent 78fbe7a commit 0dd634138c5314a812390fff514165c228aa98bd @igrigorik committed May 8, 2011
Showing with 15 additions and 54 deletions.
  1. +0 −5 Gemfile
  2. +2 −10 Rakefile
  3. +0 −1 VERSION
  4. +13 −38 slowgrowl.gemspec
View
@@ -1,12 +1,7 @@
require 'lib/platform'
-source :rubygems
source :gemcutter
SlowGrowl::GEMS.each do |dep|
gem dep[:name], :require => (dep[:require] || dep[:name])
end
-
-# group :test do
-# gem 'rspec'
-# end
View
@@ -1,11 +1,3 @@
-require 'rake'
-require 'spec/rake/spectask'
+require 'bundler'
-begin
- require 'jeweler'
- Jeweler::Tasks.new
- Jeweler::GemcutterTasks.new
-rescue LoadError => e
- puts e.inspect
- puts 'Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org'
-end
+Bundler::GemHelper.install_tasks
View
@@ -1 +0,0 @@
-0.1.3
View
@@ -1,44 +1,19 @@
-require 'lib/platform'
+# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
- s.name = %q{slowgrowl}
+ s.name = "slowgrowl"
s.version = "0.1.3"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Ilya Grigorik", "Milan Dobrota"]
- s.date = %q{2010-08-14}
- s.description = %q{Surface slow code paths in your Rails 3 app via Growl / libnotify}
- s.email = %q{ilya@igvita.com}
- s.extra_rdoc_files = [
- "README.md"
- ]
- s.files = [
- ".gitignore",
- "Gemfile",
- "README.md",
- "Rakefile",
- "VERSION",
- "lib/platform.rb",
- "lib/slowgrowl.rb",
- "slowgrowl.gemspec"
- ]
- s.homepage = %q{http://github.com/igrigorik/slowgrowl}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{slowgrowl}
- s.rubygems_version = %q{1.3.6}
- s.summary = s.description
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Ilya Grigorik", "Milan Dobrota"]
+ s.email = ["ilya@igvita.com"]
+ s.homepage = "http://github.com/igrigorik/slowgrowl"
+ s.summary = "Surface slow code paths in your Rails 3 app via Growl / libnotify"
+ s.description = s.summary
+ s.rubyforge_project = "slowgrowl"
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- SlowGrowl::GEMS.each { |dep| s.add_runtime_dependency(dep[:name], [">= 0"]) }
- else
- SlowGrowl::GEMS.each { |dep| s.add_dependency(dep[:name], [">= 0"]) }
- end
- else
- SlowGrowl::GEMS.each { |dep| s.add_dependency(dep[:name], [">= 0"]) }
- end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
end

0 comments on commit 0dd6341

Please sign in to comment.