compare-xml 0.61 → 0.62

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d518768772143a33cc7c2f799678d4884af7771a
4
- data.tar.gz: 6dff6acb2ab2c964db28c48850c902bfcb9c349d
3
+ metadata.gz: 1978c95c8d1916bed53ccf29bf69092b8cba6eb8
4
+ data.tar.gz: 905a08ef43f5d338e5e46b037772a608ae7660cd
5
5
  SHA512:
6
- metadata.gz: e4faae65d888e4663215d07955c3dbc34ca25cc3230b1d037f1e02f3eafb7cd11e7393032cd2fbe1a1982546138dd00a8311e1c01003c3b66ec2fea11df45505
7
- data.tar.gz: d1eccf79ec179f0878a5580b6a1ecae52dd935658ac0d6e0645686d0577dc015b5eacf89f7630b711e867ec902c1794c08a6dd301e9648276a48e6aee45a908f
6
+ metadata.gz: bd58cfd19159ca82c7519e3cb0a39bc3f31c3497451c445bab3b68207ae43c1cb1032e0bfa3669f5bdc1ddc86276879e6208841e45be4edccc0e775945ca9e78
7
+ data.tar.gz: 378902c6096df0533849c07158a1b599d872b8d3e6d23035f247eabcd736cbb505fe0dbed5cda2e88c7dae36fc65dd83f4e14b45a9d7115a19ef6199c6f46de0
data/lib/compare-xml.rb CHANGED
@@ -110,7 +110,13 @@ module CompareXML
110
110
  addDifference(n1, n2, n1, n2, opts, differences)
111
111
  else
112
112
  status = UNEQUAL_NODES_TYPES
113
- addDifference(n1, n2, n1, n2, opts, differences)
113
+ if n1.is_a? Nokogiri::XML::Text
114
+ addDifference(n1.parent, n2, n1, n2, opts, differences)
115
+ elsif n2.is_a? Nokogiri::XML::Text
116
+ addDifference(n1, n2.parent, n1, n2, opts, differences)
117
+ else
118
+ addDifference(n1, n2, n1, n2, opts, differences)
119
+ end
114
120
  end
115
121
  status
116
122
  end
@@ -1,3 +1,3 @@
1
1
  module CompareXML
2
- VERSION = '0.61'
2
+ VERSION = '0.62'
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compare-xml
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.61'
4
+ version: '0.62'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Kononov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-30 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.11'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.11'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '11.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '11.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.6'
55
55
  description: CompareXML is a fast, lightweight and feature-rich tool that will solve
@@ -61,7 +61,7 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - Gemfile
66
66
  - LICENSE.txt
67
67
  - README.md
@@ -82,17 +82,17 @@ require_paths:
82
82
  - lib
83
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - '>='
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.2
95
+ rubygems_version: 2.5.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: A customizable tool that compares two instances of Nokogiri::XML::Node for