wildsight 0.1.14 → 0.1.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: b100a34b0105dd97c49ee05deb600154239cb83b
4
- data.tar.gz: 75bf504af90b8782e73e6ee531922430c519f09d
3
+ metadata.gz: 8c181e60e9f02b54dd241c870cf64e9090dd903f
4
+ data.tar.gz: a78a78887d80adf11a6cc0be5c502b98924a5984
5
5
  SHA512:
6
- metadata.gz: 0efa7d4fde26fbefbc581c744e805aeb66b5f110030214c3801e66b7c36d80ebfe5b2c1478ac37c602071d20aa3182a0f8abb2da82a101407506fbae7fbef319
7
- data.tar.gz: c72771391fddfd646f29d502dbe3e97f6dd3a844e7e2a6775cddc607f2be5978740d399b1d053d338fe7d4d3e4bd4d1f40ff308e6766dee1f625829e171fe2b5
6
+ metadata.gz: 57a1f20118f985b6ca6300766a63743ac1d169427e01d7f81e7c83c584abe5e0792a139c6b74ef457b4fb335a172d8727e68d02f4bd6cc506dfcc111c960f1b2
7
+ data.tar.gz: 39beb19dc059b8d2a6b08b911aee070f50229c5d386bca3701a1891adbaee9b6464e40f44f9e222e9afd0d77bd032db549063cdd8a0bef9c2512b6b3a0918332
@@ -55,11 +55,11 @@ module Wildsight
55
55
  end
56
56
 
57
57
  def wildsight_context
58
- @_wildsight_context ||= Wildsight::Context::Rack.detect_context(request.env)
58
+ @_wildsight_context ||= Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
59
59
  end
60
60
 
61
61
  def process_action(*args)
62
- context = Wildsight::Context::Rack.detect_context(request.env)
62
+ context = Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
63
63
  context.rails_extract(self)
64
64
  result = context.profiler.duration(:action) { process_action_without_ws(*args) }
65
65
  return result
@@ -75,7 +75,7 @@ module Wildsight
75
75
  alias_method :render_without_ws, :render
76
76
 
77
77
  def render(*args, &block)
78
- context = Wildsight::Context::Rack.detect_context(request.env)
78
+ context = Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
79
79
  result = context.profiler.duration(:render) { render_without_ws(*args, &block) }
80
80
  return result
81
81
  end
@@ -1,3 +1,3 @@
1
1
  module Wildsight
2
- VERSION = '0.1.14'
2
+ VERSION = '0.1.15'
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.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Jelen