wildsight 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d472003c294864dc7ea27909c1cdc6d2616e7a8
4
- data.tar.gz: 336115f56d8fd0c705beefa6bf5fbb3c2f76a20c
3
+ metadata.gz: b100a34b0105dd97c49ee05deb600154239cb83b
4
+ data.tar.gz: 75bf504af90b8782e73e6ee531922430c519f09d
5
5
  SHA512:
6
- metadata.gz: dc77bb0ac9e749011506c9d28b1945102559e18f6f1f14b48504cd7c56b83624f5eafbe795f564caee21dc6ba78f1a2499f958be3f60e0bdb1a125c1136f53ce
7
- data.tar.gz: ffa1728fb8d9c49a7b4303bbed033b54ce8d442d8a5ddc1872774ae0eb65ed8000ff167f80ec0613b970eb1327f47aaf8ed4cb30903b4e4528237abd3ea2420e
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
- result = context.profiler.duration(:rails) { process_without_ws(*args) }
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
 
@@ -1,3 +1,3 @@
1
1
  module Wildsight
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
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.13
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-21 00:00:00.000000000 Z
12
+ date: 2016-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json