Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
NeonRAW is an API wrapper for Reddit written in Ruby.
Add this line to your application's Gemfile:
gem 'NeonRAW'
And then execute:
$ bundle
Or install it yourself as:
$ gem install NeonRAW
Just require the gem at the top of your file.
require 'NeonRAW'
# Make a web app.
client = NeonRAW.web('client_id', 'secret', 'redirect_uri', user_agent: 'test')
url = client.auth_url('state', ['identity', 'read'], 'permanent')
puts "Go to #{url} and enter the code below: "
code = gets.chomp
client.authorize! code
# Make a script app. Script apps automatically authorize themselves for you.
client = NeonRAW.script('username', 'password', 'client_id',
'secret', user_agent: 'test')
# Fetch some submissions from /r/programming's hot queue.
subreddit = client.subreddit 'programming'
submissions = subreddit.hot limit: 10
submissions.each_with_index do |submission, i|
puts "#{i + 1}: #{submission.title}"
end
# Fetch a user and message them if they're a friend.
user = client.user 'SirNeon'
user.message 'Hi.', "How's it going?" if user.friend?
# Fetch yourself and check your orangereds if you have mail.
myself = client.me
new_messages = myself.inbox limit: myself.inbox_count if myself.mail?
FAQs
Unknown package
We found that NeonRAW 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.