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

super_source_hello_world

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super_source_hello_world

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hello World for Ruby projects

Description

This is an example of a Ruby project using Super Source. It contains one function, hello_world, which outputs "Hello world!"

Installation

  1. Create a new directory for your example project

  2. Create a Gemfile with the following contents:

source 'https://rubygems.org'

gem 'super_source_hello_world', '>=1.1.0'
  1. Run bundle install

  2. Create a main.rb file with the following contents:

require 'super_source_hello_world'

SuperSourceHelloWorld.hello_world
  1. Run ruby main.rb - it should throw an exception since you have not acquired a client token from Super Source yet.

  2. Run supso update (if you do not have the supso command line utility, get it with gem install supso)

  3. Follow the instructions when prompted, which will include confirming your email address. This should populate a new directory in your project under .supso

  4. Rerun ruby main.rb - it should successfully output hello world!

FAQs

Package last updated on 20 Apr 2017

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