wildsight 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wildsight/rails/railtie.rb +6 -2
- data/lib/wildsight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b100a34b0105dd97c49ee05deb600154239cb83b
|
4
|
+
data.tar.gz: 75bf504af90b8782e73e6ee531922430c519f09d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efa7d4fde26fbefbc581c744e805aeb66b5f110030214c3801e66b7c36d80ebfe5b2c1478ac37c602071d20aa3182a0f8abb2da82a101407506fbae7fbef319
|
7
|
+
data.tar.gz: c72771391fddfd646f29d502dbe3e97f6dd3a844e7e2a6775cddc607f2be5978740d399b1d053d338fe7d4d3e4bd4d1f40ff308e6766dee1f625829e171fe2b5
|
@@ -45,8 +45,12 @@ module Wildsight
|
|
45
45
|
alias_method :process_action_without_ws, :process_action
|
46
46
|
|
47
47
|
def process(*args)
|
48
|
-
context = Wildsight::Context::Rack.detect_context(request.env)
|
49
|
-
|
48
|
+
context = Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
|
49
|
+
if context
|
50
|
+
result = context.profiler.duration(:rails) { process_without_ws(*args) }
|
51
|
+
else
|
52
|
+
result = process_without_ws(*args)
|
53
|
+
end
|
50
54
|
return result
|
51
55
|
end
|
52
56
|
|
data/lib/wildsight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wildsight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Jelen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|