crashbreak 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/crashbreak/capistrano3.rb +1 -0
- data/lib/crashbreak/deploys_repository.rb +2 -0
- data/lib/crashbreak/version.rb +1 -1
- data/lib/tasks/crashbreak.cap +4 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 971975eddcb1b2a1a941794b53992da1d716e7b5
|
4
|
+
data.tar.gz: e49b7db2329340b13d4bdc998b9b22b0c97e69ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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__)
|
data/lib/crashbreak/version.rb
CHANGED
data/lib/tasks/crashbreak.cap
CHANGED
@@ -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::
|
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.
|
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-
|
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
|