Hello community,

here is the log from the commit of package rubygem-web-console for 
openSUSE:Factory checked in at 2020-06-25 15:11:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-web-console (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-web-console.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-web-console"

Thu Jun 25 15:11:07 2020 rev:20 rq:817015 version:4.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-web-console/rubygem-web-console.changes  
2020-05-11 13:40:23.408996783 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-web-console.new.3060/rubygem-web-console.changes
        2020-06-25 15:11:33.990144430 +0200
@@ -1,0 +2,8 @@
+Thu Jun 25 09:48:09 UTC 2020 - Manuel Schnitzer <[email protected]>
+
+- updated to version 4.0.3
+
+  * [#291](https://github.com/rails/web-console/pull/291) Deprecate 
config.web_console.whitelisted_ips ([@JuanitoFatas])
+  * [#290](https://github.com/rails/web-console/pull/290) Fix Content-Length 
for rack >= 2.1.0 ([@p8])
+
+-------------------------------------------------------------------

Old:
----
  web-console-4.0.2.gem

New:
----
  web-console-4.0.3.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-web-console.spec ++++++
--- /var/tmp/diff_new_pack.NYXcht/_old  2020-06-25 15:11:36.402151999 +0200
+++ /var/tmp/diff_new_pack.NYXcht/_new  2020-06-25 15:11:36.406152011 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-web-console
-Version:        4.0.2
+Version:        4.0.3
 Release:        0
 %define mod_name web-console
 %define mod_full_name %{mod_name}-%{version}

++++++ web-console-4.0.2.gem -> web-console-4.0.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.markdown new/CHANGELOG.markdown
--- old/CHANGELOG.markdown      2020-05-05 15:29:39.000000000 +0200
+++ new/CHANGELOG.markdown      2020-06-17 12:29:42.000000000 +0200
@@ -2,6 +2,11 @@
 
 ## master (unreleased)
 
+## 4.0.3
+
+* [#291](https://github.com/rails/web-console/pull/291) Deprecate 
config.web_console.whitelisted_ips ([@JuanitoFatas])
+* [#290](https://github.com/rails/web-console/pull/290) Fix Content-Length for 
rack >= 2.1.0 ([@p8])
+
 ## 4.0.2
 
 * [#285](https://github.com/rails/web-console/pull/285) Increase timeout on 
paste ([@celvro])
@@ -12,12 +17,12 @@
 
 ## 4.0.0
 
-* 
[|61c](https://github.com/rails/web-console/commit/61ce65b599f56809de1bd8da6590a80acbd92017)
 Move to config.web_console.permissions ([@gsamokovarov])
-* 
[|961](https://github.com/rails/web-console/commit/96127aac143e1e653fffdc4bb65e1ce0b5ff342d)
 Introduce Binding#console as an alternative interface ([@gsamokovarov])
-* 
[|d45](https://github.com/rails/web-console/commit/d4591ca5396ed15a08818f3da11134852a485b27)
 Introduce Rails 6 support ([@gsamokovarov])
-* 
[|f97](https://github.com/rails/web-console/commit/f97d8a889a38366485e5c5e8985995c19bf61d13)
 Introduce Ruby 2.6 support ([@gsamokovarov])
-* 
[|d6d](https://github.com/rails/web-console/commit/d6deacd9d5fcaabf3e3051d6985b53f924f86956)
 Drop Rails 5 support ([@gsamokovarov])
-* 
[|90f](https://github.com/rails/web-console/commit/90fda8789d402f05647c18f8cdf8e5c3d01692dd)
 Drop Ruby 2.4 support ([@gsamokovarov])
+* 
[61ce65b5](https://github.com/rails/web-console/commit/61ce65b599f56809de1bd8da6590a80acbd92017)
 Move to config.web_console.permissions ([@gsamokovarov])
+* 
[96127ac1](https://github.com/rails/web-console/commit/96127aac143e1e653fffdc4bb65e1ce0b5ff342d)
 Introduce Binding#console as an alternative interface ([@gsamokovarov])
+* 
[d4591ca5](https://github.com/rails/web-console/commit/d4591ca5396ed15a08818f3da11134852a485b27)
 Introduce Rails 6 support ([@gsamokovarov])
+* 
[f97d8a88](https://github.com/rails/web-console/commit/f97d8a889a38366485e5c5e8985995c19bf61d13)
 Introduce Ruby 2.6 support ([@gsamokovarov])
+* 
[d6deacd9](https://github.com/rails/web-console/commit/d6deacd9d5fcaabf3e3051d6985b53f924f86956)
 Drop Rails 5 support ([@gsamokovarov])
+* 
[90fda878](https://github.com/rails/web-console/commit/90fda8789d402f05647c18f8cdf8e5c3d01692dd)
 Drop Ruby 2.4 support ([@gsamokovarov])
 * [#265](https://github.com/rails/web-console/pull/265) Add support for nested 
exceptions ([@yuki24])
 
 ## 3.7.0
@@ -159,3 +164,5 @@
 [@yuki24]: https://github.com/yuki24
 [@patorash]: https://github.com/patorash
 [@celvro]: https://github.com/celvro
+[@JuanitoFatas]: https://github.com/JuanitoFatas
+[@p8]: https://github.com/p8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.markdown new/README.markdown
--- old/README.markdown 2020-05-05 15:29:39.000000000 +0200
+++ new/README.markdown 2020-06-17 12:29:42.000000000 +0200
@@ -66,7 +66,7 @@
 `config.web_console.permissions` lets you control which IP's have access to
 the console.
 
-You can whitelist single IP's or whole networks. Say you want to share your
+You can allow single IP's or whole networks. Say you want to share your
 console with `192.168.0.100`:
 
 ```ruby
@@ -75,7 +75,7 @@
 end
 ```
 
-If you want to whitelist the whole private network:
+If you want to allow the whole private network:
 
 ```ruby
 Rails.application.configure do
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/web_console/injector.rb 
new/lib/web_console/injector.rb
--- old/lib/web_console/injector.rb     2020-05-05 15:29:39.000000000 +0200
+++ new/lib/web_console/injector.rb     2020-06-17 12:29:42.000000000 +0200
@@ -13,9 +13,11 @@
     end
 
     def inject(content)
-      # Remove any previously set Content-Length header because we modify
-      # the body. Otherwise the response will be truncated.
-      @headers.delete("Content-Length")
+      # Set Content-Length header to the size of the current body
+      # + the extra content. Otherwise the response will be truncated.
+      if @headers["Content-Length"]
+        @headers["Content-Length"] = @body.bytesize + content.bytesize
+      end
 
       [
         if position = @body.rindex("</body>")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/web_console/permissions.rb 
new/lib/web_console/permissions.rb
--- old/lib/web_console/permissions.rb  2020-05-05 15:29:39.000000000 +0200
+++ new/lib/web_console/permissions.rb  2020-06-17 12:29:42.000000000 +0200
@@ -4,7 +4,7 @@
 
 module WebConsole
   class Permissions
-    # IPv4 and IPv6 localhost should be always whitelisted.
+    # IPv4 and IPv6 localhost should be always allowed.
     ALWAYS_PERMITTED_NETWORKS = %w( 127.0.0.0/8 ::1 )
 
     def initialize(networks = nil)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/web_console/railtie.rb 
new/lib/web_console/railtie.rb
--- old/lib/web_console/railtie.rb      2020-05-05 15:29:39.000000000 +0200
+++ new/lib/web_console/railtie.rb      2020-06-17 12:29:42.000000000 +0200
@@ -52,10 +52,25 @@
     end
 
     initializer "web_console.permissions" do
-      permissions = config.web_console.permissions || 
config.web_console.whitelisted_ips
+      permissions = web_console_permissions
       Request.permissions = Permissions.new(permissions)
     end
 
+    def web_console_permissions
+      case
+      when config.web_console.permissions
+        config.web_console.permissions
+      when config.web_console.allowed_ips
+        config.web_console.allowed_ips
+      when config.web_console.whitelisted_ips
+        ActiveSupport::Deprecation.warn(<<-MSG.squish)
+          The config.web_console.whitelisted_ips is deprecated and will be 
ignored in future release of web_console.
+          Please use config.web_console.allowed_ips instead.
+        MSG
+        config.web_console.whitelisted_ips
+      end
+    end
+
     initializer "web_console.whiny_requests" do
       if config.web_console.key?(:whiny_requests)
         Middleware.whiny_requests = config.web_console.whiny_requests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/web_console/version.rb 
new/lib/web_console/version.rb
--- old/lib/web_console/version.rb      2020-05-05 15:29:39.000000000 +0200
+++ new/lib/web_console/version.rb      2020-06-17 12:29:42.000000000 +0200
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module WebConsole
-  VERSION = "4.0.2"
+  VERSION = "4.0.3"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-05-05 15:29:39.000000000 +0200
+++ new/metadata        2020-06-17 12:29:42.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: web-console
 version: !ruby/object:Gem::Version
-  version: 4.0.2
+  version: 4.0.3
 platform: ruby
 authors:
 - Charlie Somerville
@@ -11,7 +11,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-05-05 00:00:00.000000000 Z
+date: 2020-06-17 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: railties


Reply via email to