
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Twitter OAuth interface for CLI applications.
simple
require 'oauth/cli/twitter'
access_token = OAuth::CLI::Twitter.get_access_token(:pit => 'oauth-cli-twitter-simple')
access_token.post(
'http://twitter.com/statuses/update.json',
'status'=> 'hello from ruby-oauth-cli-twitter simple example'
)
define constants
require 'rubygems'
require 'rubytter'
require 'oauth/cli/twitter'
CONSUMER_TOKEN = '358RyJ77o4BYJUViVRQ'
CONSUMER_SECRET = 'aOHsTInoyOjNewpvC9c5uwBqF3XOd5xSGlHFtaB8A'
access_token = OAuth::CLI::Twitter.get_access_token(:pit => 'oauth-cli-twitter-dc')
rubytter = OAuthRubytter.new(access_token)
rubytter.update('hello from ruby-oauth-cli-twitter define constant example')
include
require 'rubygems'
require 'twitter'
require 'oauth/cli/twitter'
class MyApplication
include OAuth::CLI::Twitter
CONSUMER_TOKEN = '358RyJ77o4BYJUViVRQ'
CONSUMER_SECRET = 'aOHsTInoyOjNewpvC9c5uwBqF3XOd5xSGlHFtaB8A'
def initialize
access_token = get_access_token(:pit => 'oauth-cli-twitter-inclusion')
oauth = Twitter::OAuth.new(CONSUMER_TOKEN, CONSUMER_SECRET)
oauth.authorize_from_access(access_token.token, access_token.secret)
@twitter = Twitter::Base.new(oauth)
end
def update(status)
@twitter.update(status)
end
end
app = MyApplication.new
app.update('hello from ruby-oauth-cli-twitter inclusion example')
save config to file
include OAuth::CLI::Twitter
p get_acccess_token(:file => ENV['HOME'] + '/.my_app')
save config to pit
include OAuth::CLI::Twitter
p get_acccess_token(:pit => 'my_app')
rake install
gem install oauth-cli-twitter
Copyright (c) 2010 tily. See LICENSE for details.
FAQs
Unknown package
We found that oauth-cli-twitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.