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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35f1a2a161ecc2efb23decddb30df46b01b372ed
4
- data.tar.gz: f112df7cbf9149371fed662c5451c553c58ccecc
3
+ metadata.gz: bd7f003c22fa41c883484585a8044f5d623884fd
4
+ data.tar.gz: d29f04a6137ec76d11e29250c0121404d79e50b2
5
5
  SHA512:
6
- metadata.gz: 40fb5ccbf8c3deedb4ab1b51d87ef97138f18511c0df18709341342f4acb30c6b7138d3c334fcba41d92da4e644b029faeee3b2a768697c2bda0b9b232770d47
7
- data.tar.gz: 745ade15fbe6afbdab30967ecd09f8ce48de280e6c9f69541b7aef93533f9ec7957df6ec6673567fa9042338c4cc03540e7ba8e615aecb05f572b5b104799e58
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@app.getsentry.com/00000" } },
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
@@ -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
@@ -279,7 +279,7 @@ module Sapience
279
279
  end
280
280
 
281
281
  def self.metrics
282
- @@metrics ||= nil
282
+ @@metrics ||= add_appender(:datadog)
283
283
  end
284
284
 
285
285
  def self.logger=(logger)
@@ -1,3 +1,3 @@
1
1
  module Sapience
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -1 +1 @@
1
- test_apps/grape/../../.rspec
1
+ ../../.rspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sapience (1.0.5)
4
+ sapience (1.0.9)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sapience (1.0.5)
4
+ sapience (1.0.9)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
@@ -1 +1 @@
1
- test_apps/rails/../../.rspec
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.9
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-07 00:00:00.000000000 Z
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.6.7
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.