New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flavored_gherkin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flavored_gherkin

  • 0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

FlavoredGherkin

Gem Version Build status Windows Build status

Ruby gem to convert gherkin feature files into html and pdf flavour.

Html Flavour Sample

Pdf Flavour Sample

More flavours coming soon!

Installation


gem install flavored_gherkin

Information

Usage

Options:

OptionTypeDefaultValues
title[String]'Flavored Gherkin'Flavored Gherkin Title
feature_path / input_path[String]Present Working DirectoryFeature Files Path
output_path[String]Present Working DirectoryFlavored Gherkin Output Path
flavour[String]'Html''Html' or 'Pdf'

Code Examples:


     require 'flavored_gherkin'
    
    # Example 1:
    
    FlavoredGherkin.configure do |config|
      config.title = 'My Features'
      config.feature_path = 'myFolder/features'
      config.output_path = 'myFolder/my_features'
    end
    
    FlavoredGherkin.build
    
    # Example 2:
    
    options = {
       title: 'My Features',
       feature_path: 'myFolder/features',
       output_path: 'myFolder/my_features'
     }
    
    FlavoredGherkin.build options
        
    # Example 3:
    
    FlavoredGherkin.set 'title', 'My Features'
    FlavoredGherkin.set 'feature_path', 'myFolder/features'
    FlavoredGherkin.set  'output_path', 'myFolder/my_features'
    
    FlavoredGherkin.build
    
    # Example 4:
    
    FlavoredGherkin.title = 'My Features'
    FlavoredGherkin.feature_path = 'myFolder/features'
    FlavoredGherkin.output_path  = 'myFolder/my_features'
    FlavoredGherkin.flavour  = 'pdf'
    
    FlavoredGherkin.build
                

CLI Options:

OptionValuesExplanation
-t, --sourceTITLEFlavored Gherkin Title
-f, --features / -i, --inFEATURE_PATHFeature Files Path
-o, --outOUTPUT_PATHFlavored Gherkin Output Path
-F, --flavourFLAVOUR'Html' or 'Pdf'

CLI Example:


     flavored_gherkin
     
     flavored_gherkin -f 'myFolder/features'
     
     flavored_gherkin -t 'My Features' -f 'myFolder/features' -o 'myFolder/my_features'

Contributing

We're open to any contribution. It has to be tested properly though.

Collaborators

License

Copyright (c) 2017 MIT LICENSE

FAQs

Package last updated on 03 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc