Permalink
Browse files

clean up gemspec, use bundler instead of jeweler for release

  • Loading branch information...
1 parent 33b0e26 commit 8a7945dcc337fbb1f7f959a7aa760f8ca8530a23 @cldwalker cldwalker committed Apr 20, 2012
Showing with 17 additions and 87 deletions.
  1. +0 −5 Gemfile
  2. +1 −21 Rakefile
  3. +16 −61 log_buddy.gemspec
View
@@ -1,8 +1,3 @@
source :rubygems
gemspec
-
-group :development do
- gem 'rake'
- gem 'jeweler'
-end
View
@@ -1,26 +1,6 @@
-$:.unshift File.expand_path('../lib', __FILE__)
-
-require 'log_buddy/version'
+require 'bundler/gem_tasks'
begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "log_buddy"
- gem.version = LogBuddy::Version::STRING
- gem.summary = %Q{Log Buddy is your little development buddy.}
- gem.description = %Q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
- gem.email = "rsanheim@gmail.com"
- gem.homepage = "http://github.com/relevance/log_buddy"
- gem.authors = ["Rob Sanheim"]
- gem.add_development_dependency "rspec", "~> 2.2"
- gem.add_development_dependency "mocha", "~> 0.9"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
-
-begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
View
@@ -1,65 +1,20 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/log_buddy/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = %q{log_buddy}
- s.version = "0.6.0"
+Gem::Specification.new do |gem|
+ gem.authors = ["Rob Sanheim"]
+ gem.email = ["rsanheim@gmail.com"]
+ gem.description = %q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
+ gem.summary = %q{Log Buddy is your little development buddy.}
+ gem.homepage = %q{http://github.com/relevance/log_buddy}
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Rob Sanheim"]
- s.date = %q{2010-12-06}
- s.description = %q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
- s.email = %q{rsanheim@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.markdown"
- ]
- s.files = [
- ".rvmrc",
- ".treasure_map.rb",
- "CHANGELOG",
- "LICENSE",
- "README.markdown",
- "Rakefile",
- "examples.rb",
- "init.rb",
- "lib/log_buddy.rb",
- "lib/log_buddy/mixin.rb",
- "lib/log_buddy/utils.rb",
- "lib/log_buddy/version.rb",
- "log_buddy.gemspec",
- "spec/log_buddy/log_buddy_init_spec.rb",
- "spec/log_buddy/log_buddy_spec.rb",
- "spec/log_buddy/log_spec.rb",
- "spec/log_buddy/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/relevance/log_buddy}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Log Buddy is your little development buddy.}
- s.test_files = [
- "spec/log_buddy/log_buddy_init_spec.rb",
- "spec/log_buddy/log_buddy_spec.rb",
- "spec/log_buddy/log_spec.rb",
- "spec/log_buddy/spec_helper.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, ["~> 2.2"])
- s.add_development_dependency(%q<mocha>, ["~> 0.9"])
- else
- s.add_dependency(%q<rspec>, ["~> 2.2"])
- s.add_dependency(%q<mocha>, ["~> 0.9"])
- end
- else
- s.add_dependency(%q<rspec>, ["~> 2.2"])
- s.add_dependency(%q<mocha>, ["~> 0.9"])
- end
+ gem.files = `git ls-files`.split($\)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.name = "log_buddy"
+ gem.version = LogBuddy::Version::STRING
+ gem.add_development_dependency %q<rspec>, "~> 2.2"
+ gem.add_development_dependency %q<mocha>, "~> 0.9"
+ gem.add_development_dependency "rake", "~> 0.9.2"
+ gem.add_development_dependency 'bundler', '~> 1.1'
end
-

0 comments on commit 8a7945d

Please sign in to comment.