Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 8, 2013
  1. Geoff Harcourt Dan Croak

    Don't generate request or routing specs

    geoffharcourt authored croaky committed
  2. Geoff Harcourt Dan Croak

    Use more verbose factories spec

    geoffharcourt authored croaky committed
    Use code from factory girl wiki testing factories are producting valid
    models. See issue #123.
Commits on Apr 6, 2013
  1. Dan Croak

    Clean up Gemfile and gemspec

    croaky authored
    * Use secure RubyGems.org URL.
    * Use semantic versioning on minor versions of dependencies.
    * Upgrade dependencies.
  2. Dan Croak

    Switch web server from Thin to Unicorn

    croaky authored
    As the Rails application scales to more Heroku dynos, a lack of
    concurrency can result in [poor performance](1) and an over-provisioning
    of resources. Modifying the app to handle requests more efficiently is
    a simple process with immediate benefits.
    
    Unicorn is a [concurrent web server](2) that spawns several processes
    within a single dyno without requiring concurrency or threading
    awareness in your app.  Applications that migrate to Unicorn often
    require fewer dynos and see increased performance.
    
    The [config/unicorn.rb file](3) specifies the number of concurrent web
    processes to run on each dyno as well as the proper forking and
    termination behavior.
    
    [1] https://blog.heroku.com/archives/2013/2/16/routing_performance_update
    [2] https://blog.heroku.com/archives/2013/2/27/unicorn_rails
    [3] https://devcenter.heroku.com/articles/rails-unicorn#adding-unicorn-to-your-application
Commits on Mar 26, 2013
  1. Dan Croak

    Remove Psych from Gemfile

    croaky authored
    The reason this was here was to resolve Bundler / Psych double loads
    
        `<class:Parser>': superclass mismatch for class Mark (TypeError)
    
    bundler/bundler#2068
    
    The issue has been fixed in Rubygems >= 2.0 and Bundler >= 1.3.0, which
    we should all be using now.
Commits on Mar 15, 2013
  1. Dan Croak

    Bump to 1.2.2

    croaky authored
    Patch version incremented for bug fix.
  2. Duke Dan Croak

    Fix SyntaxError caused by missing newline

    dukex authored croaky committed
    Occured in staging and production environments
    
    The error:
    
        /app/config/environments/staging.rb:1: syntax error, unexpected
        tIDENTIFIER, expecting $end
        ...ENV['EMAIL_RECIPIENTS'])require Rails.root.join('config/init..
Commits on Mar 9, 2013
  1. Geoff Harcourt Dan Croak

    Include factory_girl_rails in development env

    geoffharcourt authored croaky committed
    Including FactoryGirl in the development environment ensures that
    factories get created when default generators are used. Adding
    FactoryGirl to development also provides factory functionality when in
    the development console.
Commits on Feb 28, 2013
  1. Ry Walker

    Bump to 1.2.1

    ryw authored
Commits on Feb 27, 2013
  1. Dan Croak

    Support Ruby 1.9.3 and 2.0

    croaky authored
Commits on Feb 25, 2013
  1. Dan Croak

    Update staging and production email delivery

    croaky authored
    * Use recipient_interceptor gem.
    * Use the Mail gem's interceptor feature.
    * Separate SMTP from intercepting responsibilities.
    * Set up SMTP for production and staging.
    
    http://robots.thoughtbot.com/post/40822987615/delivering-all-email-from-staging-to-a-group-email
Commits on Feb 24, 2013
  1. Dan Croak

    Remove Spork and Guard

    croaky authored
    Use Zeus, Commands, or Spring instead:
    
    https://github.com/burke/zeus
    https://github.com/rails/commands
    https://github.com/jonleighton/spring
    
    They are superior to Spork for the following reasons:
    
    * You don't have to commit anything into your Gemfile, spec/spec_helper,
      or version control.
    * They improve the Rails bootup speed of rails server, runner, generate,
      console, and rake tasks... not just tests.
Commits on Feb 22, 2013
  1. Nikolay Shebanov Dan Croak

    Add better_errors and binding_of_caller gems

    killthekitten authored croaky committed
Commits on Feb 21, 2013
  1. Dan Croak

    Fix ActiveRecord attributes' blacklist

    croaky authored
    Suspenders previously added the line
    `config.active_record.whitelist_attributes = false` but did not remove
    the line `config.active_record.whitelist_attributes = true` later on in
    the file, which reversed the line Suspenders created.
Commits on Feb 15, 2013
  1. Dan Croak

    Add Flutie to Gemfile

    croaky authored
    * We use `body_class` and `page_title` view helpers in the application
      layout, which come from Flutie.
    * We had previously removed Flutie because Flutie 1.x included lots of
      styles which have been superceded by Bourbon/Neat/Smash.
    * Flutie 2.x is just the view helpers and we think `body_class` and
      `page_title` are valuable.
Commits on Feb 13, 2013
  1. Dan Croak

    Bump to 1.2.0

    croaky authored
  2. Dan Croak
  3. Dan Croak

    Add staging config variables to Heroku

    croaky authored
    These two variables are necessary to make the staging environment use
    staging configuration.
  4. Casey Olson Dan Croak

    Fix broken links in README

    bookcasey authored croaky committed
    Apply 80-character width limit on long lines.
Commits on Feb 8, 2013
  1. Brendon Murphy Joe Ferris

    Remove flutie import.

    bemurphy authored jferris committed
    Flutie gem was yanked in 7c3c377 but the import remained
  2. Dan Croak

    Add missing extension for strong_parameters.rb

    Shawn Sorichetti authored croaky committed
    The .rb extension was missing which would cause the copy to fail, and
    the whole process to stop.
Commits on Jan 26, 2013
  1. Brendon Murphy

    Swap Gemfile_additions to Gemfile_clean in README

    bemurphy authored
    Looks like it changed in 7c3c377
Commits on Jan 25, 2013
  1. Dan Croak

    Wrap all HTTP requests in a 5 second timeout

    croaky authored
    * Web requests should be typically processed in no more than 500ms, and
      ideally under 200ms.
    * Even though an error page will be issued to the client, and the
      connection terminated, when a timeout occurs the web process is still
      left to process the request. Subsequent requests may then be routed to
      the same process which will be unable to respond, causing further
      degradation.
    * rack-timeout ensures processes don’t remain tied up after 5 seconds of
      inactivity.
    * This also makes it less likely that a user sees a timeout page and the
      change they were trying to make actually went through (ie, their
      credit card is charged but they see a generic error page).
    
    https://devcenter.heroku.com/articles/request-timeout
Commits on Jan 24, 2013
  1. Dan Croak

    Configure Strong Parameters

    croaky authored
    * Activate strong parameters in all ActiveRecord models.
    * Blacklist ActiveRecord attributes to remove need for `attr_accessible`
      in models and allow mass assignment inside model code and specs.
Commits on Jan 18, 2013
  1. Dan Croak

    Update current gem defaults

    croaky authored
    Provide fewer options and more opinions:
    
    * Add assets group to Gemfile.
    * Add jQuery to Gemfile.
    * Add Postgres to Gemfile.
    * Add Rails to Gemfile.
    * Add Strong Parameters to Gemfile.
    * Alphabetize existing gems.
    * Make Capybara Webkit a default.
    * Remove Clearance.
    * Remove Flutie.
    * Remove Paperclip.
    * Replace Formtastic with Simple Form.
    * Specify minimum version of Capybara Webkit.
    * Specify minimum version of Rails.
Commits on Jan 17, 2013
  1. Mark Kraemer Dan Croak

    Fix grammar

    mark-kraemer authored croaky committed
    The word "new" was repeated.
  2. Geoff Harcourt Dan Croak
  3. Geoff Harcourt Dan Croak
Commits on Jan 9, 2013
  1. Dan Croak

    Rename script/setup to bin/setup

    croaky authored
    This will be the Rails 4 recommendation:
    
    rails/rails@009873a
    
    * Include `-e $RACK_ENV` in `Procfile` per Heroku docs.
    * Make bin/setup idempotent by only copying `.sample.env` to `.env` if
      `.env` file does not exist yet. Prevent users from accidentally
      overwriting the file, which is not kept in version control.
    * Change `sample.env` to a `.sample.env` so it shows less often.
Commits on Jan 6, 2013
  1. Adarsh Pandit
Commits on Jan 2, 2013
  1. Greg Lazarev

    Use run_simple vs run to execute commands

    gylaz authored
    * run_simple tests that the command was successful
  2. Greg Lazarev
  3. Greg Lazarev

    Fix cucumber tests

    gylaz authored
    * Drop databases prior to suspending an app (clearance acts different
    *   based on whether users table exists or not)
    * Verify that each rake tast succeeds
    * Use clear rake run step
Commits on Dec 31, 2012
  1. Greg Lazarev Dan Croak

    Force RSpec's expect syntax

    gylaz authored croaky committed
    This forces us to use [RSpec's expectation
    syntax](http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax)
    with the `config.syntax = :expect` setting. The reasons to do so include:
    
    * Style: it highlights the verification phase of the Four-Phase Test well by
      starting each line with `expect`, wrapping the outcome in the parentheses.
    * Consistency across RSpec specs.
    * Consistency with Jasmine.
    * Avoids weird, confusing errors when testing delegate/proxy objects.
    * Avoids Ruby warning with `should ==`.
  2. Greg Lazarev Dan Croak

    Remove remaining references to Cucumber

    gylaz authored croaky committed
    * Use the defined step to rake cleanly.
    * Remove leading spaces before JS driver. It causes inconsistent
      formatting.
Something went wrong with that request. Please try again.