Skip to content

Commit

Permalink
The deploy attribute on the notices resource is optional returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
murraysum committed Jul 29, 2016
1 parent b5a1fc5 commit a307ca7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/honeybadger-api/notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(opts)
@cookies = opts[:cookies]
@web_environment = opts[:web_environment]
@backtrace = opts[:backtrace]
@deploy = Deploy.new(opts[:deploy])
@deploy = Deploy.new(opts[:deploy]) if !opts[:deploy].nil?
@message = opts[:message]
@request = opts[:request]
@created_at = opts[:created_at].nil? ? nil : DateTime.parse(opts[:created_at])
Expand Down
2 changes: 1 addition & 1 deletion lib/honeybadger-api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Honeybadger
module Api
VERSION = "2.0.0"
VERSION = "2.0.1"
end
end
4 changes: 2 additions & 2 deletions spec/version_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe "Honeybadger::Api::VERSION" do
it "should be version 2.0.0" do
expect(Honeybadger::Api::VERSION).to eql("2.0.0")
it "should be version 2.0.1" do
expect(Honeybadger::Api::VERSION).to eql("2.0.1")
end
end

0 comments on commit a307ca7

Please sign in to comment.