All Projects → getgauge → gauge-ruby

getgauge / gauge-ruby

Licence: Apache-2.0 License
Ruby runner for Gauge.

Programming Languages

ruby
36898 projects - #4 most used programming language
go
31211 projects - #10 most used programming language

Gauge-ruby

Actions Status Gem Contributor Covenant

This project adds ruby language plugin for gauge.

The plugin is authored in Ruby. It contains a launcher component (gauge-ruby.go) written in golang which is used to start the plugin from gauge.

Getting started

Pre-requisite

Installation

gauge install ruby

Create a gauge-ruby project

gauge init ruby

Run tests

gauge run specs

Alternate Installation options

Install specific version

  • Installing specific version
gauge install ruby --version 0.4.2

Offline installation

gauge install ruby --file gauge-ruby-0.4.2-linux.x86_64.zip

Build from Source

Requirements

Run bundle install to install all required gems.

Running bundle exec rake -T should give the list of all tasks available. Below sections detail some commonly used tasks.

Compiling

To build gauge-ruby.xxx.gem and the gauge-ruby executable for current platform use:

bundle exec rake compile

To build gauge-ruby.xxx.gem and the gauge-ruby for all supported platforms use:

bundle exec rake xcompile
Installing

After compiling

TO install the gauge-ruby.xxx.gem use:

bundle exec rake install

To install gauge-ruby plugin use (Note, this will uninstall gauge-ruby before installing the compiled version):

bundle exec rake force_install

Installing to a CUSTOM_LOCATION

bundle exec rake force_install[CUSTOM_LOCATION]
Creating distributable

Note: Run after compiling

bundle exec rake package

For distributable across platforms os, windows and linux for bith x86 and x86_64

bundle exec rake package_all

New distribution details need to be updated in the ruby-install.json file in gauge plugin repository for a new verison update.

License

Apache License, Version 2.0

Copyright

Copyright ThoughtWorks, Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].