Coder Social home page Coder Social logo

sachin21 / space2underscore Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 343 KB

Change the space into underscore.

Home Page: http://rubygems.org/gems/space2underscore

License: MIT License

Ruby 100.00%
ruby ruby-gem shorthand command-line command-line-tool command-line-tools

space2underscore's Introduction

Space2underscore

Gem Version Build Status Code Climate Coverage Status Gem

What is space2underscore

Change the space into underscore. space2underscore is a useful command when you want to check out a branch.

Installation

Install it yourself as:

$ gem install space2underscore

Usage

From the command line:

1. e.g. Create the new branch

$ s2u new branch -c
=>  Switched to a new branch 'new_branch’

Run with --create or -c options.

2. e.g. Rename the already created a branch

$ git branch -m $(s2u renamed branch)

!! Cation !!

This is a command line tool. So DO NOT include space2underscore's module in other Ruby application because it uses system command. If you include this module to your application, there is a possibility of crackers attacking.

Credits

space2underscore's People

Contributors

sachin21 avatar tsugitta avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

space2underscore's Issues

Lock the RuboCop version over `0.49.0`

Summary

I noticed RuboCop did have a security issue.

The rubocop dependency defined in Gemfile.lock has a known low severity security vulnerability in version range < 0.48.1 and should be updated.

ToDo

  • Lock the RuboCop version over 0.49.0.

v0.5.2

Tasks

  • Update change logs.
  • Push gem to rubygems.
  • Write release note.

Do not manage Gemfile.lock

Summary

Release gem dependency of space2underscore. For all people's complex dependency gems.

ToDo

  • Remove Gemfile.lock.
  • Add the Gemfile.lock to .gitignore.

Refactor all codes

Tasks

  • Refactor lib/space2underscore.rb.
  • Refactor spec/space2underscore_spec.rb.
  • Refactor bin/*.

v.0.5.1

Release note

  • Fix a bug where failed to print usage.

Refactor RSpec's code

describe '.usage' do
  it 'returns String class' do
    expect(Space2underscore.usage).to be_a(String)
  end

  it 'does not return an blank string does' do
    expect(Space2underscore.usage).not_to be_nil
  end
end

does not return a blank string does

This test is needless because the above example was completely satisfied the specification.

Add an option for raw

#Summary
I want to use the downcase string. so Add an option for raw.
e.g.

s2u Upgrade Ruby to 2.4.2
# upgrade_ruby_to_2.4.2

v0.4.4

Release note

  • Change the symbolic link (./bin/s2u) to plain text. It was broken by latest gem command.
  • Add a rake task for tagging.

Change symbolic link to plain text

$ gem i space2underscore
Fetching: space2underscore-0.4.3.gem (100%)
/home/sachin21dev/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/space2underscore-0.4.3/bin/s2u maybe `gem pristine space2underscore` will fix it?

Symbolic link is not available for rubygems.

I have to resolve test on Travis CI

This failure is an error related to git.
errors logs:

Randomized with seed 12557
...fatal: A branch named 'foo_bar' already exists.
FDeleted branch foo_bar (was edb1a5a).
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.