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

angular_velocity

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular_velocity

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

AngularVelocity

Installation

Add this line to your application's Gemfile:

gem 'angular_velocity'

And then execute:

$ bundle

Or install it yourself as:

$ gem install angular_velocity

Usage

$ rails g angular_velocity:install -f
$ rm public/index.html

File are created under app/assets/javascripts/<application_name>/ And jasmine specs are created under spec/javascripts/<application_name>/

Commands

$ rails g angular_velocity:install

This command installs Angular and Jasmine into your Rails project. You can confirm Angular is installed by going to: http://localhost:3000/. Also, you can confirm jasmine is installed by going to: http://localhost:3000/specs

The directory structure created will resemble: --app
---assets
----javascripts
-----<--AppName-->
--------views
--------controllers
--------services
--spec
---javascripts
----controllers
----services

$ rails g angular_velocity:contoller <resource_name>

This command creates a contoller template for angular along with the spec for testing. The controller is place in:

--app
---assets
----javascripts
-----<--AppName-->
--------controllers
--spec
---javascripts
----controllers

$ rails g angular_velocity:service <resource_name>

This command creates a service template for angular along with the spec for testing. The service is place in:

--app
---assets
----javascripts
-----<--AppName-->
--------services
--spec
---javascripts
----services

$ rails g angular_velocity:scaffold <resource_name>

This command creates all angular files and jasmine files plus the rails controller and model files for a resource.

--app
--controllers
--- <--RailsController-->
--models
--- <--RailsModel-->
---assets
----javascripts
-----<--AppName-->
--------views
--------controllers
--------services
--spec
--controllers
--- <--RailsControllerSpec-->
--models
--- <--RailsModelSpec-->
---javascripts
----controllers
----services

FAQs

Package last updated on 11 Nov 2013

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