Skip to content

Commit

Permalink
Convert to bundler for dev. Added version
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Sep 16, 2010
1 parent a773ede commit 25509a6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.gem
pkg
21 changes: 5 additions & 16 deletions Rakefile
@@ -1,19 +1,7 @@
require 'rake/testtask'

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "em-spec"
s.description = s.summary = "Simple BDD API for testing asynchronous Ruby/EventMachine code"
s.email = "aman@tmm1.net"
s.homepage = "http://github.com/joshbuddy/em-spec"
s.authors = ["Aman Gupta"]
s.files = FileList["[A-Z]*", "{lib,test}/**/*"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'rubygems'
require 'bundler'
Bundler::GemHelper.install_tasks

task :default => :spec

Expand All @@ -27,4 +15,5 @@ task :spec do
sh('rake test') rescue nil
sh('bacon test/bacon_spec.rb') rescue nil
sh 'spec -f specdoc test/rspec_spec.rb test/rspec_fail_examples.rb'
end
end

48 changes: 15 additions & 33 deletions em-spec.gemspec
@@ -1,50 +1,32 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{em-spec}
s.version = "0.2.1"
require File.join(File.dirname(__FILE__), 'lib', 'em-spec', 'version')

Gem::Specification.new do |s|
s.name = 'em-spec'
s.version = EventMachine::Spec::VERSION
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aman Gupta"]
s.date = %q{2010-01-16}
s.description = %q{Simple BDD API for testing asynchronous Ruby/EventMachine code}
s.summary = "Simple BDD API for testing asynchronous Ruby/EventMachine code"
s.description = "Simple BDD API for testing asynchronous Ruby/EventMachine code"
s.email = %q{aman@tmm1.net}
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"README.rdoc",
"Rakefile",
"VERSION",
"lib/em-spec/bacon.rb",
"lib/em-spec/rspec.rb",
"lib/em-spec/test.rb",
"lib/ext/fiber18.rb",
"test/bacon_spec.rb",
"test/rspec_fail_examples.rb",
"test/rspec_spec.rb",
"test/test_spec.rb"
]
s.extra_rdoc_files = ['README.rdoc']
s.files = `git ls-files`.split("\n")
s.homepage = %q{http://github.com/joshbuddy/em-spec}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{Simple BDD API for testing asynchronous Ruby/EventMachine code}
s.test_files = [
"test/bacon_spec.rb",
"test/rspec_fail_examples.rb",
"test/rspec_spec.rb",
"test/test_spec.rb"
]
s.rubygems_version = %q{1.3.7}
s.test_files = `git ls-files`.split("\n").select{|f| f =~ /^test/}
s.rubyforge_project = 'em-spec'

# dependencies
s.add_development_dependency 'bundler', ">= 1.0.0"

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
Expand Down
5 changes: 5 additions & 0 deletions lib/em-spec/version.rb
@@ -0,0 +1,5 @@
module EventMachine
module Spec
VERSION = '0.2.2'
end
end

0 comments on commit 25509a6

Please sign in to comment.