Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mwunsch-octocatnap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mwunsch-octocatnap

  • 0.7.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

OctocatNap

OctocatNap is a Ruby interface to the GitHub API v2.

The source of it's power is Weary.

Install

sudo gem sources -a http://gems.github.com  # If you haven't done that already
sudo gem install mwunsch-octocatnap

* Someday we can put this on Rubyforge

Requires

  • Weary >= 0.4.1

Authenticating

When you instantiate OctocatNap, you can pass different types of arguments to pass your credentials to the methods.

Explicitly
gh = OctocatNap.new("mwunsch", "my-super-secret-token")

or

gh = OctocatNap.new(["mwunsch","my-super-secret-token"])

or

gh = OctocatNap.new({:login => "mwunsch", :token => "my-super-secret-token"})
YAML

If you provide just one string when you instantiate, OctocatNap thinks that's the path to a file.

gh = OctocatNap.new(File.join(File.dirname(__FILE__), '..', "config.yml"))

That file should look something like this:

login: mwunsch
token: my-super-secret-token
~/.gitconfig

You can also get credentials from the global .gitconfig, as long as that is set up with your GitHub credentials

gh = OctocatNap.new(true)

This assumes your gitconfig is in a standard place, as detailed here: http://github.com/blog/180-local-github-config

API and Documentation

Coming soon. Keep an eye on the Wiki.

License

Copyright (c) 2009 Mark Wunsch. See LICENSE for details.

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc