Hello community,
here is the log from the commit of package rubygem-rails-dom-testing for
openSUSE:Factory checked in at 2016-06-12 18:54:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rails-dom-testing (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rails-dom-testing.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rails-dom-testing"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-rails-dom-testing/rubygem-rails-dom-testing.changes
2016-05-13 09:23:48.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-rails-dom-testing.new/rubygem-rails-dom-testing.changes
2016-06-12 18:54:30.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Jun 2 04:32:36 UTC 2016 - [email protected]
+
+- updated to version 2.0.1
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
rails-dom-testing-2.0.0.gem
New:
----
rails-dom-testing-2.0.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rails-dom-testing.spec ++++++
--- /var/tmp/diff_new_pack.DOz6p8/_old 2016-06-12 18:54:31.000000000 +0200
+++ /var/tmp/diff_new_pack.DOz6p8/_new 2016-06-12 18:54:31.000000000 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-rails-dom-testing
-Version: 2.0.0
+Version: 2.0.1
Release: 0
%define mod_name rails-dom-testing
%define mod_full_name %{mod_name}-%{version}
++++++ rails-dom-testing-2.0.0.gem -> rails-dom-testing-2.0.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2016-05-08 20:52:32.000000000 +0200
+++ new/README.md 2016-06-01 11:55:37.000000000 +0200
@@ -5,13 +5,9 @@
Elements are asserted via `assert_select`, `assert_select_encoded`,
`assert_select_email` and a subset of the dom can be selected with `css_select`.
The gem is developed for Rails 4.2 and above, and will not work on previous
versions.
-## Deprecation warnings when upgrading to Rails 4.2:
+## Nokogiri::CSS::SyntaxError exceptions when upgrading to Rails 4.2:
-Nokogiri is slightly more strict about the format of css selectors than the
previous implementation. That's why you have warnings like:
-
-```
-DEPRECATION WARNING: The assertion was not run because of an invalid css
selector.
-```
+Nokogiri is slightly stricter about the format of CSS selectors than the
previous implementation.
Check the 4.2 release notes [section on
`assert_select`](http://edgeguides.rubyonrails.org/4_2_release_notes.html#assert-select)
for help.
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/dom/testing/assertions/selector_assertions.rb
new/lib/rails/dom/testing/assertions/selector_assertions.rb
--- old/lib/rails/dom/testing/assertions/selector_assertions.rb 2016-05-08
20:52:32.000000000 +0200
+++ new/lib/rails/dom/testing/assertions/selector_assertions.rb 2016-06-01
11:55:37.000000000 +0200
@@ -62,9 +62,6 @@
root = args.size == 1 ? document_root_element : args.shift
nodeset(root).css(args.first)
- rescue Nokogiri::CSS::SyntaxError => e
- ActiveSupport::Deprecation.warn("The assertion was not run because
of an invalid css selector.\n#{e}", caller(2))
- return
end
# An assertion that selects elements and makes one or more equality
tests.
@@ -177,9 +174,6 @@
nest_selection(matches, &block) if block_given? && !matches.empty?
end
- rescue Nokogiri::CSS::SyntaxError => e
- ActiveSupport::Deprecation.warn("The assertion was not run because
of an invalid css selector.\n#{e}", caller(2))
- return
end
# Extracts the content of an element, treats it as encoded HTML and
runs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/dom/testing/version.rb
new/lib/rails/dom/testing/version.rb
--- old/lib/rails/dom/testing/version.rb 2016-05-08 20:52:32.000000000
+0200
+++ new/lib/rails/dom/testing/version.rb 2016-06-01 11:55:37.000000000
+0200
@@ -1,7 +1,7 @@
module Rails
module Dom
module Testing
- VERSION = "2.0.0"
+ VERSION = "2.0.1"
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2016-05-08 20:52:32.000000000 +0200
+++ new/metadata 2016-06-01 11:55:37.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rails-dom-testing
version: !ruby/object:Gem::Version
- version: 2.0.0
+ version: 2.0.1
platform: ruby
authors:
- Rafael Mendonça França
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2016-05-08 00:00:00.000000000 Z
+date: 2016-06-01 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: nokogiri
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/selector_assertions_test.rb
new/test/selector_assertions_test.rb
--- old/test/selector_assertions_test.rb 2016-05-08 20:52:32.000000000
+0200
+++ new/test/selector_assertions_test.rb 2016-06-01 11:55:37.000000000
+0200
@@ -220,15 +220,15 @@
# testing invalid selectors
def test_assert_select_with_invalid_selector
render_html '<a href="http://example.com">hello</a>'
- assert_deprecated do
- assert_nil assert_select("[href=http://example.com]")
+ assert_raises Nokogiri::CSS::SyntaxError do
+ assert_select("[href=http://example.com]")
end
end
def test_css_select_with_invalid_selector
render_html '<a href="http://example.com">hello</a>'
- assert_deprecated do
- assert_nil css_select("[href=http://example.com]")
+ assert_raises Nokogiri::CSS::SyntaxError do
+ css_select("[href=http://example.com]")
end
end