Permalink
Browse files

use bundler to create gem

  • Loading branch information...
1 parent 90356df commit d82849affef9736eaf257f6a890e4c2eb9b45155 @jugyo committed May 15, 2012
Showing with 23 additions and 94 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 Gemfile
  3. +3 −45 Rakefile
  4. +14 −49 ir_b.gemspec
View
@@ -0,0 +1,2 @@
+Gemfile.lock
+pkg
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in ir_b.gemspec
+gemspec
View
48 Rakefile 100644 → 100755
@@ -1,22 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "ir_b"
- gem.summary = %Q{irb anywhere}
- gem.description = %Q{You can do irb anywhere by calling 'ir b' (need a whitespace!).}
- gem.email = "jugyo.org@gmail.com"
- gem.homepage = "http://github.com/jugyo/ir_b"
- gem.authors = ["jugyo"]
- gem.add_development_dependency "shoulda", ">= 0"
- gem.add_development_dependency "rr", ">= 0"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -25,29 +8,4 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-task :test => :check_dependencies
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "ir_b #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+task :default => :test
View
@@ -1,54 +1,19 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
-Gem::Specification.new do |s|
- s.name = %q{ir_b}
- s.version = "1.4.0"
+Gem::Specification.new do |gem|
+ gem.authors = ["jugyo"]
+ gem.email = ["jugyo.org@gmail.com"]
+ gem.description = %q{You can do irb anywhere by calling 'ir b' (need a whitespace!).}
+ gem.summary = %q{irb anywhere}
+ gem.homepage = "https://github.com/jugyo/ir_b"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = [%q{jugyo}]
- s.date = %q{2011-09-06}
- s.description = %q{You can do irb anywhere by calling 'ir b' (need a whitespace!).}
- s.email = %q{jugyo.org@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.md"
- ]
- s.files = [
- ".document",
- "LICENSE",
- "README.md",
- "Rakefile",
- "VERSION",
- "examples/example1.rb",
- "examples/example2.rb",
- "examples/with_pry.rb",
- "ir_b.gemspec",
- "lib/ir_b.rb",
- "lib/ir_b/pry.rb",
- "test/helper.rb",
- "test/test_ir_b.rb"
- ]
- s.homepage = %q{http://github.com/jugyo/ir_b}
- s.require_paths = [%q{lib}]
- s.rubygems_version = %q{1.8.6}
- s.summary = %q{irb anywhere}
+ 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 = "ir_b"
+ gem.require_paths = ["lib"]
+ gem.version = '1.4.0'
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<shoulda>, [">= 0"])
- s.add_development_dependency(%q<rr>, [">= 0"])
- else
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rr>, [">= 0"])
- end
- else
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rr>, [">= 0"])
- end
+ gem.add_development_dependency "shoulda", ">= 0"
+ gem.add_development_dependency "rr", ">= 0"
end
-

0 comments on commit d82849a

Please sign in to comment.