December 16, 2015

Update for Ripsum

Tonight, I released version 0.1.2 of the Ripsum gem. This version adds a new feature to the gem, a configurable library of words. The user can now pass in their own choice of placeholder text. Hipster Ipsum. Zombie Ipsum. Harry Potter Ipsum. Whatever you choose.

This is done by adding an initializer file in your application. If you're using Rails, creating a new file in config/initializers/ directory, perhaps named ripsum_initializer.rb and adding a configuration block to the file like so:

Ripsum.configure do |config|
  config.library = "Your string of words here. You probably want a couple hundred words or more. Give yourself some variety."
end

Restart your server and boom, Ripsum is using your library of words to stress test your designs.

Categories
Web Development

+0

Liked the post? Why not show it?! Stroke Kyle's ego by stroking clicking his beard. You can click up to 50 times if you really liked it.


Spot a typo? Submit a PR with the fix! This entire blog is open sourced at https://github.com/kyleshevlin/blog
Newer Post: Using && and || in Bash Scripts
Older Post: Ripsum
Kyle Shevlin's face, which is mostly a beard with eyes
Kyle Shevlin is a front end web developer and software engineer who specializes in JavaScript and React.