Browse files

Jeweler -> Bundler

  • Loading branch information...
1 parent c9ffba2 commit cd21c4927177ea0c20be4cf6ca7e1f2b839020f0 @jarib jarib committed Mar 3, 2011
Showing with 29 additions and 102 deletions.
  1. +4 −0 Gemfile
  2. +3 −21 Rakefile
  3. +0 −1 VERSION
  4. +19 −80 childprocess.gemspec
  5. +3 −0 lib/childprocess/version.rb
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in child_process.gemspec
+gemspec
View
24 Rakefile
@@ -2,25 +2,8 @@ require 'rubygems'
require 'rake'
require 'tmpdir'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "childprocess"
- gem.summary = %Q{Cross-platform ruby library for managing child processes.}
- gem.description = %Q{This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
- gem.email = "jari.bakken@gmail.com"
- gem.homepage = "http://github.com/jarib/childprocess"
- gem.authors = ["Jari Bakken"]
- gem.add_development_dependency "rspec", ">= 2.0.0"
- gem.add_development_dependency "yard", ">= 0"
-
- gem.add_dependency "ffi", "~> 0.6.3"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -37,7 +20,6 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov_opts = %w[--exclude spec,ruby-debug,/Library/Ruby,.gem --include lib/childprocess]
end
-task :spec => :check_dependencies
task :default => :spec
begin
@@ -60,7 +42,7 @@ task :jar => [:clean, :build] do
gem_to_package = Dir['pkg/*.gem'].first
gem_name = File.basename(gem_to_package, ".gem")
p :gem_to_package => gem_to_package, :gem_name => gem_name
-
+
sh "gem install -i #{tmpdir} #{gem_to_package} --ignore-dependencies --no-rdoc --no-ri"
sh "jar cf childprocess.jar -C #{tmpdir}/gems/#{gem_name}/lib ."
sh "jar tf childprocess.jar"
View
1 VERSION
@@ -1 +0,0 @@
-0.1.7
View
99 childprocess.gemspec
@@ -1,88 +1,27 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "childprocess/version"
Gem::Specification.new do |s|
- s.name = %q{childprocess}
- s.version = "0.1.7"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jari Bakken"]
- s.date = %q{2011-02-12}
+ s.name = "childprocess"
+ s.version = ChildProcess::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Jari Bakken"]
+ s.email = ["jari.bakken@gmail.com"]
+ s.homepage = ""
+ s.summary = %q{This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
s.description = %q{This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
- s.email = %q{jari.bakken@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".rspec",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "childprocess.gemspec",
- "lib/childprocess.rb",
- "lib/childprocess/abstract_io.rb",
- "lib/childprocess/abstract_process.rb",
- "lib/childprocess/errors.rb",
- "lib/childprocess/ironruby.rb",
- "lib/childprocess/ironruby/process.rb",
- "lib/childprocess/jruby.rb",
- "lib/childprocess/jruby/io.rb",
- "lib/childprocess/jruby/process.rb",
- "lib/childprocess/jruby/redirector.rb",
- "lib/childprocess/unix.rb",
- "lib/childprocess/unix/io.rb",
- "lib/childprocess/unix/process.rb",
- "lib/childprocess/windows.rb",
- "lib/childprocess/windows/api.rb",
- "lib/childprocess/windows/constants.rb",
- "lib/childprocess/windows/functions.rb",
- "lib/childprocess/windows/handle.rb",
- "lib/childprocess/windows/io.rb",
- "lib/childprocess/windows/process.rb",
- "lib/childprocess/windows/structs.rb",
- "spec/abstract_io_spec.rb",
- "spec/childprocess_spec.rb",
- "spec/jruby_spec.rb",
- "spec/pid_behavior.rb",
- "spec/spec_helper.rb",
- "spec/unix_spec.rb",
- "spec/windows_spec.rb"
- ]
- s.homepage = %q{http://github.com/jarib/childprocess}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.5.0}
- s.summary = %q{Cross-platform ruby library for managing child processes.}
- s.test_files = [
- "spec/abstract_io_spec.rb",
- "spec/childprocess_spec.rb",
- "spec/jruby_spec.rb",
- "spec/pid_behavior.rb",
- "spec/spec_helper.rb",
- "spec/unix_spec.rb",
- "spec/windows_spec.rb"
- ]
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.rubyforge_project = "childprocess"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- s.add_runtime_dependency(%q<ffi>, ["~> 0.6.3"])
- else
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
- s.add_dependency(%q<yard>, [">= 0"])
- s.add_dependency(%q<ffi>, ["~> 0.6.3"])
- end
- else
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
- s.add_dependency(%q<yard>, [">= 0"])
- s.add_dependency(%q<ffi>, ["~> 0.6.3"])
- 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"]
+
+ s.add_development_dependency "rspec", [">= 2.0.0"]
+ s.add_development_dependency "yard", [">= 0"]
+ s.add_runtime_dependency "ffi", ["~> 0.6.3"]
end
+
View
3 lib/childprocess/version.rb
@@ -0,0 +1,3 @@
+module ChildProcess
+ VERSION = "0.1.7"
+end

0 comments on commit cd21c49

Please sign in to comment.