Project

humans_rb

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby gem for parsing humans.txt files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
>= 0

Runtime

~> 1.6
~> 0.7
 Project Readme

Humans.rb

A Ruby gem for parsing humans.txt files

Build Status

Installation

  1. Add gem 'humans-rb' to your project's Gemfile
  2. bundle install

Usage

# Passing a domain (defaults to domain/humans.txt)
> HumansRb.new("http://ben.balter.com").parse
=> {
    :site=> {
      :"last updated"=>"2015/03/12",
      :standards=>"HTML5, CSS3",
      :components=> "jekyll, jekyll-coffeescript, jekyll-sass-converter, kramdown, maruku, rdiscount, redcarpet, RedCloth, liquid, pygments.rb, jemoji, jekyll-mentions, jekyll-redirect-from, jekyll-sitemap, github-pages, ruby"
    },
    :team=> {
      :name=>"benbalter", :site=>"https://github.com/benbalter"},
      :name=>"balterbot", :site=>"https://github.com/balterbot"}
    }
  }

# Passing a URL
> HumansRb.new("http://ben.balter.com/humans.txt").parse
=> {:site=>..}

# Passing a string
> HumansRb.new("/* SITE */...").parse