github.com

...be considered deprecated. We will migrate the test setup of existing gems to Gemika whenever we make larger changes to it. Gemika is currently used in minidusen...

namespace :foo do task :bar, :roles => :something do # do crazy stuff end end Whenever we call foo.bar in our recipe, Capistrano will fail if you deploy to a stage...

stackoverflow.com

...TimeWithZone as expected >> DateTime.current.beginning_of_day.class => DateTime # not a ActiveSupport::TimeWithZone as expected This means that whenever you are using those values for database interaction, you'll end up scoping on the...

node.attribute('foo').value returns its value node.content returns the content Careful with XPath: Whenever an XML document declares a namespace, like <list xmlns="http://mylist.org'> xml % './/list' will not...

This problem is reported on TechNet, for example. It seems the problem occurs whenever the organizer of an event is identical to the recipient of the email. Typically, ICS...

...the rake task like rake some_namespace:some_task --backtrace How this works with whenever Define a own job_type and use it for rake tasks in schedule.rb

...other memory is available sudo sysctl vm.swappiness 1 # Linux will try to avoid swap whenever possible The default value of the swappiness parameter is...

...that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, there is a better way that lets you keep an up-to-date...

...a custom $cacheFactory instance for your Restangular resources where you could expire cached responses whenever nescessary...

makandra dev

...target another memory area than where the file was located previously. Prefer disk encryption whenever possible. Erasing directories To erase complete directory structures, using shred is cumbersome. Use wipe instead...

...CSS the result will vary across all major browsers.\ Use an even line-height whenever possible. When you are styling block elements you often apply both height and line-height...

...Blogtrottr. Blogtrottr is an RSS-to-email service that sends you an e-mail whenever the feed updates...

...investigate a test failure it is super annoying when the terminal scrolls back down whenever the running test outputs another line. Luckily you can disable this behavior: Gnome terminal: *Edit...

We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara complains: No such option 'Foo' in this select box. Available...

...that holds your projects. Note that, like the vanilla bundle install, this will fail whenever a new gem compiles native components and requires a missing system dependency...

stackoverflow.com

...old_value, new_value| # Return something end The block of merge! will be called whenever a key in the argument hash already exists in the base hash. Since hash is...

...seem obvious, but I'm rejecting stories because of this on a regular basis. Whenever a list (e.g. an index of records or the options of a select box) is...

...during development. This means every request begins with none of your models, controllers, loaded. Whenever Ruby encounters a constant name it doesn't know yet, it guesses the correct .rb...

makandra dev
github.com

The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it will wrap the application's JSON response appropriately.

github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and a screenshot (when using capybara-webkit, Selenium or poltergeist) is...

github.com

Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs...

dancingpenguinsoflight.com

The ability to update and close Trac tickets associated with a given repo whenever a commit is made to that repo is pretty handy. No more committing, going to the...

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the page is delivered with. Example issues When your page is...

github.com

...Turn confusing long strings into formatted output. Have objects and classes laid out clearly whenever you need it. Put gem 'awesome_print', :group => :development into your Gemfile. Now on the...