Skip to content

bendyworks/latest.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

latest.rb provides rails templates with a dynamic way to install the latest version of your favorite software. Instead of having a template that goes out-of-date as soon as a url expires, you can specify that you want the latest version of a package. Of course, gems and plugins generally handle this just fine, but sometimes a version number is needed. One example is jQuery.

Dead simple. Just load latest.rb as a template in your template. bendyworks provides a copy for short url purposes:

load_template 'http://bendyworks.com/latest.rb'

Now use the latest method.

load_template 'http://bendyworks.com/latest.rb'
latest :jquery
# latest :jquery, :min       # (default)
# latest :jquery, :release
# latest :jquery, :standard

There are three things you must provide:

  • SOFTWARE_LIST: lambda function that installs the software

  • REQUIRES: array of required libraries

  • DEFAULTS: array of default options

latest.rb is written by Bradley Grzesiak of bendyworks llc.

latest.rb is licensed under the MIT License.

About

Adds "latest" function to Rails templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages