dynport_tools 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/xmldiff +16 -0
- data/dynport_tools.gemspec +4 -1
- metadata +7 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/bin/xmldiff
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "dynport_tools"
|
2
|
+
require "dynport_tools/differ"
|
3
|
+
require "xml_file"
|
4
|
+
|
5
|
+
file_a, file_b = ARGV[0,2]
|
6
|
+
|
7
|
+
if file_a && File.exists?(file_a) && file_b && File.exists?(file_b)
|
8
|
+
a = XmlFile.new(file_a)
|
9
|
+
b = XmlFile.new(file_b)
|
10
|
+
differ = DynportTools::Differ.new
|
11
|
+
diff = differ.diff(a.nodes_hash, b.nodes_hash)
|
12
|
+
puts differ.diff_to_message_lines(diff)
|
13
|
+
else
|
14
|
+
puts "USAGE: xml_diff <file> <file>"
|
15
|
+
end
|
16
|
+
|
data/dynport_tools.gemspec
CHANGED
@@ -5,13 +5,15 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dynport_tools}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tobias Schwab"]
|
12
12
|
s.date = %q{2011-08-15}
|
13
|
+
s.default_executable = %q{xmldiff}
|
13
14
|
s.description = %q{Collection of various tools}
|
14
15
|
s.email = %q{tobias.schwab@dynport.de}
|
16
|
+
s.executables = ["xmldiff"]
|
15
17
|
s.extra_rdoc_files = [
|
16
18
|
"LICENSE.txt",
|
17
19
|
"README.rdoc"
|
@@ -26,6 +28,7 @@ Gem::Specification.new do |s|
|
|
26
28
|
"Rakefile",
|
27
29
|
"VERSION",
|
28
30
|
"autotest/discover.rb",
|
31
|
+
"bin/xmldiff",
|
29
32
|
"dynport_tools.gemspec",
|
30
33
|
"lib/dynport_tools.rb",
|
31
34
|
"lib/dynport_tools/differ.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynport_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Schwab
|
@@ -16,7 +16,7 @@ bindir: bin
|
|
16
16
|
cert_chain: []
|
17
17
|
|
18
18
|
date: 2011-08-15 00:00:00 +02:00
|
19
|
-
default_executable:
|
19
|
+
default_executable: xmldiff
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: nokogiri
|
@@ -154,8 +154,8 @@ dependencies:
|
|
154
154
|
requirement: *id009
|
155
155
|
description: Collection of various tools
|
156
156
|
email: tobias.schwab@dynport.de
|
157
|
-
executables:
|
158
|
-
|
157
|
+
executables:
|
158
|
+
- xmldiff
|
159
159
|
extensions: []
|
160
160
|
|
161
161
|
extra_rdoc_files:
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- Rakefile
|
172
172
|
- VERSION
|
173
173
|
- autotest/discover.rb
|
174
|
+
- bin/xmldiff
|
174
175
|
- dynport_tools.gemspec
|
175
176
|
- lib/dynport_tools.rb
|
176
177
|
- lib/dynport_tools/differ.rb
|