Hello community,
here is the log from the commit of package rubygem-rails-dom-testing for
openSUSE:Factory checked in at 2015-03-23 12:17:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
2015-02-16 21:12:28.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rails-dom-testing.new/rubygem-rails-dom-testing.changes
2015-03-23 12:17:59.000000000 +0100
@@ -1,0 +2,14 @@
+Wed Mar 18 15:38:28 UTC 2015 - [email protected]
+
+- updated to version 1.0.6
+ ## Deprecation warnings 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.
+ ```
+
+ Check the 4.2 release notes [section on
`assert_select`](http://edgeguides.rubyonrails.org/4_2_release_notes.html#assert-select)
for help.
+
+-------------------------------------------------------------------
Old:
----
rails-dom-testing-1.0.5.gem
New:
----
rails-dom-testing-1.0.6.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rails-dom-testing.spec ++++++
--- /var/tmp/diff_new_pack.7J9FXK/_old 2015-03-23 12:18:00.000000000 +0100
+++ /var/tmp/diff_new_pack.7J9FXK/_new 2015-03-23 12:18:00.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rails-dom-testing
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-rails-dom-testing
-Version: 1.0.5
+Version: 1.0.6
Release: 0
%define mod_name rails-dom-testing
%define mod_full_name %{mod_name}-%{version}
@@ -34,18 +34,19 @@
%endif
# /MANUAL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: ruby-macros >= 5
-BuildRequires: %{ruby}
BuildRequires: %{rubygem gem2rpm}
-Url: https://github.com/kaspth/rails-dom-testing
+BuildRequires: %{ruby}
+BuildRequires: ruby-macros >= 5
+Url: https://github.com/rails/rails-dom-testing
Source: http://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
-Summary: This gem can compare doms and assert certain elements exists
in doms
+Summary: Dom and Selector assertions for Rails applications
License: MIT
Group: Development/Languages/Ruby
%description
-Dom and Selector assertions for Rails applications .
+This gem can compare doms and assert certain elements exists in doms using
+Nokogiri. .
%prep
++++++ rails-dom-testing-1.0.5.gem -> rails-dom-testing-1.0.6.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2014-11-25 22:41:06.000000000 +0100
+++ new/README.md 2015-03-17 19:14:55.000000000 +0100
@@ -6,6 +6,15 @@
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 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.
+```
+
+Check the 4.2 release notes [section on
`assert_select`](http://edgeguides.rubyonrails.org/4_2_release_notes.html#assert-select)
for help.
## Installation
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/substitution_context.rb
new/lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb
---
old/lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb
2014-11-25 22:41:06.000000000 +0100
+++
new/lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb
2015-03-17 19:14:55.000000000 +0100
@@ -1,27 +1,21 @@
class SubstitutionContext
def initialize
@substitute = '?'
- @regexes = []
end
def substitute!(selector, values)
while !values.empty? && substitutable?(values.first) &&
selector.index(@substitute)
- selector.sub! @substitute, substitution_id_for(values.shift)
+ selector.sub! @substitute, matcher_for(values.shift)
end
end
- def match(matches, attribute, substitution_id)
- matches.find_all { |node| node[attribute] =~ @regexes[substitution_id] }
+ def match(matches, attribute, matcher)
+ matches.find_all { |node| node[attribute] =~ Regexp.new(matcher) }
end
private
- def substitution_id_for(value)
- if value.is_a?(Regexp)
- @regexes << value
- @regexes.size - 1
- else
- value
- end.inspect # Nokogiri doesn't like arbitrary values without quotes,
hence inspect.
+ def matcher_for(value)
+ value.to_s.inspect # Nokogiri doesn't like arbitrary values without
quotes, hence inspect.
end
def substitutable?(value)
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 2014-11-25 22:41:06.000000000
+0100
+++ new/lib/rails/dom/testing/version.rb 2015-03-17 19:14:55.000000000
+0100
@@ -1,7 +1,7 @@
module Rails
module Dom
module Testing
- VERSION = "1.0.5"
+ VERSION = "1.0.6"
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2014-11-25 22:41:06.000000000 +0100
+++ new/metadata 2015-03-17 19:14:55.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rails-dom-testing
version: !ruby/object:Gem::Version
- version: 1.0.5
+ version: 1.0.6
platform: ruby
authors:
- Rafael Mendonça França
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2014-11-25 00:00:00.000000000 Z
+date: 2015-03-17 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: nokogiri
@@ -101,7 +101,8 @@
- - ">="
- !ruby/object:Gem::Version
version: '0'
-description: " Dom and Selector assertions for Rails applications "
+description: " This gem can compare doms and assert certain elements exists in
doms
+ using Nokogiri. "
email:
- [email protected]
- [email protected]
@@ -124,7 +125,7 @@
- test/selector_assertions_test.rb
- test/tag_assertions_test.rb
- test/test_helper.rb
-homepage: https://github.com/kaspth/rails-dom-testing
+homepage: https://github.com/rails/rails-dom-testing
licenses:
- MIT
metadata: {}
@@ -144,11 +145,10 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.2.2
+rubygems_version: 2.4.5
signing_key:
specification_version: 4
-summary: This gem can compare doms and assert certain elements exists in doms
using
- Nokogiri.
+summary: Dom and Selector assertions for Rails applications
test_files:
- test/dom_assertions_test.rb
- test/selector_assertions_test.rb
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]