console-adapter-rails 0.1.5 → 0.2.0

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
  SHA256:
3
- metadata.gz: 405e024d11f97457459606db5af1af4f41ad72bd88b70b842e67def5f9aaf307
4
- data.tar.gz: '05889cffe15374da37b02153e616e983d67afaf16d8d8b21ec4c40602fe0304f'
3
+ metadata.gz: dd24ef25ea142ca007009e32bf72a8b15addbc51fcd68e0b8764f4aa01b715db
4
+ data.tar.gz: 64cad4283b64c45dde83f84af277354cd184eacdb1f72ac6dd34e01d65e52009
5
5
  SHA512:
6
- metadata.gz: 318fa2b167ad9e36ade626676e0cf20bc634232bebb012a26a6e4c64f4b713bb681904c526fee81ab236fb9ec5544afc547891b31e5e7a72bd79fc2ca3e362e3
7
- data.tar.gz: 29c585b48f1bfd73368ddc485ee298b144b2e9426d4d9129fbaaeec82e21bde4cf561b8e3e1a2a965c8186444f4fe86d0284d6650d9c1aa968822f33f2d1fedd
6
+ metadata.gz: 06f40cdd266f29ff91da9a63b8ff6dc53ba09af52718b0c1cc2636dd73870ed006fcbf83f043183c9678bc39dfc6b0d2255675ce29da6c996c7ca59934d59e71
7
+ data.tar.gz: 963a690fb77153a6509c4e8783b982ec02bf750f11dc8df63d7445ca5732746bbcc21ba5ba1c9e984680ac490f19a179fdac0e29a889b3a593a54a87124c15f6
checksums.yaml.gz.sig CHANGED
Binary file
@@ -6,7 +6,7 @@
6
6
  module Console
7
7
  module Adapter
8
8
  module Rails
9
- VERSION = "0.1.5"
9
+ VERSION = "0.2.0"
10
10
  end
11
11
  end
12
12
  end
@@ -46,6 +46,10 @@ module Console
46
46
  request = payload.delete(:request)
47
47
  response = payload.delete(:response)
48
48
 
49
+ if request and ip = request.remote_ip
50
+ payload[:source_address] = ip
51
+ end
52
+
49
53
  if response and headers = response.headers
50
54
  # Extract redirect location if any:
51
55
  location = response.headers['Location'] || response.headers['location']
data/readme.md CHANGED
@@ -7,7 +7,7 @@ Status](https://github.com/socketry/console-adapter-rails/workflows/Test/badge.s
7
7
 
8
8
  ## Usage
9
9
 
10
- Please see the [project documentation](https://github.com/socketry/console-adapter-rails) for more details.
10
+ Please see the [project documentation](https://socketry.github.io/console-adapter-rails) for more details.
11
11
 
12
12
  - [Getting Started](https://github.com/socketry/console-adapter-railsguides/getting-started/index) - This guide
13
13
  explains how to integrate the `console-adapter-rails` gem into your Rails application.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console-adapter-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2023-08-07 00:00:00.000000000 Z
40
+ date: 2023-08-11 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: console
metadata.gz.sig CHANGED
Binary file