wildsight 0.1.15 → 0.1.16

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: 8c181e60e9f02b54dd241c870cf64e9090dd903f
4
- data.tar.gz: a78a78887d80adf11a6cc0be5c502b98924a5984
3
+ metadata.gz: 6851f06ff1db60ac0d56474afda00fd6b18e09d1
4
+ data.tar.gz: 3312120ae18f8fd3b5a4afe0914818b20086e8a5
5
5
  SHA512:
6
- metadata.gz: 57a1f20118f985b6ca6300766a63743ac1d169427e01d7f81e7c83c584abe5e0792a139c6b74ef457b4fb335a172d8727e68d02f4bd6cc506dfcc111c960f1b2
7
- data.tar.gz: 39beb19dc059b8d2a6b08b911aee070f50229c5d386bca3701a1891adbaee9b6464e40f44f9e222e9afd0d77bd032db549063cdd8a0bef9c2512b6b3a0918332
6
+ metadata.gz: bb319c3e5a8f5cfe08e3e94e0ba276350e4662ce39569d898cbf235650c429ec66a6d1e244c20e641fb368015951c3bf937c5c6f49ca883f17c1089dc4e46b92
7
+ data.tar.gz: 58b6abffe9a936605b7880f892293819b20b42f71b56afe39fe68e00a50b1883fb9e928e454748eb0d77674f909ab7e126387354f17e4a8b1ea12a532072ba38
@@ -8,21 +8,23 @@ module Wildsight
8
8
  end
9
9
 
10
10
  def rails_extract(controller)
11
- request = controller.request
11
+ if respond_to?(:request)
12
+ request = controller.request
12
13
 
13
- rack_data[:request_target] = controller.class.name + '#' + request.params['action']
14
+ rack_data[:request_target] = controller.class.name + '#' + request.params['action']
14
15
 
15
- rack_data[:method] = request.method
16
- rack_data[:path] = request.original_fullpath
17
- rack_data[:params] = request.filtered_parameters
16
+ rack_data[:method] = request.method
17
+ rack_data[:path] = request.original_fullpath
18
+ rack_data[:params] = request.filtered_parameters
18
19
 
19
- rack_data[:session_id] = request.session.id
20
+ rack_data[:session_id] = request.session.id
20
21
 
21
- rack_data[:url] = request.original_url
22
- rack_data[:protocol] = request.protocol
23
- rack_data[:host] = request.host_with_port
22
+ rack_data[:url] = request.original_url
23
+ rack_data[:protocol] = request.protocol
24
+ rack_data[:host] = request.host_with_port
24
25
 
25
- rack_data[:remote_ip] = request.remote_ip
26
+ rack_data[:remote_ip] = request.remote_ip
27
+ end
26
28
  end
27
29
 
28
30
  end
@@ -1,3 +1,3 @@
1
1
  module Wildsight
2
- VERSION = '0.1.15'
2
+ VERSION = '0.1.16'
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Jelen