Hello community,
here is the log from the commit of package rubygem-web-console for
openSUSE:Factory checked in at 2016-07-01 09:59:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-web-console (Old)
and /work/SRC/openSUSE:Factory/.rubygem-web-console.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-web-console"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-web-console/rubygem-web-console.changes
2016-04-22 16:24:27.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-web-console.new/rubygem-web-console.changes
2016-07-01 09:59:27.000000000 +0200
@@ -1,0 +2,11 @@
+Tue Jun 7 04:34:53 UTC 2016 - [email protected]
+
+- updated to version 3.2.0
+ see installed CHANGELOG.markdown
+
+ ## 3.2.0
+
+ * [#198](https://github.com/rails/web-console/pull/198) Pick the first
application trace binding on errors ([@sh19910711])
+ * [#189](https://github.com/rails/web-console/pull/189) Silence ActionView
rendering information ([@gsamokovarov])
+
+-------------------------------------------------------------------
Old:
----
web-console-3.1.1.gem
New:
----
web-console-3.2.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-web-console.spec ++++++
--- /var/tmp/diff_new_pack.FSAkeH/_old 2016-07-01 09:59:28.000000000 +0200
+++ /var/tmp/diff_new_pack.FSAkeH/_new 2016-07-01 09:59:28.000000000 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-web-console
-Version: 3.1.1
+Version: 3.2.0
Release: 0
%define mod_name web-console
%define mod_full_name %{mod_name}-%{version}
++++++ web-console-3.1.1.gem -> web-console-3.2.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.markdown new/CHANGELOG.markdown
--- old/CHANGELOG.markdown 2016-01-28 10:20:38.000000000 +0100
+++ new/CHANGELOG.markdown 2016-06-06 22:16:21.000000000 +0200
@@ -2,6 +2,11 @@
## master (unreleased)
+## 3.2.0
+
+* [#198](https://github.com/rails/web-console/pull/198) Pick the first
application trace binding on errors ([@sh19910711])
+* [#189](https://github.com/rails/web-console/pull/189) Silence ActionView
rendering information ([@gsamokovarov])
+
## 3.1.1
* [#185](https://github.com/rails/web-console/pull/185) Fix `rails console`
startup ([@gsamokovarov])
@@ -19,6 +24,14 @@
* [#162](https://github.com/rails/web-console/pull/162) Render the console
inside the body tag ([@gsamokovarov])
* [#165](https://github.com/rails/web-console/pull/165) Revamped integrations
for CRuby and Rubinius ([@gsamokovarov])
+## 2.3.0
+
+This is mainly a Rails 5 compatibility release. If you have the chance, please
+go to 3.1.0 instead.
+
+* [#181](https://github.com/rails/web-console/pull/181) Log internal Web
Console errors (@schneems)
+* [#150](https://github.com/rails/web-console/pull/150) Revert #150.
(@gsamokovarov)
+
## 2.2.1
* [#150](https://github.com/rails/web-console/pull/150) Change
config.development_only default until 4.2.4 is released ([@gsamokovarov])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.markdown new/README.markdown
--- old/README.markdown 2016-01-28 10:20:38.000000000 +0100
+++ new/README.markdown 2016-06-06 22:16:21.000000000 +0200
@@ -37,7 +37,7 @@
### CRuby
-CRuby 2.2 and below is **not** supported.
+CRuby 2.2 and above is required.
### Rubinius
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/mapper.rb
new/lib/web_console/mapper.rb
--- old/lib/web_console/mapper.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/web_console/mapper.rb 2016-06-06 22:16:21.000000000 +0200
@@ -0,0 +1,11 @@
+module WebConsole
+ class Mapper
+ def initialize(exception)
+ @exception = exception
+ end
+
+ def [](index)
+ @exception.backtrace[index]
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/web_console/session.rb
new/lib/web_console/session.rb
--- old/lib/web_console/session.rb 2016-01-28 10:20:38.000000000 +0100
+++ new/lib/web_console/session.rb 2016-06-06 22:16:21.000000000 +0200
@@ -43,7 +43,7 @@
def initialize(bindings)
@id = SecureRandom.hex(16)
@bindings = Array(bindings)
- @evaluator = Evaluator.new(@bindings[0])
+ @evaluator = Evaluator.new(initial_binding)
store_into_memory
end
@@ -64,6 +64,10 @@
private
+ def initial_binding
+ @bindings.find { |b|
b.eval('__FILE__').to_s.start_with?(Rails.root.to_s) }
+ end
+
def store_into_memory
inmemory_storage[id] = self
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/web_console/templates/layouts/javascript.erb
new/lib/web_console/templates/layouts/javascript.erb
--- old/lib/web_console/templates/layouts/javascript.erb 2016-01-28
10:20:38.000000000 +0100
+++ new/lib/web_console/templates/layouts/javascript.erb 2016-06-06
22:16:21.000000000 +0200
@@ -1,4 +1,4 @@
-<script type="text/javascript">
+<script type="text/javascript" data-template="<%= @template %>">
(function() {
<%= yield %>
}).call(this);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/web_console/testing/fake_middleware.rb
new/lib/web_console/testing/fake_middleware.rb
--- old/lib/web_console/testing/fake_middleware.rb 2016-01-28
10:20:38.000000000 +0100
+++ new/lib/web_console/testing/fake_middleware.rb 2016-06-06
22:16:21.000000000 +0200
@@ -1,11 +1,7 @@
require 'action_view'
-require 'action_dispatch'
-require 'active_support/core_ext/string/access'
-require 'json'
-require 'web_console/whitelist'
-require 'web_console/request'
-require 'web_console/view'
+require 'web_console'
require 'web_console/testing/helper'
+Mime = { web_console_v2: 'fake' }
module WebConsole
module Testing
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 2016-01-28 10:20:38.000000000 +0100
+++ new/lib/web_console/version.rb 2016-06-06 22:16:21.000000000 +0200
@@ -1,3 +1,3 @@
module WebConsole
- VERSION = '3.1.1'
+ VERSION = '3.2.0'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/web_console/view.rb new/lib/web_console/view.rb
--- old/lib/web_console/view.rb 2016-01-28 10:20:38.000000000 +0100
+++ new/lib/web_console/view.rb 2016-06-06 22:16:21.000000000 +0200
@@ -5,7 +5,7 @@
# The error pages are special, because they are the only pages that
# currently require multiple bindings. We get those from exceptions.
def only_on_error_page(*args)
- yield if @env['web_console.exception'].present?
+ yield if Thread.current[:__web_console_exception].present?
end
# Render JavaScript inside a script tag and a closure.
@@ -14,6 +14,7 @@
# script tag and enclosed in a closure, so you don't have to worry for
# leaking globals, unless you explicitly want to.
def render_javascript(template)
+ assign(template: template)
render(template: template, layout: 'layouts/javascript')
end
@@ -25,6 +26,14 @@
render(template: template, layout: 'layouts/inlined_string')
end
+ # Custom ActionView::Base#render wrapper which silences all the log
+ # printings.
+ #
+ # Helps to keep the Rails logs clean during errors.
+ def render(*)
+ WebConsole.logger.silence { super }
+ end
+
# Override method for ActionView::Helpers::TranslationHelper#t.
#
# This method escapes the original return value for JavaScript, since the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2016-01-28 10:20:38.000000000 +0100
+++ new/metadata 2016-06-06 22:16:21.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: web-console
version: !ruby/object:Gem::Version
- version: 3.1.1
+ version: 3.2.0
platform: ruby
authors:
- Charlie Somerville
@@ -11,7 +11,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2016-01-28 00:00:00.000000000 Z
+date: 2016-06-06 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: railties
@@ -78,6 +78,7 @@
- lib/web_console/integration/cruby.rb
- lib/web_console/integration/rubinius.rb
- lib/web_console/locales/en.yml
+- lib/web_console/mapper.rb
- lib/web_console/middleware.rb
- lib/web_console/railtie.rb
- lib/web_console/request.rb