{"action":"created","issue":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/402","labels_url":"https://api.github.com/repos/airbrake/airbrake/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/airbrake/airbrake/issues/402/comments","events_url":"https://api.github.com/repos/airbrake/airbrake/issues/402/events","html_url":"https://github.com/airbrake/airbrake/issues/402","id":99508431,"number":402,"title":"Capistrano airbrake hook failing on RAILS_ENV symbol","user":{"login":"alexis779","id":210994,"avatar_url":"https://avatars.githubusercontent.com/u/210994?v=3","gravatar_id":"","url":"https://api.github.com/users/alexis779","html_url":"https://github.com/alexis779","followers_url":"https://api.github.com/users/alexis779/followers","following_url":"https://api.github.com/users/alexis779/following{/other_user}","gists_url":"https://api.github.com/users/alexis779/gists{/gist_id}","starred_url":"https://api.github.com/users/alexis779/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexis779/subscriptions","organizations_url":"https://api.github.com/users/alexis779/orgs","repos_url":"https://api.github.com/users/alexis779/repos","events_url":"https://api.github.com/users/alexis779/events{/privacy}","received_events_url":"https://api.github.com/users/alexis779/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-06T19:34:50Z","updated_at":"2015-08-25T02:16:31Z","closed_at":"2015-08-19T04:01:07Z","body":"After a change of Gemfile.lock with an upgrade of rails from 3.2.21 to 3.2.22 and rack from 1.4.5 to 1.4.7, we now have and error in capistrano deployment on airbrake hook.\r\n\r\nWe have in ```config/deploy.rb```\r\n```Ruby\r\nrequire 'airbrake/capistrano'\r\n```\r\n\r\nThe capistrano command ```bundle exec cap dev deploy``` displays following output\r\n\r\n```\r\n    triggering after callbacks for `deploy'\r\n  * executing `airbrake:deploy'\r\n\r\n/data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/airbrake-4.3.0/lib/airbrake/capistrano.rb:80:in `+': no implicit conversion of Symbol into String (TypeError)\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/airbrake-4.3.0/lib/airbrake/capistrano.rb:80:in `block (3 levels) in load_into'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:138:in `instance_eval'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:89:in `execute_task'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/callback.rb:38:in `call'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/callbacks.rb:141:in `each'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/callbacks.rb:141:in `trigger'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:89:in `execute_task'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/execute.rb:45:in `each'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/execute.rb:34:in `execute!'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/lib/capistrano/cli/execute.rb:14:in `execute'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.6/bin/cap:4:in `<top (required)>'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/bin/cap:23:in `load'\r\n\tfrom /data/jenkins/.jenkins/jobs/storm-api-staging2/workspace/vendor/bundle/ruby/2.1.0/bin/cap:23:in `<main>'\r\n```\r\n\r\nThe rails_env now contains a symbol instead of a string which make this line break in ```lib/airbrake/capistrano.rb```\r\n\r\n```Ruby\r\nnotify_command = \"cd #{directory}; #{executable} #{'RACK_ENV='+rack_env if rack_env} #{'RAILS_ENV='+rails_env if rails_env} airbrake:deploy TO=#{airbrake_env} REVISION=#{current_revision} REPO=#{repository} USER=#{Airbrake::Capistrano::shellescape(local_user)}\"\r\n```\r\n\r\nwhile i would see more something like:\r\n\r\n```Ruby\r\nenv_variables = \"\"\r\nenv_variables << \" RACK_ENV=#{rack_env}\" if rack_env\r\nenv_variables << \" RAILS_ENV=#{rails_env}\" if rails_env\r\n\r\nnotify_command = \"cd #{directory}; #{executable}#{env_variables} airbrake:deploy TO=#{airbrake_env} REVISION=#{current_revision} REPO=#{repository} USER=#{Airbrake::Capistrano::shellescape(local_user)}\"\r\n```\r\n\r\nIssue Type:\r\nBug Report\r\n\r\nAirbrake Gem Version:\r\n4.3.0\r\n\r\nRuby Version:\r\nruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]\r\n\r\nFramework:\r\nrails (3.2.22)\r\nrack (1.4.7)\r\ncapistrano (2.15.6)\r\n\r\nEnvironment Name:\r\nRails environment: staging\r\nCap environment: dev\r\n"},"comment":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/comments/134450047","html_url":"https://github.com/airbrake/airbrake/issues/402#issuecomment-134450047","issue_url":"https://api.github.com/repos/airbrake/airbrake/issues/402","id":134450047,"user":{"login":"shifi","id":2136477,"avatar_url":"https://avatars.githubusercontent.com/u/2136477?v=3","gravatar_id":"","url":"https://api.github.com/users/shifi","html_url":"https://github.com/shifi","followers_url":"https://api.github.com/users/shifi/followers","following_url":"https://api.github.com/users/shifi/following{/other_user}","gists_url":"https://api.github.com/users/shifi/gists{/gist_id}","starred_url":"https://api.github.com/users/shifi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shifi/subscriptions","organizations_url":"https://api.github.com/users/shifi/orgs","repos_url":"https://api.github.com/users/shifi/repos","events_url":"https://api.github.com/users/shifi/events{/privacy}","received_events_url":"https://api.github.com/users/shifi/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T02:16:31Z","updated_at":"2015-08-25T02:16:31Z","body":"@alexis779 @kyrylo airbrake 4.3.1 is released"}}