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

grade_runner

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grade_runner

  • 0.0.12
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

grade_runner

A Ruby client for firstdraft Grades

Installation

Add this line to your application's Gemfile:

gem "grade_runner", github: "firstdraft/grade_runner"

And then execute:

$ bundle

Usage

Rails

After installed, run rails grade to run specs.

Ruby

In order to load and run the Rake task, you need to load it.

This is usually done by making a runnable file1, typically called bin/rails, with contents that look like this:

#!/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
require "rake"

dir = Gem::Specification.find_by_name("grade_runner").gem_dir

load "#{dir}/lib/tasks/grade.rake"
task_name = ARGV[0]

Rake::Task[task_name].invoke

Then you can run bin/rails grade like before. You can even add this file to the PATH so you can run rails grade like with Rails apps.

echo 'export PATH="$PATH:/path/to/project/bin/rails"' >> ~/.bashrc
source ~/.bashrc

Copyright (c) 2018 Raghu Betina. See LICENSE.txt for further details.

Footnotes

  1. If you get file permissions errors when running bin/rails grade try updating the permissions with chmod 755 bin/rails first.

FAQs

Package last updated on 06 Aug 2024

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