Project

ghstatus

0.0
No commit activity in last 3 years
No release in over 3 years
Get GitHub's status via the command line. Or use it in an app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 10.3
~> 3.0

Runtime

~> 2.0
 Project Readme

Gst

Easily get Github's Status as Ruby objects or use the command line tool.

Motivation

I used to get these very often:

➜  repo-name git:(master) git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

And often I didn't know if it's my internet connection's fault, or GitHub's APIs had problems. And I am too lazy to open the browser and check status.github.com everytime I see the message above.

Installation

Add this line to your application's Gemfile:

gem 'gst'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gst

Usage

In Ruby

To get the current Github Status:

GST::Status.current 

To get the last Github Status message:

GST::Message.last

To get most recent Github Status messages:

GST::Message.recent

Via command line

The current API status:

ghstatus

Last API status as a human readable message:

ghstatus last     

Last few API statuses as a human readable messages:

ghstatus recent   

Help:

ghstatus help

Contributing

  1. Fork it ( http://github.com//gst/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request