Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

gherkin 2.4.0 breaks cuke4duke 0.4.3/0.4.4 running using maven #110

Open
krisb opened this issue Jun 6, 2011 · 2 comments
Open

gherkin 2.4.0 breaks cuke4duke 0.4.3/0.4.4 running using maven #110

krisb opened this issue Jun 6, 2011 · 2 comments

Comments

@krisb
Copy link

krisb commented Jun 6, 2011

I am using cuke4duke using maven and java steps. I've installed it using the bootstrapping instructions.

Because of the way the dependencies are declared using ">=", when you install cuke4duke you get cucumber >= 0.10.2 and gherkin >= 2.3.5. Really these should be ~> I think.

The problem is that there is a backward incompatible change in gherkin 2.4.0 so the following error is given:

uninitialized constant Gherkin::Formatter::Model::PyString

This can be fixed quickly by adding a runtime dependency before the cucumber one to gherkin ~> 2.3.5 so that it gets resolved to 2.3.x prior to it trying to use cucumber 0.10.3 and gherkin 2.4.0, forcing the correct gem resolution.

@jbandi
Copy link

jbandi commented Aug 7, 2011

I had the same problem.
I did not find out where to change those dependencies.
So I am staying on my running environment which uses cuke4duke 0.3.2.

@mattsalt
Copy link

@jbandi,
In the gemspec for cuke4duke add the following line

s.add_runtime_dependency(%q, ["~> 2.3.5"])

before any dependencies on cucumber. The gemspec files should be in %PATH_TO_JRUBY%\lib\ruby\gems\x.x\specifications
You should now be able to run cuke4duke 0.4.4 from jruby now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants