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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2aed0df467378ac646fa05af8a0a0799a21cfa88
4
- data.tar.gz: f550a0c2803f28f5f77d31bcd4ef489a877d2ca7
3
+ metadata.gz: beb8ac0f7a5b77c8696e16cc780b1336657434d3
4
+ data.tar.gz: cc7300f9e4686fc4fe2b957a135bcbfa63b31dfe
5
5
  SHA512:
6
- metadata.gz: ebeb4d7edbaf6ff66ab9ac7304acf913bba32dff56132c44a742e7010802a7e57db94d77e5cb26542236246b5f4ccff94da214777cdfcae233551f433a49bcab
7
- data.tar.gz: c72a36c7302f1ac9e698dabd794835b13b14625c411e433af6a17176267936b294e556629cd3c5f9cfd5b192e5eb1e62a25625f799251d526493ac15f4505a8a
6
+ metadata.gz: 77b080597f1a69348517b137961101ff428c463bec936cebc4a709fcd6ff7513073866d5148d39f441d00905f5af69d9d30fb5f36c346e62f5ba86b52558f643
7
+ data.tar.gz: 931c9b04098fb5433ccfd8de763a291b7267395ed7134445c1aebf5eec90dce379654edb298afdab780201bad13fd21b780a2036a6a3306e9017078baa203970
data/.gitignore CHANGED
@@ -13,3 +13,5 @@ log/
13
13
  **/*.gem
14
14
 
15
15
  /vendor/
16
+
17
+ /tmp/
@@ -46,11 +46,12 @@ module Sapience
46
46
  end
47
47
 
48
48
  def root_dir
49
- if defined?(::Rack::Directory)
50
- Rack::Directory.new("").root
51
- else
52
- Dir.pwd
53
- end
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
- logger << lsevent.to_json + "\n" if logger && lsevent
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)
@@ -1,3 +1,3 @@
1
1
  module Sapience
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
3
3
  end
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.14
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-18 00:00:00.000000000 Z
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