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

blissful-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blissful-rails

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Bliss.js for Rails

This gem wraps the Bliss.js library written by Lea Verou and makes it available to the Rails Asset Pipeline.

Installation

Add the gem to the Gemfile in your Rails project:

gem 'blissful-rails'

Then execute:

$ bundle install

And add your favourite flavour to your application.js file:

//= require bliss

If you want to go with the shy version (it doesn't touch the host environment, except by adding a global variable named Bliss), you might do want to add this instead:

//= require bliss.shy

You might also be interested in the blissful-ujs gem if you are looking to replace jquery-ujs. Read more about it here.

Usage

If you installed this library, then you might want to visit the documentation. Basically, I might give you a tip:


$.ready().then(function () {
  console.log('Ok, you\'ve loaded Bliss.js successfully!')
})

Blissful documentation mentions which jQuery methods are similar. The difference between those is the implementation: Bliss is only 3kb and might probably not work well in older browsers without polyfills.

See this if you have issues.

Development

This gem is updated once a week. Basically, if we find changes in the JavaScript library, we will put the new JavaScript files and upload a new gem. However, the library was written for little to no maintenance, hence even if you do not see activity in a month or so, it's safe to use.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/spicymagpie/blissful-rails.

License

The gem is available as open source under the terms of the MIT License.

Thanks

Thanks to Lea Verou for writing the library, and to Hendrik Kleinwächter for letting me experiment a little with other things.

FAQs

Package last updated on 29 Dec 2015

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