web-console 4.2.1 → 4.3.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: ed1dcd754f3147bcefa20043ba34ea374d9acac479d68e3eae7b89b3ee68994d
4
- data.tar.gz: 7556b35cf5abd8d6438931b7d4cce3dd082483617cfeca28545d7a1bb5c83d06
3
+ metadata.gz: c5e2379a6ac6902c6af18a03b2810ca1ab45bcfc617c53c11c6f3bd022749c2f
4
+ data.tar.gz: 957be1853d8dafe74e81cc908b14db345cead523a55d97448f633fa837dc8858
5
5
  SHA512:
6
- metadata.gz: 757a0810bb51d57678f588d7f70ac3734c0a32740aa357acab67edc880701588bf703ca6e90e0e228b3ea8a6d009bd32b8b5e0d3cfb7f0569d784c69028d2c08
7
- data.tar.gz: 7ffb4ff41a124ca94852bc043dc4e745ee43e112c4e986e83ad9296f2d97cad17f83ce05b3f9917c5b68f74741aa674ec0bd052e97b588cd822cfbdd2a315e7b
6
+ metadata.gz: b0031f168892a96281774af7c311cfc74f112f87828cc0feb2a2c753de0caab3c8ed0e2eb230117eb6f95c032af57c2a539d052fd4909accca20f127a8bd0c5e
7
+ data.tar.gz: 975f64e855276c791a07913ae582f205a5d1cc19c96c54979a186d7a8a5f20bd6cfa5848030c44406836e2e1ba68d9f26fc9418eaebea53f7aba5242c1b256cd
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## main (unreleased)
4
4
 
5
+ # 4.3.0
6
+
7
+ * [#342](https://github.com/rails/web-console/pull/342) Always permit IPv4-mapped IPv6 loopback addresses ([@zunda]).
8
+ * Fixed Rails 8.2.0.alpha support
9
+ * Drop Rails 7.2 support
10
+ * Drop Ruby 3.1 support
11
+
5
12
  # 4.2.1
6
13
 
7
14
  * Support to Rails 7.1
@@ -191,3 +198,4 @@ go to 3.1.0 instead.
191
198
  [@p8]: https://github.com/p8
192
199
  [@voxik]: https://github.com/voxik
193
200
  [@ryanwood]: https://github.com/ryanwood
201
+ [@zunda]: https://github.com/zunda
@@ -5,7 +5,7 @@ require "ipaddr"
5
5
  module WebConsole
6
6
  class Permissions
7
7
  # IPv4 and IPv6 localhost should be always allowed.
8
- ALWAYS_PERMITTED_NETWORKS = %w( 127.0.0.0/8 ::1 )
8
+ ALWAYS_PERMITTED_NETWORKS = %w( 127.0.0.0/8 ::1 ::ffff:127.0.0.0/104 )
9
9
 
10
10
  def initialize(networks = nil)
11
11
  @networks = normalize_networks(networks).map(&method(:coerce_network_to_ipaddr)).uniq
@@ -28,11 +28,19 @@ module WebConsole
28
28
  @proxies = proxies
29
29
  end
30
30
 
31
+ # Used by rails <= 8.1
31
32
  def filter_proxies(ips)
32
33
  ips.reject do |ip|
33
34
  @proxies.include?(ip)
34
35
  end
35
36
  end
37
+
38
+ # Used by rails > 8.1.
39
+ def first_non_proxy(ips)
40
+ ips.find do |ip|
41
+ !@proxies.include?(ip)
42
+ end
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -6,12 +6,7 @@ module WebConsole
6
6
  @binding = binding
7
7
  end
8
8
 
9
- if RUBY_VERSION >= "2.6"
10
- def path() @binding.source_location.first end
11
- def lineno() @binding.source_location.last end
12
- else
13
- def path() @binding.eval("__FILE__") end
14
- def lineno() @binding.eval("__LINE__") end
15
- end
9
+ def path() @binding.source_location.first end
10
+ def lineno() @binding.source_location.last end
16
11
  end
17
12
  end
@@ -1,7 +1,7 @@
1
1
  <div class='resizer layer'></div>
2
2
  <div class='console-outer layer'>
3
3
  <div class='console-actions'>
4
- <div class='close-button button' title='close'>x</div>
4
+ <div class='close-button button' title='close'>&times;</div>
5
5
  </div>
6
6
  <div class='console-inner'></div>
7
7
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebConsole
4
- VERSION = "4.2.1"
4
+ VERSION = "4.3.0"
5
5
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailey Somerville
8
8
  - Genadi Samokovarov
9
9
  - Guillermo Iguaran
10
10
  - Ryan Dao
11
- autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2023-09-05 00:00:00.000000000 Z
13
+ date: 1980-01-02 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: railties
@@ -19,42 +18,28 @@ dependencies:
19
18
  requirements:
20
19
  - - ">="
21
20
  - !ruby/object:Gem::Version
22
- version: 6.0.0
21
+ version: 8.0.0
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 6.0.0
30
- - !ruby/object:Gem::Dependency
31
- name: activemodel
32
- requirement: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 6.0.0
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 6.0.0
28
+ version: 8.0.0
44
29
  - !ruby/object:Gem::Dependency
45
30
  name: actionview
46
31
  requirement: !ruby/object:Gem::Requirement
47
32
  requirements:
48
33
  - - ">="
49
34
  - !ruby/object:Gem::Version
50
- version: 6.0.0
35
+ version: 8.0.0
51
36
  type: :runtime
52
37
  prerelease: false
53
38
  version_requirements: !ruby/object:Gem::Requirement
54
39
  requirements:
55
40
  - - ">="
56
41
  - !ruby/object:Gem::Version
57
- version: 6.0.0
42
+ version: 8.0.0
58
43
  - !ruby/object:Gem::Dependency
59
44
  name: bindex
60
45
  requirement: !ruby/object:Gem::Requirement
@@ -69,7 +54,6 @@ dependencies:
69
54
  - - ">="
70
55
  - !ruby/object:Gem::Version
71
56
  version: 0.4.0
72
- description:
73
57
  email:
74
58
  - hailey@hailey.lol
75
59
  - gsamokovarov@gmail.com
@@ -123,7 +107,6 @@ homepage: https://github.com/rails/web-console
123
107
  licenses:
124
108
  - MIT
125
109
  metadata: {}
126
- post_install_message:
127
110
  rdoc_options: []
128
111
  require_paths:
129
112
  - lib
@@ -131,15 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
114
  requirements:
132
115
  - - ">="
133
116
  - !ruby/object:Gem::Version
134
- version: '2.5'
117
+ version: '3.2'
135
118
  required_rubygems_version: !ruby/object:Gem::Requirement
136
119
  requirements:
137
120
  - - ">="
138
121
  - !ruby/object:Gem::Version
139
122
  version: '0'
140
123
  requirements: []
141
- rubygems_version: 3.4.10
142
- signing_key:
124
+ rubygems_version: 4.0.3
143
125
  specification_version: 4
144
126
  summary: A debugging tool for your Ruby on Rails applications.
145
127
  test_files: []