manns_shared

home

saigkill.github.io

code

github.com/saigkill/manns_shared

docs

github.com/saigkill/manns_shared/wikis/home

bugs

saigkill.myjetbrains.com/youtrack/issues

openhub statistics

www.openhub.net/p/manns_shared

openhatch

openhatch.org/projects/MannsShared

license

last public version

Build Status

downloads latest

Build Status

downloads all

Build Status

continuous integration

Build Status

continuous integration

code quality

code quality

Code Quality

security

security

test coverage

Test Coverage

dependency check

Dependency
Status

documentation quality

Documentation Quality

donations

Build
Status

donations

Build
Status

DESCRIPTION:

manns_shared is a small Ruby Library for “daily” tasks like search and replace, checking directory or oldconfig and so on.

FEATURES/PROBLEMS:

  • search and replace content in a file,

  • checking if a target directory exists, otherwise creating it,

  • searching a string inside a file,

  • cleanup a directory,

  • find out which text editor is available,

  • check if a config file is available

  • removing a node from a XML file.

SYNOPSIS:

Just add the next line to your code and use the methods:

require 'manns_shared'

Read the documentation at: github.com/saigkill/manns_shared/wikis/home

REQUIREMENTS:

  • nokogiri

  • setup

INSTALL:

The installation is very easy.

gem install manns_shared
cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.1/gems/manns_shared)
rake setup

Read the documentation at: github.com/saigkill/manns_shared/wikis/home

You have to run the setup after each gem update.

If you like this gem, don't forget to give the GitLab repo a star :-)

DEVELOPERS:

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs, and generate the RDoc.

Read github.com/saigkill/manns_shared/blob/master/CONTRIBUTING.md

LICENSE:

(The MIT License)

Copyright © 2015-2016 Sascha Manns <samannsml@directbox.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.