Implement capistrano
Implement Capistrano

Squashed commit of the following:

commit f3fbc4fe739ac4fe08d8e61d23f900d4d439e89c
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 20:33:03 2014 +0200

    Change branch

commit f99bfd830bbefac4a1dbc3222a26bfd5f87dd7e4
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 20:31:25 2014 +0200

    Complete Capistrano conf

commit c309049019fee88bdedf3b3e15fdd60a20af305b
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 20:03:23 2014 +0200

    Disable bundler

commit 3d809f082c5f127dfb34f93d31ea139432264099
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 19:51:50 2014 +0200

    Enable bundler for capistrano

commit 55738fc12b8b1677b95e11b9ae17a99bf9664fb7
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 19:47:26 2014 +0200

    Update Gemfile

commit 48761a726a8a9cef70baad7e8a64394d31747612
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 19:25:29 2014 +0200

    Disable debugger and the ruby racer

commit 6c65ab9a777e4ae8bafc750ae1dbd3327d66bd11
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 19:07:15 2014 +0200

    User default_env

commit 0350fe24d3350d5cdcf22dea8b5c603857fd2d3b
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 18:27:30 2014 +0200

    Add execjs

commit 649337b84b2dd34f5c7396992ce8b2077a6f5676
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 18:11:25 2014 +0200

    Use interactive shell

commit d445b6a01f98905ab52f5e974047d1227ccc04e8
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 18:07:40 2014 +0200

    Switch back to rvm

commit 31bf645d8d6239c3515f0b50cba49507c0c5f68d
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 17:47:01 2014 +0200

    gem install rvm1-capistrano3

commit 00abfc1533bf072b4bb5923ba4f9f913d48c6b1d
Merge: 7b968f4 649d700
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 16:35:58 2014 +0200

    Merge branch 'master' into dnsadmin.blindtroll.com

commit 649d700ab476eeecc7e5d4c04e963c14209efd8f
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 16:33:03 2014 +0200

    Prepare for deploying
    http://stackoverflow.com/a/5190323/3289396

    Squashed commit of the following:

    commit ef62e9a7479cdcb2ca20ce7d31c2cd97b231eedb
    Author: pdostal <git@pdostal.cz>
    Date:   Sun Oct 12 15:54:03 2014 +0200

        Remove execjs

    commit 495bb70a4a3807ac8d11aee9771edb0987365d29
    Author: pdostal <git@pdostal.cz>
    Date:   Sun Oct 12 15:48:22 2014 +0200

        Remove duplicate therubyracer

    commit 142bcf33d9e2c7677a0d2a424242faca93e2604d
    Author: pdostal <git@pdostal.cz>
    Date:   Sun Oct 12 15:43:47 2014 +0200

        Temporary disable some tests

    commit d0390685311cbafe60da3a22582fae5a6c5f1012
    Author: pdostal <git@pdostal.cz>
    Date:   Sun Oct 12 15:34:26 2014 +0200

        Add CodeShip badge to README.md

    commit 4ff7ab2e9cc9e7b48353dd6e64e3001a16d368fd
    Author: pdostal <git@pdostal.cz>
    Date:   Sun Oct 12 15:10:19 2014 +0200

        Fix js problem

commit 7b968f4b5773eb1463be3b47cd21d93aa19f664a
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:59:52 2014 +0200

    Change rvm env

commit 0f34dfabe8db7dfd9c37b9aae7320e772575c177
Merge: bc39d7f ef62e9a
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:54:16 2014 +0200

    Merge branch 'master' into dnsadmin.blindtroll.com

commit ef62e9a7479cdcb2ca20ce7d31c2cd97b231eedb
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:54:03 2014 +0200

    Remove execjs

commit bc39d7f234ad65d5e6b3dd3ffffeb2d23618e97b
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:52:31 2014 +0200

    Add Capistrano to Gemfile

commit 495bb70a4a3807ac8d11aee9771edb0987365d29
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:48:22 2014 +0200

    Remove duplicate therubyracer

commit 142bcf33d9e2c7677a0d2a424242faca93e2604d
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:43:47 2014 +0200

    Temporary disable some tests

commit d0390685311cbafe60da3a22582fae5a6c5f1012
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:34:26 2014 +0200

    Add CodeShip badge to README.md

commit d0ed0a5ec3def777cb2ddef3f5467c88c8b78ead
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:12:47 2014 +0200

    Add rvm & rails tasks to Capfile

commit 4ff7ab2e9cc9e7b48353dd6e64e3001a16d368fd
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 15:10:19 2014 +0200

    Fix js problem

commit 8c44e24c75d73971dc11793b60aaa129cf11fd36
Author: pdostal <git@pdostal.cz>
Date:   Sun Oct 12 14:51:46 2014 +0200

    Hide database config and secret_key_base
Change branch back to master
Merge branch 'master' into dnsadmin.blindtroll.com

Conflicts:
	Gemfile.lock
Merge branch 'master' into dnsadmin.blindtroll.com

Conflicts:
	Gemfile
	Gemfile.lock
Add production.sqlite3 to shared files
Merge branch 'master' into dnsadmin.blindtroll.com
Fix tests

Run options: --seed 50522

.F...............E

Finished in 0.304999s, 59.0165 runs/s, 104.9183 assertions/s.

1) Failure:
RecordsControllerTest#test_should_destroy_record [/home/rof/src/github.com/pdostal/dnsAdmin/test/controllers/records_controller_test.rb:42]:
Expected response to be a redirect to <http://test.host/records> but was a redirect to <http://test.host/records?zone_id=1>.
Expected "http://test.host/records" to be === "http://test.host/records?zone_id=1".

2) Error:
ZonesControllerTest#test_should_show_zone:
ActionView::Template::Error:  method `four' for nil:NilClass
app/helpers/records_helper.rb:21:in `block in zonefile'
app/helpers/records_helper.rb:20:in `each'
app/helpers/records_helper.rb:20:in `zonefile'
app/views/zones/show.html.erb:34:in `_app_views_zones_show_html_erb___2374739184312050541_56789980'
test/controllers/zones_controller_test.rb:28:in `block in <class:ZonesControllerTest>'

18 runs, 32 assertions, 1 failures, 1 errors, 0 skips