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

junior-rails

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junior-rails

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Junior::Rails

junior-rails packages awesome Junior front-end framework files and integrates it into Rails apps.

Currently only works in Rails 3.1+ with asset pipeline enabled

Installation

Add this line to your application's Gemfile:

gem 'junior-rails'

And then execute:

$ bundle

Usage

After installing the gem, add Junior assets to your manifest files:

# application.js
//= require junior_manifest

OR in case if don't want to include certain files (let's say you already have modernizr in your app), you can require files individually:

# application.js
//= require modernizr.custom.15848
//= require zepto.min
//= require zepto.flickable.min
//= require lodash.min
//= require backbone-min
//= require junior

Junior CSS files

# application.css
/*...
*= require junior_manifest
*/

OR require individually:

# application.css
/*...
*= require ratchet
*= require junior
*/

Acknowledgements

Heavily influenced by jquery-rails

Contributing

  1. If any of libraries in vendor/assets is out of date, feel free to put in a pull request with new version of the library.
  2. Since junior.js version is not stated clearly, JUNIOR_VERSION constant in version.rb is SHA1 hash of junior.js. It can be calculated using sha1_version_generator.rb located in the root of the gem:
ruby sha1_version_generator.rb vendor/assets/javascripts/junior.js
  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 13 Feb 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