Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
Set up such that you can use an RVM-managed JRuby with just a cucumbe…
Browse files Browse the repository at this point in the history
…r env.rb and ~/.rvmrc configuration tweak
  • Loading branch information
fidothe authored and langalex committed Jul 2, 2010
1 parent 2c784f4 commit e370442
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 54 deletions.
73 changes: 21 additions & 52 deletions culerity.gemspec
Expand Up @@ -4,90 +4,59 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{culerity}
s.version = "0.2.10"
s.name = "culerity"
s.version = "0.2.11"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alexander Lang"]
s.date = %q{2010-04-28}
s.date = "2010-06-28"
s.default_executable = %q{run_celerity_server.rb}
s.description = %q{Culerity integrates Cucumber and Celerity in order to test your application's full stack.}
s.email = %q{alex@upstream-berlin.com}
s.executables = ["run_celerity_server.rb"]
s.extra_rdoc_files = [
"README.md"
]
s.files = [
s.files = Dir.glob([
".gitignore",
"CHANGES.md",
"MIT-LICENSE",
"README.md",
"Rakefile",
"VERSION.yml",
"bin/run_celerity_server.rb",
"culerity.gemspec",
"features/fixtures/jquery",
"features/fixtures/sample_feature",
"features/installing_culerity.feature",
"features/running_cucumber_without_explicitly_running_external_services.feature",
"features/step_definitions/common_steps.rb",
"features/step_definitions/culerity_setup_steps.rb",
"features/step_definitions/jruby_steps.rb",
"features/step_definitions/rails_setup_steps.rb",
"features/support/common.rb",
"features/support/env.rb",
"features/support/matchers.rb",
"init.rb",
"lib/culerity.rb",
"lib/culerity/celerity_server.rb",
"lib/culerity/persistent_delivery.rb",
"lib/culerity/remote_browser_proxy.rb",
"lib/culerity/remote_object_proxy.rb",
"lib/tasks/rspec.rake",
"rails/init.rb",
"rails_generators/culerity/culerity_generator.rb",
"rails_generators/culerity/templates/config/environments/culerity.rb",
"rails_generators/culerity/templates/config/environments/culerity_continuousintegration.rb",
"rails_generators/culerity/templates/features/step_definitions/culerity_steps.rb",
"rails_generators/culerity/templates/features/support/env.rb",
"rails_generators/culerity/templates/lib/tasks/culerity.rake",
"rails_generators/culerity/templates/public/javascripts/culerity.js",
"script/console",
"script/destroy",
"script/generate",
"spec/celerity_server_spec.rb",
"spec/culerity_spec.rb",
"spec/remote_browser_proxy_spec.rb",
"spec/remote_object_proxy_spec.rb",
"spec/spec_helper.rb"
]
"lib/**/*.rb",
"rails/**/*.rb",
"rails_generators/**/*",
"script/*"
])
s.homepage = %q{http://github.com/langalex/culerity}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.6}
s.summary = %q{Culerity integrates Cucumber and Celerity in order to test your application's full stack.}
s.test_files = [
"spec/celerity_server_spec.rb",
"spec/culerity_spec.rb",
"spec/remote_browser_proxy_spec.rb",
"spec/remote_object_proxy_spec.rb",
"spec/spec_helper.rb"
]
s.test_files = Dir.glob([
"features/**/*.feature",
"features/**/*.rb",
"features/fixtures/*",
"spec/**/*.rb"
])

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
s.add_development_dependency(%q<cucumber>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 0"])
s.add_development_dependency("cucumber-rails", [">= 0"])
s.add_development_dependency("rspec", [">= 0"])
else
s.add_dependency(%q<cucumber>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
s.add_dependency('cucumber-rails', [">= 0"])
s.add_dependency('rspec', [">= 0"])
end
else
s.add_dependency(%q<cucumber>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
s.add_dependency('cucumber-rails', [">= 0"])
s.add_dependency('rspec', [">= 0"])
end
end

4 changes: 2 additions & 2 deletions lib/culerity.rb
Expand Up @@ -29,7 +29,7 @@ def self.culerity_root
end

def self.celerity_invocation
"require '#{culerity_root}/lib/culerity/celerity_server'; Culerity::CelerityServer.new(STDIN, STDOUT)"
%{#{culerity_root}/lib/start_celerity.rb}
end

def self.jruby_invocation
Expand All @@ -41,7 +41,7 @@ def self.jruby_invocation=(invocation)
end

def self.run_server
IO.popen(%{#{jruby_invocation} -e "#{celerity_invocation}"}, 'r+').extend(ServerCommands)
IO.popen(%{#{jruby_invocation} "#{celerity_invocation}"}, 'r+').extend(ServerCommands)
end

def self.run_rails(options = {})
Expand Down
3 changes: 3 additions & 0 deletions lib/start_celerity.rb
@@ -0,0 +1,3 @@
require 'rubygems'
require 'culerity/celerity_server'
Culerity::CelerityServer.new(STDIN, STDOUT)

0 comments on commit e370442

Please sign in to comment.