grab executable from rubygems

As done here d7fc97d3f90c0e30865d32ce202658f03248cacc
Update of 'The Asset Pipeline' guide for Rails 4. [ci skip]
Revert "fix order dependent test related to migration"

This reverts commit 10259c3e906da2191ef0d43cd664a3b5504d9f8c.

reason: this causes rake test_mysql and test_mysql2 fail
Avoid "uninitialized constant ActiveRecord::PendingMigrationError::Rails"
Add ability to specify how a class is converted to Arel predicate

This adds the ability for rails apps or gems to have granular control
over how a domain object is converted to sql. One simple use case would
be to add support for Regexp. Another simple case would be something
like the following:

    class DateRange < Struct.new(:start, :end)
      def include?(date)
        (start..end).cover?(date)
      end
    end

    class DateRangePredicate
      def call(attribute, range)
        attribute.in(range.start..range.end)
      end
    end

    ActiveRecord::PredicateBuilder.register_handler(DateRange,
      DateRangePredicate.new)

More complex cases might include taking a currency object and converting
it from EUR to USD before performing the query.

By moving the existing handlers to this format, we were also able to
nicely refactor a rather nasty method in PredicateBuilder.
Added Time#middle_of_day

Added middle_of_day method to Date and DateTime
Merge pull request #11608 from arunagw/ruby-from-rubygems

grab executable from rubygems
Add Time#to_s(:iso8601) for easy conversion of times to the iso8601 format for easy Javascript date parsing
remove duplicate method

This method is already present in helper.rb
use method with_active_record_default_timezone
interceptor should mimick original method

This fix also makes the test order independent.
Merge pull request #11646 from neerajdotname/remove_duplicate_method

remove duplicate method
Improved the doc about showing posts in getting started guide [ci skip]

- Reference #11644
Merge pull request #11648 from prathamesh-sonpatki/doc-fix

Improved the doc about showing posts in getting started guide [ci skip]
Move changelog entry to the top [ci skip]
Merge pull request #11649 from neerajdotname/use_method_with_active_record_default_timezone

use method with_active_record_default_timezone
Fix handling of offsets with Time#to_s(:iso8601)

Use a lambda to ensure that the generated string respects the offset of
the time value. Also add DateTime#to_s(:iso8601) and Date#to_s(:iso8601)
for completeness.
Fixing the broken URL [skip ci]
Add installation instructions for FreeBSD [ci skip]

Add packages required to setup the rails environment on FreeBSD.
Merge pull request #11653 from ankit8898/typo

Fixing the broken URL [skip ci]