sapience 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/sapience/grape.rb +4 -0
- data/lib/sapience/sapience.rb +1 -1
- data/lib/sapience/version.rb +1 -1
- data/test_apps/grape/.rspec +1 -1
- data/test_apps/grape/gemfiles/grape_0.16.2.gemfile.lock +1 -1
- data/test_apps/grape/gemfiles/grape_0.17.0.gemfile.lock +1 -1
- data/test_apps/rails/.rspec +1 -1
- data/test_apps/rails/spec/rails_helper.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7f003c22fa41c883484585a8044f5d623884fd
|
4
|
+
data.tar.gz: d29f04a6137ec76d11e29250c0121404d79e50b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68a3f162e0a5e98f4147f597af4fecc041d711eb7400c470b26452da5da65c77eede3215a6861f130b0dbec6aa95516ee741a0a209675a6ecd9e68b0cf456672
|
7
|
+
data.tar.gz: 2a92fa93050032dd204d9d1a37f626424b867926ed099def4c48eec20c1ab3e7bf5c09b5158d22d947e5cc4ab1f4142f4f32e1af4b520fc4f8b569bdc006db84
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
+
## v1.0.10
|
2
|
+
|
3
|
+
- Automatically add default `datadog` appender when calling `Sapience.metrics`
|
4
|
+
|
5
|
+
## v1.0.9
|
6
|
+
|
1
7
|
- Added `filter_parameters` configuration to obfuscate sensitive information such as passwords for rack-like applications
|
8
|
+
- Require Grape version >= 0.16.2, raise if lesser version is found
|
2
9
|
|
3
10
|
## v1.0.8
|
4
11
|
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ Sapience.configure do |config|
|
|
60
60
|
config.backtrace_level = :error
|
61
61
|
config.appenders = [
|
62
62
|
{ stream: { io: STDOUT, formatter: :color } },
|
63
|
-
{ sentry: { dsn: "https://username:password@
|
63
|
+
{ sentry: { dsn: "https://username:password@sentry.io/00000" } },
|
64
64
|
{ datadog: { url: "udp://localhost:8125" } },
|
65
65
|
]
|
66
66
|
config.log_executor = :single_thread_executor
|
data/lib/sapience/grape.rb
CHANGED
@@ -11,6 +11,10 @@ end
|
|
11
11
|
|
12
12
|
module Sapience
|
13
13
|
class Grape
|
14
|
+
UnsupportedVersion = Class.new(Exception)
|
15
|
+
if Gem.loaded_specs["grape"].version < Gem::Version.create("0.16.2")
|
16
|
+
fail UnsupportedVersion, "Expecting grape version >= 0.16.2"
|
17
|
+
end
|
14
18
|
Sapience.configure
|
15
19
|
::Grape::API.send(:include, Sapience::Loggable)
|
16
20
|
Sapience::Extensions::Grape::Notifications.use
|
data/lib/sapience/sapience.rb
CHANGED
data/lib/sapience/version.rb
CHANGED
data/test_apps/grape/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../../.rspec
|
data/test_apps/rails/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../../.rspec
|
@@ -15,6 +15,9 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
15
15
|
|
16
16
|
# Checks for pending migration and applies them before tests are run.
|
17
17
|
# If you are not using ActiveRecord, you can remove this line.
|
18
|
+
Sapience.configure do |c|
|
19
|
+
c.app_name = "rails_app"
|
20
|
+
end
|
18
21
|
ActiveRecord::Migration.maintain_test_schema!
|
19
22
|
|
20
23
|
RSpec.configure do |config|
|
@@ -32,9 +35,6 @@ RSpec.configure do |config|
|
|
32
35
|
Rails.root.join("config/sapience.yml"),
|
33
36
|
)
|
34
37
|
Sapience.reset!
|
35
|
-
Sapience.configure do |c|
|
36
|
-
c.app_name = "rails_app"
|
37
|
-
end
|
38
38
|
end
|
39
39
|
|
40
40
|
config.after(:each) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapience
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
12
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -456,7 +456,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
456
|
version: '0'
|
457
457
|
requirements: []
|
458
458
|
rubyforge_project:
|
459
|
-
rubygems_version: 2.
|
459
|
+
rubygems_version: 2.5.1
|
460
460
|
signing_key:
|
461
461
|
specification_version: 4
|
462
462
|
summary: Hasslefree autoconfiguration for logging, metrics and exception collection.
|