🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

tweetgithub

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tweetgithub

0.1.0
Rubygems
Version published
Maintainers
1
Created
Source

Tweetgithub

This is a Ruby Gem that creats a post in a Jekyll based Git site and posts a tweet at the same time.

To use it, you'll need to create a YAML file with your basic setup information and Twitter API credentials:

consumer_key: "" consumer_secret: "" access_token: "" access_token_secret: "" author: "" posts_dir: "/Somewhere/repos/repo/_posts/"

Programmatically:

tw = Tweetgithub::Tweetgithub.new("/Users/someone/Desktop/tweet-github/twitter_secrets.yml")
tw.tweet('Post text')

From the command-line:

tweetgithub /Path/to/Yaml/ "Tweet text" 

This will create a post in the Jekyll site then add, commit, and push the post, while also pushing it to Twitter.

Installation

Add this line to your application's Gemfile:

gem 'tweetgithub'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tweetgithub

FAQs

Package last updated on 03 Nov 2016

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