All Projects → rejeep → Ruby Tools.el

rejeep / Ruby Tools.el

Collection of handy functions for Emacs ruby-mode

Labels

Projects that are alternatives of or similar to Ruby Tools.el

Cucumber Js
Cucumber for JavaScript
Stars: ✭ 4,383 (+4770%)
Mutual labels:  cucumber
Fabrication
This project has moved to GitLab! Please check there for the latest updates.
Stars: ✭ 1,017 (+1030%)
Mutual labels:  cucumber
Mobileautomationframework
Single code base framework to test android and iOS app using appium (v6.1.0), maven, testng,java. Option to start appium server programmatically.
Stars: ✭ 66 (-26.67%)
Mutual labels:  cucumber
Appiumtestdistribution
A tool for running android and iOS appium tests in parallel across devices... U like it STAR it !
Stars: ✭ 764 (+748.89%)
Mutual labels:  cucumber
Cucumber Protractor Harness
Simple starter project for incorporating cucumber (2.3.1) with protractor
Stars: ✭ 9 (-90%)
Mutual labels:  cucumber
Intellij Cucumber Scala
Enables navigation between cucumber feature steps and glue code using cucumber-scala DSL.
Stars: ✭ 48 (-46.67%)
Mutual labels:  cucumber
Cucumber Boilerplate
Boilerplate project to run WebdriverIO tests with Cucumber
Stars: ✭ 411 (+356.67%)
Mutual labels:  cucumber
Spring Boot Sample App
Sample app generated from my spring boot archtype on :https://github.com/Romeh/spring-boot-quickstart-archtype
Stars: ✭ 81 (-10%)
Mutual labels:  cucumber
Oerpscenario
Business Driven Development (BDD) for OpenERP/Odoo
Stars: ✭ 32 (-64.44%)
Mutual labels:  cucumber
Email Spec
Collection of RSpec/MiniTest matchers and Cucumber steps for testing email in a ruby app using ActionMailer or Pony
Stars: ✭ 1,142 (+1168.89%)
Mutual labels:  cucumber
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+7915.56%)
Mutual labels:  cucumber
Cuke linter
A linting tool for Cucumber
Stars: ✭ 24 (-73.33%)
Mutual labels:  cucumber
Cucumber Api
API validator in BBD style with Cucumber
Stars: ✭ 50 (-44.44%)
Mutual labels:  cucumber
Karate
Test Automation Made Simple
Stars: ✭ 5,497 (+6007.78%)
Mutual labels:  cucumber
Wdio Cucumber Framework
A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
Stars: ✭ 77 (-14.44%)
Mutual labels:  cucumber
Knapsack
Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
Stars: ✭ 430 (+377.78%)
Mutual labels:  cucumber
Specflow.assist.dynamic
Extension methods to create dynamic objects from SpecFlow tables
Stars: ✭ 45 (-50%)
Mutual labels:  cucumber
Godog
Cucumber for golang
Stars: ✭ 1,287 (+1330%)
Mutual labels:  cucumber
Gradle Cucumber Plugin
Plugin to support cucumber-jvm in Gradle builds
Stars: ✭ 80 (-11.11%)
Mutual labels:  cucumber
Cypress Cucumber Example
An example skeleton with Cypress and Cucumber
Stars: ✭ 57 (-36.67%)
Mutual labels:  cucumber

Ruby tools

Ruby tools is a collection of handy functions for Emacs ruby-mode. You can turn a string to symbol, symbol to string, single to double quote string, double to single quote string, clear string, interpolate and more...

Installation

I recommend installing via ELPA, but manual installation is simple as well:

(add-to-list 'load-path "/path/to/ruby-tools")
(require 'ruby-tools)

Usage

When ruby-mode is started, ruby-tools-mode will automatically start.

Once started, this functionality is available:

Convert symbol to string

Insert:

foo(:bar)

Place cursor on :bar, then press C-' and you will see:

foo('bar')

Convert string to symbol

Insert:

foo('bar')
foo("bar")

Place cursor on bar, then press C-: and you will see:

foo(:bar)
foo(:bar)

Convert single quote string to double quote string

Insert:

foo('bar')

Place cursor on bar, then press C-" and you will see:

foo("bar")

Convert double quote string to single quote string

Insert:

foo("bar")

Place cursor on bar, then press C-' and you will see:

foo('bar')

Clear string content

Insert:

foo('bar')

Place cursor on bar, then press C-; and you will see:

foo('')

String interpolation

Insert:

foo('bar')
foo("bar")
`bar`
%(bar)

Place cursor on bar, then press # and you will see:

foo('b#ar')
foo("b#{}ar")
`b#{}ar`
%(b#{}ar)

TODO

  • Add/remove parenthesis on function call/definition
  • re-builder for Ruby regex syntax

Contribution

Contribution is much welcome! Ruby tools is tested using Ecukes. When adding new features, please write tests for them!

Install cask if you haven't already, then:

$ cd /path/to/ruby-tools
$ cask

Run all tests with:

$ make
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].