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.
@@ -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.
@@ -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.
@@ -156,3 +156,7 @@ module EquivalentXml
156
156
  end
157
157
 
158
158
  end
159
+
160
+ if defined?(::RSpec) or defined?(::Spec)
161
+ require 'equivalent-xml/rspec_matchers'
162
+ end
@@ -37,21 +37,11 @@ module EquivalentXml::RSpecMatchers
37
37
  end
38
38
 
39
39
  failure_message_for_should do |actual|
40
- <<-MESSAGE
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
- <<-MESSAGE
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
 
@@ -1,7 +1,7 @@
1
1
  $:.push(File.join(File.dirname(__FILE__),'..','lib'))
2
2
  require 'nokogiri'
3
3
  require 'equivalent-xml'
4
- require 'equivalent-xml/rspec_matchers'
4
+ #require 'equivalent-xml/rspec_matchers'
5
5
 
6
6
  describe EquivalentXml do
7
7
 
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
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-03-24 00:00:00 -07:00
18
+ date: 2011-07-05 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency