bugsnag 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8747ea8d79be63f2a884d5c595a4d0faf946e0bf
4
- data.tar.gz: ddd5564d323f74a0d27d6adc89725ddab1d4dbdc
3
+ metadata.gz: 3df43adc7e6a279be8b5d1e7e454745573c6ce6b
4
+ data.tar.gz: 285955b0b0f441e442c2d888400d3049e2819371
5
5
  SHA512:
6
- metadata.gz: e459123fbdc0e0fba0824e4f34bbf035144eda2e797ebf28652301af01f8f4274a42e287f3f666700b7c1e74a3acd284322a4358b489669f9a4a42e933ea9af5
7
- data.tar.gz: 5ee52a9b0982be48dd089b2a2315c3fe8b79d7ca735e1968de0106ce79ee358600406cef1f60936ac3165f555ad3f3de57043dded54958a93a369612ecc5514f
6
+ metadata.gz: 6e75646fd35a624c3b03d6be994fee9e44b019a90f791a4ec090479e11382c6b3fb580961ecae3a3cc8cd50ec2232b4779a98460da032b0930d229ab869b8292
7
+ data.tar.gz: 1662f2351b795995731a4298d24831ba42eecc503de8101522e75c9681bdfddd3e3aa8976120253a17ad1e19e6a88380f59051912005c2c1525311651fd05101
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.0.1
5
+ -----
6
+ - Fix capistrano v3 after 2.0.0
7
+
4
8
  2.0.0
5
9
  -----
6
10
  - BREAKING: capistrano integration requires explicit configuration to avoid loading rails env (15x faster to notify)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -1,5 +1,6 @@
1
1
  require "httparty"
2
2
  require "multi_json"
3
+ require "bugsnag/deploy"
3
4
 
4
5
  if defined?(Capistrano::VERSION) && Gem::Version.new(Capistrano::VERSION).release >= Gem::Version.new('3.0.0')
5
6
  load File.expand_path('../tasks/bugsnag.cap', __FILE__)
@@ -1,5 +1,3 @@
1
- require "bugsnag/deploy"
2
-
3
1
  module Bugsnag
4
2
  module Capistrano
5
3
  def self.load_into(configuration)
@@ -24,20 +24,22 @@ namespace :bugsnag do
24
24
 
25
25
  desc 'Notify Bugsnag that new production code has been deployed'
26
26
  task :deploy do
27
- begin
28
- Bugsnag::Deploy.notify({
29
- :api_key => fetch(:bugsnag_api_key, ENV["BUGSNAG_API_KEY"]),
30
- :release_stage => fetch(:bugsnag_env) || fetch(:rails_env) || fetch(:stage) || ENV["BUGSNAG_RELEASE_STAGE"] || "production",
31
- :revision => fetch(:current_revision, ENV["BUGSNAG_REVISION"]),
32
- :repository => fetch(:repo_url, ENV["BUGSNAG_REPOSITORY"]),
33
- :branch => fetch(:branch, ENV["BUGSNAG_BRANCH"]),
34
- :app_version => fetch(:app_version, ENV["BUGSNAG_APP_VERSION"])
35
- })
36
- rescue
37
- important("Bugnsag deploy notification failed, #{$!.inspect}")
27
+ run_locally do
28
+ begin
29
+ Bugsnag::Deploy.notify({
30
+ :api_key => fetch(:bugsnag_api_key, ENV["BUGSNAG_API_KEY"]),
31
+ :release_stage => fetch(:bugsnag_env) || fetch(:rails_env) || fetch(:stage) || ENV["BUGSNAG_RELEASE_STAGE"] || "production",
32
+ :revision => fetch(:current_revision, ENV["BUGSNAG_REVISION"]),
33
+ :repository => fetch(:repo_url, ENV["BUGSNAG_REPOSITORY"]),
34
+ :branch => fetch(:branch, ENV["BUGSNAG_BRANCH"]),
35
+ :app_version => fetch(:app_version, ENV["BUGSNAG_APP_VERSION"])
36
+ })
37
+ rescue
38
+ error "Bugsnag deploy notification failed, #{$!.inspect}"
39
+ end
40
+
41
+ info 'Bugsnag deploy notification complete.'
38
42
  end
39
-
40
- info 'Bugsnag deploy notification complete.'
41
43
  end
42
44
 
43
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith