crashbreak 1.0.18 → 1.0.19

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: 6cd9778352aa7ccf5f278d4c8d92413e61d4ee85
4
- data.tar.gz: 1dada3ad15f10abda9089b6c1e14c44a752ad61b
3
+ metadata.gz: 971975eddcb1b2a1a941794b53992da1d716e7b5
4
+ data.tar.gz: e49b7db2329340b13d4bdc998b9b22b0c97e69ca
5
5
  SHA512:
6
- metadata.gz: 68bdaaa32854ab3de7ff206d2672c7971a6935063fb4376c4b054ec4dc1ee3fc8893c7aeec7d3e79296578eb31afd7c6f5070c287dca61b0ba27bff4616f6d16
7
- data.tar.gz: 80174ef5d796e751a1b52cabe29bed8ade2b05dbe0c16a59a2bbf3554ca42fa3e1e3469e20e5430fbbb8d1ffd394c3edb0bbe7c7aa6e19e7b1130a9bebd8a6db
6
+ metadata.gz: d11c63982a8658a1e43af247cde68b448dac35a78ee291e60c85156326e2c482bfa71bf41915616e1dbec5db47620b37f352ccd9b29c4eebec4cee674865c4ca
7
+ data.tar.gz: 9a830cb9aab90537e8dee44b2aa6fb78b0c7105324cbda658b6db4f6178874af84f2e95d5f9b68a789bcba130e05429a0ac2f63894c1fcc888f790e88803dbff
data/README.md CHANGED
@@ -16,6 +16,12 @@ Generate crashbreak initializer:
16
16
 
17
17
  rails generate crashbreak:install your_api_key
18
18
 
19
+ If you want to use database dumper add this lines to datbase.yml file:
20
+
21
+ crashbreak_test:
22
+ <<: *default
23
+ database: crashbreak-test
24
+
19
25
  ## Example crashbreak.rb (initializer)
20
26
  [Rails example](https://github.com/crashbreak/heroku-rails-example/blob/master/config/initializers/crashbreak.rb)
21
27
 
@@ -81,6 +87,9 @@ def restore
81
87
  end
82
88
  ```
83
89
 
90
+ ### Predefined settings
91
+ Dumping your database or any other part of the system requires config for dumpers, for example DatabaseDumper needs a command for dump db (e.g pg_dump for postgresql). There is a file with all predefined settings that you can use if you have standard setup. Please check [this file](https://github.com/crashbreak/crashbreak/blob/master/lib/crashbreak/predefined_settings.rb). For be sure that all commands run corretcly on your staging server please run it manually first and see the result.
92
+
84
93
  ### Exception notifier
85
94
  Dumping your system can take some time, in order to improve request response you can use different exception notifier.
86
95
 
@@ -0,0 +1 @@
1
+ load File.expand_path('../../tasks/crashbreak.cap', __FILE__)
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module Crashbreak
2
4
  class DeploysRepository
3
5
  BASE_URL = 'http://crashbreak.herokuapp.com/api'
@@ -1,3 +1,3 @@
1
1
  module Crashbreak
2
- VERSION = '1.0.18'
2
+ VERSION = '1.0.19'
3
3
  end
@@ -1,3 +1,6 @@
1
+ require 'faraday'
2
+ require 'crashbreak/deploys_repository'
3
+
1
4
  namespace :crashbreak do
2
5
 
3
6
  desc 'Send the deployment notification to Crashbreak.'
@@ -9,7 +12,7 @@ namespace :crashbreak do
9
12
  head: fetch(:current_revision)
10
13
  }
11
14
 
12
- Crashbreak::DeployRepository.new(crashbreak_token, deploy_hash).create
15
+ Crashbreak::DeploysRepository.new(fetch(:crashbreak_token), deploy_hash).create
13
16
  info 'Notification complete.'
14
17
  end
15
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashbreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Janeczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,6 +196,7 @@ files:
196
196
  - crashbreak.gemspec
197
197
  - lib/crashbreak.rb
198
198
  - lib/crashbreak/AWS.rb
199
+ - lib/crashbreak/capistrano3.rb
199
200
  - lib/crashbreak/config/configurable.rb
200
201
  - lib/crashbreak/config/configurator.rb
201
202
  - lib/crashbreak/deploys_repository.rb