equivalent-xml 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +1 -1
- data/README.rdoc +18 -0
- data/lib/equivalent-xml.rb +4 -0
- data/lib/equivalent-xml/rspec_matchers.rb +2 -12
- data/spec/equivalent-xml_spec.rb +1 -1
- metadata +4 -4
data/LICENSE.txt
CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -86,6 +86,24 @@ Chained modifiers:
|
|
86
86
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
87
87
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
88
88
|
|
89
|
+
== History
|
90
|
+
|
91
|
+
- <b>0.2.7</b> - Auto-require RSpec matchers if RSpec is loaded
|
92
|
+
- <b>0.2.6</b> - Added documentation for RSpec matchers
|
93
|
+
- <b>0.2.5</b> - Added YARD documentation
|
94
|
+
- <b>0.2.4</b> - Fixed comparison of non-XML input
|
95
|
+
- <b>0.2.3</b> - Improved handling of non-XML input
|
96
|
+
- <b>0.2.2</b> - Dependency update
|
97
|
+
- <b>0.2.1</b> - Hotfix: Missing files in gemspec
|
98
|
+
- <b>0.2.0</b> - Custom rspec matchers
|
99
|
+
- <b>0.1.6</b> - Allow caller to override comparison result in block
|
100
|
+
- <b>0.1.5</b> - Allow XML documents to be passed as strings, re-instituting dependency on nokogiri
|
101
|
+
- <b>0.1.4</b> - Hotfix: Missing block parameter on compare_nodesets()
|
102
|
+
- <b>0.1.3</b> - Hotfix: Missing block parameter on compare_nodesets()
|
103
|
+
- <b>0.1.2</b> - Yield evaluated nodes and provisional result if block given
|
104
|
+
- <b>0.1.1</b> - Removed explicit runtime dependency on nokogiri
|
105
|
+
- <b>0.1.0</b> - Initial release
|
106
|
+
|
89
107
|
== Copyright
|
90
108
|
|
91
109
|
Copyright (c) 2011 Michael B. Klein. See LICENSE.txt for further details.
|
data/lib/equivalent-xml.rb
CHANGED
@@ -37,21 +37,11 @@ module EquivalentXml::RSpecMatchers
|
|
37
37
|
end
|
38
38
|
|
39
39
|
failure_message_for_should do |actual|
|
40
|
-
|
41
|
-
expected:
|
42
|
-
#{expected.to_s}
|
43
|
-
got:
|
44
|
-
#{actual.to_s}
|
45
|
-
MESSAGE
|
40
|
+
[ 'expected:', expected.to_s, 'got:', actual.to_s ].join("\n")
|
46
41
|
end
|
47
42
|
|
48
43
|
failure_message_for_should_not do |actual|
|
49
|
-
|
50
|
-
expected:
|
51
|
-
#{actual.to_s}
|
52
|
-
not to be equivalent to:
|
53
|
-
#{expected.to_s}
|
54
|
-
MESSAGE
|
44
|
+
[ 'expected:', actual.to_s, 'not to be equivalent to:', expected.to_s ].join("\n")
|
55
45
|
end
|
56
46
|
end
|
57
47
|
|
data/spec/equivalent-xml_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: equivalent-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael B. Klein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-05 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|