Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make rexical a development dependency #17

Merged
merged 1 commit into from May 29, 2012

Conversation

Projects
None yet
2 participants
Contributor

luislavena commented May 28, 2012

Rexical is only used when compiling the lexer and not at runtime since
rexical generates code that depends on racc/parser, which is bundled with
Ruby stdlib.

This change adjust the gem specification dependency from runtime to
development.

Thank you! ❤️

Make rexical a development dependency
Rexical is only used when compiling the lexer and not at runtime since
rexical generates code that depends on racc/parser, which is bundled with
Ruby stdlib.

This change adjust the gem specification dependency from runtime to
development.
Contributor

luislavena commented May 28, 2012

To prove this:


C:\Users\Luis\Code\codegram\gherkin-ruby>gem list rex

*** LOCAL GEMS ***

C:\Users\Luis\Code\codegram\gherkin-ruby>gem list racc

*** LOCAL GEMS ***

C:\Users\Luis\Code\codegram\gherkin-ruby>ripl
>> require "gherkin"
=> true
>> Gherkin.parse "Feature: my feature\n\nScenario: do something\n  Given something\n  When foo\n  Then bar\n"
=> #<Gherkin::AST::Feature:0x2c13ba0 @name="my feature", @background=nil, @tags=[], @scenarios=[#<Gherkin::AST::Scenario:0x2c13060 @name="do something", @steps=[#<Gherkin::AST::Step:0x2c13648 @name="something", @keyword="Given", @filename=nil, @line=4>, #<Gherkin::AST::Step:0x2c13438 @name="foo", @keyword="When", @filename=nil, @line=5>, #<Gherkin::AST::Step:0x2c131f8 @name="bar", @keyword="Then", @filename=nil, @line=6>], @tags=[], @filename=nil, @line=6>], @filename=nil, @line=1>
Owner

txus commented May 29, 2012

Thank you again Luis! :)

txus added a commit that referenced this pull request May 29, 2012

Merge pull request #17 from luislavena/adjust-dependencies
Make rexical a development dependency

@txus txus merged commit 0f5c072 into codegram:master May 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment