Skip to content

Instantly share code, notes, and snippets.

Avatar
💜
I made you read this.

Dominik Bamberger b4mboo

💜
I made you read this.
View GitHub Profile
@b4mboo
b4mboo / keybase.md
Created Apr 3, 2017
Verify my Keybase account
View keybase.md

Keybase proof

I hereby claim:

  • I am b4mboo on github.
  • I am bamboo (https://keybase.io/bamboo) on keybase.
  • I have a public key whose fingerprint is 3B68 DF50 C5E1 B423 222B A58D BA7F 6DEC 4282 3BC8

To claim this, I am signing this object:

@b4mboo
b4mboo / compile_ruby_lexer.rb
Created May 6, 2013
If you want to use Gherkin's ruby lexer instead of the C lexer, you need to compile it. If you want to run that on a CI server, you might need to do that with every build (depending on your setup). This script should solve exactly that problem.
View compile_ruby_lexer.rb
#!/usr/bin/env ruby
# This script will automatically compile Gherkin's ruby lexer.
# If this script is called with an optional --app parameter switch directories.
Dir.chdir ARGV[1] if ARGV[0] == '--app'
# Get the correct path to the currently used gherkin gem.
gem_info = `bundle exec gem environment`.lines
gem_path = gem_info.find{ |line| line.include? 'INSTALLATION' }.split.last
gherkin_version = `bundle exec gem list | grep gherkin`.chomp[/\((.*?)\)/m, 1]