sapience 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/sapience/config_loader.rb +6 -5
- data/lib/sapience/extensions/active_record/log_subscriber.rb +1 -2
- data/lib/sapience/version.rb +1 -1
- data/sapience.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb8ac0f7a5b77c8696e16cc780b1336657434d3
|
4
|
+
data.tar.gz: cc7300f9e4686fc4fe2b957a135bcbfa63b31dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b080597f1a69348517b137961101ff428c463bec936cebc4a709fcd6ff7513073866d5148d39f441d00905f5af69d9d30fb5f36c346e62f5ba86b52558f643
|
7
|
+
data.tar.gz: 931c9b04098fb5433ccfd8de763a291b7267395ed7134445c1aebf5eec90dce379654edb298afdab780201bad13fd21b780a2036a6a3306e9017078baa203970
|
@@ -46,11 +46,12 @@ module Sapience
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def root_dir
|
49
|
-
|
50
|
-
Rack::Directory
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
@root_dir ||=
|
50
|
+
if defined?(::Rack::Directory)
|
51
|
+
Rack::Directory.new("").root
|
52
|
+
else
|
53
|
+
Dir.pwd
|
54
|
+
end
|
54
55
|
end
|
55
56
|
|
56
57
|
def load_yaml_configuration(absolute_path)
|
@@ -9,7 +9,7 @@ module Sapience
|
|
9
9
|
|
10
10
|
def identity(event)
|
11
11
|
lsevent = logstash_event(event)
|
12
|
-
|
12
|
+
debug(lsevent.to_json + "\n") if logger && lsevent
|
13
13
|
end
|
14
14
|
alias_method :sql, :identity
|
15
15
|
|
@@ -24,7 +24,6 @@ module Sapience
|
|
24
24
|
data.merge! extract_sql(data)
|
25
25
|
|
26
26
|
data.merge! tags(data)
|
27
|
-
debug(data)
|
28
27
|
end
|
29
28
|
|
30
29
|
def runtimes(event)
|
data/lib/sapience/version.rb
CHANGED
data/sapience.gemspec
CHANGED
@@ -42,4 +42,6 @@ Gem::Specification.new do |spec|
|
|
42
42
|
spec.add_development_dependency "active_model_serializers", "~> 0.10.0"
|
43
43
|
spec.add_development_dependency "codeclimate-test-reporter"
|
44
44
|
spec.add_development_dependency "gem-release"
|
45
|
+
spec.add_development_dependency "memory_profiler"
|
46
|
+
spec.add_development_dependency "rspec-prof"
|
45
47
|
end
|
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.15
|
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-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -249,6 +249,34 @@ dependencies:
|
|
249
249
|
- - ">="
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
|
+
- !ruby/object:Gem::Dependency
|
253
|
+
name: memory_profiler
|
254
|
+
requirement: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0'
|
259
|
+
type: :development
|
260
|
+
prerelease: false
|
261
|
+
version_requirements: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0'
|
266
|
+
- !ruby/object:Gem::Dependency
|
267
|
+
name: rspec-prof
|
268
|
+
requirement: !ruby/object:Gem::Requirement
|
269
|
+
requirements:
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '0'
|
273
|
+
type: :development
|
274
|
+
prerelease: false
|
275
|
+
version_requirements: !ruby/object:Gem::Requirement
|
276
|
+
requirements:
|
277
|
+
- - ">="
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '0'
|
252
280
|
description: Hasslefree autoconfiguration for logging, metrics and exception collection.
|
253
281
|
email:
|
254
282
|
- mika@reevoo.com
|