New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use bundler #4
Merged
Merged
Use bundler #4
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
471fd32
Use Bundler
836e9fd
Clean up gemspec a bit
8fe173a
Update Rakefile for use with Bundler
06d91c1
Move specs into canonical location
2361c92
RSpec helper file
9892710
RSpec options
61538c1
Fix version handling
f054338
Fix spec requiring
3e96536
rvmrc, because we like it tidy
adb8e50
Remove rvmrc, and ignore any that a dev might have
8cadfff
Use older EventMachine for now
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
doc | ||
pkg | ||
*.gem | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# The following is cribbed directly from the rvm-site project. It's a more | ||
# convenient way of ensuring we're using the correct gemset, or initializing it | ||
# if need be. | ||
# | ||
|
||
ruby_name="ruby-1.9.2" | ||
gemset_name="em-jack" | ||
environment_id="$ruby_name@$gemset_name" | ||
|
||
# | ||
# First we attempt to load the desired environment directly from the environment | ||
# file, this is very fast and efficient compared to running through the entire | ||
# CLI and selector. If you want feedback on which environment was used then | ||
# insert the word 'use' after --create as this triggers verbose mode. | ||
# | ||
|
||
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | ||
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then | ||
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | ||
else | ||
# If the environment file has not yet been created, use the RVM CLI to select. | ||
rvm --create use "$environment_id" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'http://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
require 'rake' | ||
require 'rake/rdoctask' | ||
require 'rake/gempackagetask' | ||
require 'spec/rake/spectask' | ||
|
||
spec = eval(File.read(File.join(File.dirname(__FILE__), "em-jack.gemspec"))) | ||
|
||
task :default => :gem | ||
|
||
Spec::Rake::SpecTask.new do |t| | ||
t.libs << 'lib' | ||
t.spec_files = FileList['spec/**/*_spec.rb'] | ||
t.spec_opts = ["-colour"] | ||
end | ||
|
||
desc 'Generate RDoc documentation for EMJack' | ||
Rake::RDocTask.new(:rdoc) do |rdoc| | ||
rdoc.rdoc_files.include('README.rdoc', 'COPYING', 'lib/**/*.rb') | ||
rdoc.main = 'README.rdoc' | ||
rdoc.title = 'EM Jack Documentation' | ||
|
||
rdoc.rdoc_dir = 'doc' | ||
rdoc.options << '--line-numbers' | ||
end | ||
require 'bundler' | ||
require 'bundler/setup' | ||
require 'bundler/gem_helper' | ||
|
||
Bundler::GemHelper.install_tasks | ||
|
||
require 'rspec/core/rake_task' | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
pkg.need_tar = true | ||
RSpec::Core::RakeTask.new('spec') do |t| | ||
t.verbose = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
$:.unshift(lib) unless $:.include?(lib) | ||
|
||
require 'em-jack/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{em-jack} | ||
s.version = "0.1.2" | ||
s.authors = ["dan sinclair"] | ||
s.email = %q{dj2@everburning.com} | ||
s.homepage = %q{http://github.com/dj2/em-jack/} | ||
s.name = 'em-jack' | ||
s.version = EMJack::VERSION | ||
s.authors = ['Dan Sinclair'] | ||
s.email = ['dj2@everburning.com'] | ||
s.homepage = 'https://github.com/dj2/em-jack/' | ||
s.summary = 'An evented Beanstalk client' | ||
s.description = 'An evented Beanstalk client' | ||
|
||
s.summary = %q{An evented Beanstalk client.} | ||
s.description = %q{An evented Beanstalk client.} | ||
s.required_rubygems_version = '>= 1.3.6' | ||
|
||
s.add_dependency('eventmachine') | ||
s.add_dependency 'eventmachine', ['>= 1.0.0.beta.3'] | ||
|
||
s.has_rdoc = true | ||
s.extra_rdoc_files = ['README.rdoc'] | ||
s.rdoc_options << '--title' << 'EM-Jack Documentation' << | ||
'--main' << 'README.rdoc' << | ||
'--line-numbers' | ||
s.add_development_dependency 'bundler', ['~> 1.0.13'] | ||
s.add_development_dependency 'rake', ['~> 0.8.7'] | ||
s.add_development_dependency 'rspec', ['~> 2.6'] | ||
|
||
s.files = %w(README.rdoc COPYING lib/em-jack.rb lib/em-jack/beanstalk_connection.rb | ||
lib/em-jack/connection.rb lib/em-jack/errors.rb lib/em-jack/job.rb | ||
lib/em-jack/handlers/buried.rb lib/em-jack/handlers/inserted.rb | ||
lib/em-jack/handlers/not_ignored.rb lib/em-jack/handlers/ok.rb | ||
lib/em-jack/handlers/released.rb lib/em-jack/handlers/reserved.rb | ||
lib/em-jack/handlers/using.rb lib/em-jack/handlers/watching.rb | ||
lib/em-jack/handlers/deleted.rb lib/em-jack/handlers/errors.rb | ||
lib/em-jack/handlers/paused.rb lib/em-jack/handlers/touched.rb | ||
lib/em-jack/handlers/kicked.rb) | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {spec}/*`.split("\n") | ||
s.require_path = ['lib'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module EMJack | ||
VERSION = '0.1.2' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require 'rubygems' | ||
require 'bundler/setup' | ||
require 'em-jack' | ||
|
||
RSpec.configure do |config| | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jack should work with older versions of eventamchine. At a max, I think this should be 0.12.10 until 1.0 is out.