tdiff 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +1 -1
- data/.gemtest +0 -0
- data/.gitignore +2 -0
- data/ChangeLog.md +7 -0
- data/README.md +6 -2
- data/Rakefile +8 -7
- data/gemspec.yml +6 -5
- data/lib/tdiff.rb +1 -0
- data/lib/tdiff/version.rb +3 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/tdiff_spec.rb +1 -1
- data/spec/unordered_spec.rb +2 -1
- data/tdiff.gemspec +57 -7
- metadata +68 -78
data/.document
CHANGED
data/.gemtest
ADDED
File without changes
|
data/.gitignore
ADDED
data/ChangeLog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.3.3 / 2012-05-28
|
2
|
+
|
3
|
+
* Require ruby >= 1.8.7.
|
4
|
+
* Added {TDiff::VERSION}.
|
5
|
+
* Replaced ore-tasks with
|
6
|
+
[rubygems-tasks](https://github.com/postmodern/rubygems-tasks#readme).
|
7
|
+
|
1
8
|
### 0.3.2 / 2010-11-28
|
2
9
|
|
3
10
|
* Added {TDiff#tdiff_recursive} to only handle recursively traversing
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# TDiff
|
2
2
|
|
3
|
-
* [Source](
|
4
|
-
* [Issues](
|
3
|
+
* [Source](https://github.com/postmodern/tdiff)
|
4
|
+
* [Issues](https://github.com/postmodern/tdiff/issues)
|
5
5
|
* Postmodern (postmodern.mod3 at gmail.com)
|
6
6
|
|
7
7
|
## Description
|
@@ -65,6 +65,10 @@ Diff two HTML documents:
|
|
65
65
|
+ two /html/body/div/p[2]
|
66
66
|
three /html/body/div/p[2]
|
67
67
|
|
68
|
+
## Requirements
|
69
|
+
|
70
|
+
* [ruby](http://www.ruby-lang.org/) >= 1.8.7
|
71
|
+
|
68
72
|
## Install
|
69
73
|
|
70
74
|
$ gem install tdiff
|
data/Rakefile
CHANGED
@@ -2,17 +2,17 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
|
4
4
|
begin
|
5
|
-
gem '
|
6
|
-
require '
|
5
|
+
gem 'rubygems-tasks', '~> 0.1'
|
6
|
+
require 'rubygems/tasks'
|
7
7
|
|
8
|
-
|
8
|
+
Gem::Tasks.new
|
9
9
|
rescue LoadError => e
|
10
|
-
|
11
|
-
|
10
|
+
warn e.message
|
11
|
+
warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
|
12
12
|
end
|
13
13
|
|
14
14
|
begin
|
15
|
-
gem 'rspec', '~> 2.
|
15
|
+
gem 'rspec', '~> 2.4'
|
16
16
|
require 'rspec/core/rake_task'
|
17
17
|
|
18
18
|
RSpec::Core::RakeTask.new
|
@@ -21,10 +21,11 @@ rescue LoadError => e
|
|
21
21
|
abort "Please run `gem install rspec` to install RSpec."
|
22
22
|
end
|
23
23
|
end
|
24
|
+
task :test => :spec
|
24
25
|
task :default => :spec
|
25
26
|
|
26
27
|
begin
|
27
|
-
gem 'yard', '~> 0.
|
28
|
+
gem 'yard', '~> 0.7'
|
28
29
|
require 'yard'
|
29
30
|
|
30
31
|
YARD::Rake::YardocTask.new
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
name: tdiff
|
2
|
-
version: 0.3.2
|
3
2
|
summary: Calculates the differences between two tree-like structures.
|
4
3
|
description:
|
5
4
|
Calculates the differences between two tree-like structures. Similar to
|
@@ -8,10 +7,12 @@ description:
|
|
8
7
|
license: MIT
|
9
8
|
authors: Postmodern
|
10
9
|
email: postmodern.mod3@gmail.com
|
11
|
-
homepage:
|
10
|
+
homepage: https://github.com/postmodern/tdiff#readme
|
12
11
|
has_yard: true
|
13
12
|
|
13
|
+
required_ruby_version: ">= 1.8.7"
|
14
|
+
|
14
15
|
development_dependencies:
|
15
|
-
|
16
|
-
rspec: ~> 2.
|
17
|
-
yard: ~> 0.
|
16
|
+
rubygems-tasks: ~> 0.1
|
17
|
+
rspec: ~> 2.4
|
18
|
+
yard: ~> 0.7
|
data/lib/tdiff.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/tdiff_spec.rb
CHANGED
data/spec/unordered_spec.rb
CHANGED
data/tdiff.gemspec
CHANGED
@@ -1,10 +1,60 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gemspec = YAML.load_file('gemspec.yml')
|
7
|
+
|
8
|
+
gem.name = gemspec.fetch('name')
|
9
|
+
gem.version = gemspec.fetch('version') do
|
10
|
+
lib_dir = File.join(File.dirname(__FILE__),'lib')
|
11
|
+
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
12
|
+
|
13
|
+
require 'tdiff/version'
|
14
|
+
TDiff::VERSION
|
15
|
+
end
|
16
|
+
|
17
|
+
gem.summary = gemspec['summary']
|
18
|
+
gem.description = gemspec['description']
|
19
|
+
gem.licenses = Array(gemspec['license'])
|
20
|
+
gem.authors = Array(gemspec['authors'])
|
21
|
+
gem.email = gemspec['email']
|
22
|
+
gem.homepage = gemspec['homepage']
|
23
|
+
|
24
|
+
glob = lambda { |patterns| gem.files & Dir[*patterns] }
|
25
|
+
|
26
|
+
gem.files = `git ls-files`.split($/)
|
27
|
+
gem.files = glob[gemspec['files']] if gemspec['files']
|
28
|
+
|
29
|
+
gem.executables = gemspec.fetch('executables') do
|
30
|
+
glob['bin/*'].map { |path| File.basename(path) }
|
31
|
+
end
|
32
|
+
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
|
33
|
+
|
34
|
+
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
35
|
+
gem.test_files = glob[gemspec['test_files'] || '{test/{**/}*_test.rb']
|
36
|
+
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
|
37
|
+
|
38
|
+
gem.require_paths = Array(gemspec.fetch('require_paths') {
|
39
|
+
%w[ext lib].select { |dir| File.directory?(dir) }
|
40
|
+
})
|
41
|
+
|
42
|
+
gem.requirements = gemspec['requirements']
|
43
|
+
gem.required_ruby_version = gemspec['required_ruby_version']
|
44
|
+
gem.required_rubygems_version = gemspec['required_rubygems_version']
|
45
|
+
gem.post_install_message = gemspec['post_install_message']
|
46
|
+
|
47
|
+
split = lambda { |string| string.split(/,\s*/) }
|
48
|
+
|
49
|
+
if gemspec['dependencies']
|
50
|
+
gemspec['dependencies'].each do |name,versions|
|
51
|
+
gem.add_dependency(name,split[versions])
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
if gemspec['development_dependencies']
|
56
|
+
gemspec['development_dependencies'].each do |name,versions|
|
57
|
+
gem.add_development_dependency(name,split[versions])
|
58
|
+
end
|
6
59
|
end
|
7
|
-
rescue NameError
|
8
|
-
STDERR.puts "The 'tdiff.gemspec' file requires Ore."
|
9
|
-
STDERR.puts "Run `gem install ore-core` to install Ore."
|
10
60
|
end
|
metadata
CHANGED
@@ -1,79 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdiff
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 2
|
9
|
-
version: 0.3.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Postmodern
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
name: ore-tasks
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rubygems-tasks
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
- 3
|
31
|
-
- 0
|
32
|
-
version: 0.3.0
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.1'
|
33
22
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rspec
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
none: false
|
40
|
-
requirements:
|
26
|
+
requirements:
|
41
27
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.1'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.4'
|
48
38
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: yard
|
52
39
|
prerelease: false
|
53
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
42
|
+
requirements:
|
56
43
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.4'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.7'
|
63
54
|
type: :development
|
64
|
-
|
65
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
description: Calculates the differences between two tree-like structures. Similar
|
63
|
+
to Rubys built-in TSort module.
|
66
64
|
email: postmodern.mod3@gmail.com
|
67
65
|
executables: []
|
68
|
-
|
69
66
|
extensions: []
|
70
|
-
|
71
|
-
extra_rdoc_files:
|
72
|
-
- README.md
|
67
|
+
extra_rdoc_files:
|
73
68
|
- ChangeLog.md
|
74
69
|
- LICENSE.txt
|
75
|
-
|
70
|
+
- README.md
|
71
|
+
files:
|
76
72
|
- .document
|
73
|
+
- .gemtest
|
74
|
+
- .gitignore
|
77
75
|
- .rspec
|
78
76
|
- .yardopts
|
79
77
|
- ChangeLog.md
|
@@ -84,6 +82,7 @@ files:
|
|
84
82
|
- lib/tdiff.rb
|
85
83
|
- lib/tdiff/tdiff.rb
|
86
84
|
- lib/tdiff/unordered.rb
|
85
|
+
- lib/tdiff/version.rb
|
87
86
|
- spec/classes/node.rb
|
88
87
|
- spec/helpers/trees.rb
|
89
88
|
- spec/spec_helper.rb
|
@@ -91,38 +90,29 @@ files:
|
|
91
90
|
- spec/tdiff_spec.rb
|
92
91
|
- spec/unordered_spec.rb
|
93
92
|
- tdiff.gemspec
|
94
|
-
|
95
|
-
|
96
|
-
licenses:
|
93
|
+
homepage: https://github.com/postmodern/tdiff#readme
|
94
|
+
licenses:
|
97
95
|
- MIT
|
98
96
|
post_install_message:
|
99
97
|
rdoc_options: []
|
100
|
-
|
101
|
-
require_paths:
|
98
|
+
require_paths:
|
102
99
|
- lib
|
103
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
101
|
none: false
|
105
|
-
requirements:
|
106
|
-
- -
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
|
109
|
-
|
110
|
-
version: "0"
|
111
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ! '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 1.8.7
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
107
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
- 0
|
118
|
-
version: "0"
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
119
112
|
requirements: []
|
120
|
-
|
121
|
-
|
122
|
-
rubygems_version: 1.3.7
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 1.8.24
|
123
115
|
signing_key:
|
124
116
|
specification_version: 3
|
125
117
|
summary: Calculates the differences between two tree-like structures.
|
126
|
-
test_files:
|
127
|
-
- spec/tdiff_spec.rb
|
128
|
-
- spec/unordered_spec.rb
|
118
|
+
test_files: []
|