Skip to content

Commit

Permalink
New --jars option
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Dec 22, 2009
1 parent 5fdf441 commit 459d964
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
6 changes: 5 additions & 1 deletion History.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
== In git
== 0.5.2 2009-12-22

=== New Features
* On JRuby/Cuke4Duke, --require DIR will put DIR on the $CLASSPATH, making it easier to load step def classes (Aslak Hellesøy)
* New --jars option that will load jar files. Only available on JRuby. Practical for Cuke4Duke. (Aslak Hellesøy)

=== Bugfixes
* Add #embed back to html formatter (#547 Brandon Faloona)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
:patch: 1
:patch: 2
:major: 0
:minor: 5
15 changes: 12 additions & 3 deletions cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{cucumber}
s.version = "0.5.1"
s.version = "0.5.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aslak Helles\303\270y"]
s.date = %q{2009-12-16}
s.date = %q{2009-12-22}
s.default_executable = %q{cucumber}
s.description = %q{A BDD tool written in Ruby}
s.email = %q{[email protected]}
Expand Down Expand Up @@ -314,6 +314,7 @@ Gem::Specification.new do |s|
"examples/tickets/features/tickets.feature",
"examples/watir/README.textile",
"examples/watir/Rakefile",
"examples/watir/cucumber.yml",
"examples/watir/features/search.feature",
"examples/watir/features/step_definitions/search_steps.rb",
"examples/watir/features/support/env.rb",
Expand Down Expand Up @@ -367,6 +368,7 @@ Gem::Specification.new do |s|
"features/usage_and_stepdefs_formatter.feature",
"features/wire_protocol.feature",
"features/wire_protocol_table_diffing.feature",
"features/wire_protocol_timeouts.feature",
"features/work_in_progress.feature",
"gem_tasks/contributors.rake",
"gem_tasks/environment.rake",
Expand Down Expand Up @@ -470,12 +472,14 @@ Gem::Specification.new do |s|
"lib/cucumber/step_mother.rb",
"lib/cucumber/webrat/element_locator.rb",
"lib/cucumber/webrat/table_locator.rb",
"lib/cucumber/wire_support/configuration.rb",
"lib/cucumber/wire_support/connection.rb",
"lib/cucumber/wire_support/request_handler.rb",
"lib/cucumber/wire_support/wire_exception.rb",
"lib/cucumber/wire_support/wire_language.rb",
"lib/cucumber/wire_support/wire_packet.rb",
"lib/cucumber/wire_support/wire_protocol.rb",
"lib/cucumber/wire_support/wire_protocol/requests.rb",
"lib/cucumber/wire_support/wire_step_definition.rb",
"spec/cucumber/ast/background_spec.rb",
"spec/cucumber/ast/feature_element_spec.rb",
Expand Down Expand Up @@ -525,6 +529,7 @@ Gem::Specification.new do |s|
"spec/cucumber/treetop_parser/test_dos.feature",
"spec/cucumber/treetop_parser/with_comments.feature",
"spec/cucumber/treetop_parser/with_tags.feature",
"spec/cucumber/wire_support/configuration_spec.rb",
"spec/cucumber/wire_support/wire_exception_spec.rb",
"spec/cucumber/wire_support/wire_language_spec.rb",
"spec/cucumber/wire_support/wire_packet_spec.rb",
Expand All @@ -539,7 +544,7 @@ Gem::Specification.new do |s|
(::) U P G R A D I N G (::)
Thank you for installing cucumber-0.5.1.
Thank you for installing cucumber-0.5.2.
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
for important information about this release. Happy cuking!
Expand Down Expand Up @@ -586,6 +591,7 @@ for important information about this release. Happy cuking!
"spec/cucumber/rb_support/regexp_argument_matcher_spec.rb",
"spec/cucumber/step_match_spec.rb",
"spec/cucumber/step_mother_spec.rb",
"spec/cucumber/wire_support/configuration_spec.rb",
"spec/cucumber/wire_support/wire_exception_spec.rb",
"spec/cucumber/wire_support/wire_language_spec.rb",
"spec/cucumber/wire_support/wire_packet_spec.rb",
Expand Down Expand Up @@ -716,6 +722,7 @@ for important information about this release. Happy cuking!
s.add_runtime_dependency(%q<polyglot>, [">= 0.2.9"])
s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
s.add_runtime_dependency(%q<json_pure>, [">= 1.2.0"])
s.add_development_dependency(%q<nokogiri>, [">= 1.4.0"])
s.add_development_dependency(%q<prawn>, [">= 0.5.1"])
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
Expand All @@ -726,6 +733,7 @@ for important information about this release. Happy cuking!
s.add_dependency(%q<polyglot>, [">= 0.2.9"])
s.add_dependency(%q<builder>, [">= 2.1.2"])
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
s.add_dependency(%q<json_pure>, [">= 1.2.0"])
s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
s.add_dependency(%q<prawn>, [">= 0.5.1"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
Expand All @@ -737,6 +745,7 @@ for important information about this release. Happy cuking!
s.add_dependency(%q<polyglot>, [">= 0.2.9"])
s.add_dependency(%q<builder>, [">= 2.1.2"])
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
s.add_dependency(%q<json_pure>, [">= 1.2.0"])
s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
s.add_dependency(%q<prawn>, [">= 0.5.1"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
Expand Down
11 changes: 11 additions & 0 deletions lib/cucumber/cli/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,18 @@ def parse!(args)
"loaded first.",
"This option can be specified multiple times.") do |v|
@options[:require] << v
if(Cucumber::JRUBY && File.directory?(v))
$CLASSPATH << v
end
end

if(Cucumber::JRUBY)
opts.on("-j DIR", "--jars DIR",
"Load all the jars under DIR") do |jars|
Dir["#{jars}/**/*.jar"].each {|jar| require jar}
end
end

opts.on("--i18n LANG",
"List keywords for in a particular language",
%{Run with "--i18n help" to see all languages}) do |lang|
Expand Down

0 comments on commit 459d964

Please sign in to comment.