diff-lcs 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +3 -0
- data/.rspec +2 -0
- data/.travis.yml +21 -0
- data/Contributing.rdoc +63 -0
- data/Gemfile +20 -0
- data/History.rdoc +37 -1
- data/Manifest.txt +10 -1
- data/README.rdoc +48 -23
- data/Rakefile +17 -3
- data/autotest/discover.rb +1 -0
- data/diff-lcs.gemspec +41 -29
- data/docs/COPYING.txt +21 -22
- data/docs/artistic.txt +127 -0
- data/lib/diff-lcs.rb +0 -2
- data/lib/diff/lcs.rb +654 -954
- data/lib/diff/lcs/array.rb +1 -15
- data/lib/diff/lcs/block.rb +4 -18
- data/lib/diff/lcs/callbacks.rb +222 -222
- data/lib/diff/lcs/change.rb +110 -102
- data/lib/diff/lcs/htmldiff.rb +0 -2
- data/lib/diff/lcs/hunk.rb +65 -56
- data/lib/diff/lcs/internals.rb +300 -0
- data/lib/diff/lcs/ldiff.rb +154 -169
- data/lib/diff/lcs/string.rb +1 -15
- data/spec/change_spec.rb +65 -0
- data/spec/diff_spec.rb +8 -2
- data/spec/issues_spec.rb +24 -0
- data/spec/lcs_spec.rb +23 -5
- data/spec/patch_spec.rb +51 -27
- data/spec/sdiff_spec.rb +0 -2
- data/spec/spec_helper.rb +9 -3
- data/spec/traverse_balanced_spec.rb +26 -2
- data/spec/traverse_sequences_spec.rb +84 -28
- metadata +219 -83
- data/docs/artistic.html +0 -289
data/.autotest
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
after_script:
|
3
|
+
- rake travis:after -t
|
4
|
+
before_script:
|
5
|
+
- gem install hoe-travis --no-rdoc --no-ri
|
6
|
+
- rake travis:before -t
|
7
|
+
language: ruby
|
8
|
+
notifications:
|
9
|
+
email: false
|
10
|
+
rvm:
|
11
|
+
- 1.9.3
|
12
|
+
- 1.9.2
|
13
|
+
- ruby-head
|
14
|
+
- 1.8.7
|
15
|
+
- jruby-19mode
|
16
|
+
- jruby-head
|
17
|
+
- jruby-18mode
|
18
|
+
- rbx-19mode
|
19
|
+
- rbx-18mode
|
20
|
+
- ree
|
21
|
+
script: rake travis
|
data/Contributing.rdoc
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
== Contributing
|
2
|
+
|
3
|
+
I value any contribution to Diff::LCS you can provide: a bug report, a feature
|
4
|
+
request, or code contributions.
|
5
|
+
|
6
|
+
Code contributions to Diff::LCS are especially <del>welcome</del>encouraged.
|
7
|
+
Because Diff::LCS is a complex codebase, there are a few guidelines:
|
8
|
+
|
9
|
+
* Changes <strong>will not</strong> be accepted without tests.
|
10
|
+
* The test suite is written with RSpec.‡
|
11
|
+
* Match my coding style.
|
12
|
+
* Use a thoughtfully-named topic branch that contains your change. Rebase your
|
13
|
+
commits into logical chunks as necessary.
|
14
|
+
* Use {quality commit messages}[http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html].
|
15
|
+
* Do not change the version number; when your patch is accepted and a release
|
16
|
+
is made, the version will be updated at that point.
|
17
|
+
* Submit a GitHub pull request with your changes.
|
18
|
+
* New features require new documentation.
|
19
|
+
|
20
|
+
=== Test Dependencies
|
21
|
+
|
22
|
+
To run the test suite, you will need to install the development dependencies
|
23
|
+
for Diff::LCS. If you have Bundler, you can accomplish this easily:
|
24
|
+
|
25
|
+
$ bundle install
|
26
|
+
|
27
|
+
Diff::LCS uses Ryan Davis’s excellent {Hoe}[https://github.com/seattlerb/hoe]
|
28
|
+
to manage the release process, and it adds a number of rake tasks. You will
|
29
|
+
mostly be interested in:
|
30
|
+
|
31
|
+
$ rake
|
32
|
+
|
33
|
+
which runs the tests the same way that:
|
34
|
+
|
35
|
+
$ rake spec
|
36
|
+
$ rake test
|
37
|
+
$ rake travis
|
38
|
+
|
39
|
+
will do.
|
40
|
+
|
41
|
+
=== Workflow
|
42
|
+
|
43
|
+
Here's the most direct way to get your work merged into the project:
|
44
|
+
|
45
|
+
* Fork the project.
|
46
|
+
* Clone down your fork (+git clone git://github.com/<username>/diff-lcs.git+).
|
47
|
+
* Create a topic branch to contain your change (+git checkout -b my\_awesome\_feature+).
|
48
|
+
* Hack away, add tests. Not necessarily in that order.
|
49
|
+
* Make sure everything still passes by running `rake`.
|
50
|
+
* If necessary, rebase your commits into logical chunks, without errors.
|
51
|
+
* Push the branch up (+git push origin my\_awesome\_feature+).
|
52
|
+
* Create a pull request against halostatue/diff-lcs and describe what your
|
53
|
+
change does and the why you think it should be merged.
|
54
|
+
|
55
|
+
=== Contributors
|
56
|
+
|
57
|
+
* Austin Ziegler created Diff::LCS.
|
58
|
+
|
59
|
+
Thanks to everyone else who has contributed to Diff::LCS:
|
60
|
+
|
61
|
+
* Kenichi Kamiya
|
62
|
+
* Michael Granger
|
63
|
+
* Vít Ondruch
|
data/Gemfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
|
4
|
+
|
5
|
+
source "https://rubygems.org/"
|
6
|
+
|
7
|
+
|
8
|
+
gem "rubyforge", ">=2.0.4", :group => [:development, :test]
|
9
|
+
gem "rdoc", "~>3.10", :group => [:development, :test]
|
10
|
+
gem "rspec", "~>2.0", :group => [:development, :test]
|
11
|
+
gem "rake", "~>10.0", :group => [:development, :test]
|
12
|
+
gem "hoe-bundler", "~>1.2.0", :group => [:development, :test]
|
13
|
+
gem "hoe-doofus", "~>1.0.0", :group => [:development, :test]
|
14
|
+
gem "hoe-gemspec", "~>1.0.0", :group => [:development, :test]
|
15
|
+
gem "hoe-git", "~>1.5.0", :group => [:development, :test]
|
16
|
+
gem "hoe-rubygems", "~>1.0.0", :group => [:development, :test]
|
17
|
+
gem "hoe-travis", "~>1.2", :group => [:development, :test]
|
18
|
+
gem "hoe", "~>3.4", :group => [:development, :test]
|
19
|
+
|
20
|
+
# vim: syntax=ruby
|
data/History.rdoc
CHANGED
@@ -1,3 +1,39 @@
|
|
1
|
+
== 1.2.0 / 2013-01-21
|
2
|
+
* Minor Enhancements:
|
3
|
+
* Added special case handling for Diff::LCS.patch so that it handles patches
|
4
|
+
that are empty or contain no changes.
|
5
|
+
* Added two new methods (#patch\_me and #unpatch\_me) to the includable
|
6
|
+
module.
|
7
|
+
* Bugs Fixed:
|
8
|
+
* Fixed issue #1 patch direction detection.
|
9
|
+
https://github.com/halostatue/diff-lcs/issues/1
|
10
|
+
* Resolved issue #2 by handling string[string.size, 1] properly (it returns
|
11
|
+
"" not nil). https://github.com/halostatue/diff-lcs/issues/2
|
12
|
+
* Michael Granger (ged) fixed an implementation error in Diff::LCS::Change
|
13
|
+
and added specs in pull request #8. Thanks!
|
14
|
+
https://github.com/halostatue/diff-lcs/issues/8
|
15
|
+
* Made the code auto-testable.
|
16
|
+
* Vít Ondruch (voxik) provided the latest version of the GPL2 license file in
|
17
|
+
pull request #10. Thanks! https://github.com/halostatue/diff-lcs/issues/10
|
18
|
+
* Fixed a documentation issue with the includable versions of #patch! and
|
19
|
+
#unpatch! where they implied that they would replace the original value.
|
20
|
+
Given that Diff::LCS.patch always returns a copy, the documentation was
|
21
|
+
incorrect and has been corrected. To provide the behaviour that was
|
22
|
+
originally documented, two new methods were added to provide this
|
23
|
+
behaviour. Found by scooter-dangle in issue #12. Thanks!
|
24
|
+
https://github.com/halostatue/diff-lcs/issues/12
|
25
|
+
* Code Style Changes:
|
26
|
+
* Removed trailing spaces.
|
27
|
+
* Calling class methods using '.' instead of '::'.
|
28
|
+
* Vít Ondruch (voxik) removed unnecessary shebangs in pull request #9.
|
29
|
+
Thanks! https://github.com/halostatue/diff-lcs/issues/9
|
30
|
+
* Kenichi Kamiya (kachick) removed some warnings of an unused variable in
|
31
|
+
lucky pull request #13. https://github.com/halostatue/diff-lcs/issues/13
|
32
|
+
Thanks!
|
33
|
+
* Embarked on a major refactoring to make the files a little more manageable
|
34
|
+
and understand the code on a deeper level.
|
35
|
+
* Adding to http://travis-ci.org.
|
36
|
+
|
1
37
|
== 1.1.3 / 2011-08-27
|
2
38
|
* Converted to 'hoe' for release.
|
3
39
|
* Converted tests to RSpec 2.
|
@@ -36,7 +72,7 @@
|
|
36
72
|
exist already. Removed the existing batch files as they didn't work.
|
37
73
|
|
38
74
|
== 1.0.3 / -
|
39
|
-
* Fixed a problem with #
|
75
|
+
* Fixed a problem with #traverse\_sequences where the first difference from the
|
40
76
|
left sequence might not be appropriately captured.
|
41
77
|
|
42
78
|
== 1.0.2 / -
|
data/Manifest.txt
CHANGED
@@ -1,13 +1,19 @@
|
|
1
|
+
.autotest
|
2
|
+
.rspec
|
3
|
+
.travis.yml
|
4
|
+
Contributing.rdoc
|
5
|
+
Gemfile
|
1
6
|
History.rdoc
|
2
7
|
License.rdoc
|
3
8
|
Manifest.txt
|
4
9
|
README.rdoc
|
5
10
|
Rakefile
|
11
|
+
autotest/discover.rb
|
6
12
|
bin/htmldiff
|
7
13
|
bin/ldiff
|
8
14
|
diff-lcs.gemspec
|
9
15
|
docs/COPYING.txt
|
10
|
-
docs/artistic.
|
16
|
+
docs/artistic.txt
|
11
17
|
lib/diff-lcs.rb
|
12
18
|
lib/diff/lcs.rb
|
13
19
|
lib/diff/lcs/array.rb
|
@@ -16,9 +22,12 @@ lib/diff/lcs/callbacks.rb
|
|
16
22
|
lib/diff/lcs/change.rb
|
17
23
|
lib/diff/lcs/htmldiff.rb
|
18
24
|
lib/diff/lcs/hunk.rb
|
25
|
+
lib/diff/lcs/internals.rb
|
19
26
|
lib/diff/lcs/ldiff.rb
|
20
27
|
lib/diff/lcs/string.rb
|
28
|
+
spec/change_spec.rb
|
21
29
|
spec/diff_spec.rb
|
30
|
+
spec/issues_spec.rb
|
22
31
|
spec/lcs_spec.rb
|
23
32
|
spec/patch_spec.rb
|
24
33
|
spec/sdiff_spec.rb
|
data/README.rdoc
CHANGED
@@ -1,29 +1,18 @@
|
|
1
|
-
=
|
1
|
+
= Diff::LCS
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
Mario I. Wolczko's {Smalltalk version 1.2}[ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st]
|
8
|
-
(1993) and Ned Konz's Perl version
|
9
|
-
{Algorithm::Diff 1.15}[http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/].
|
10
|
-
|
11
|
-
This is release 1.1.3, fixing several small bugs found over the years. Version
|
12
|
-
1.1.0 added new features, including the ability to #patch and #unpatch changes
|
13
|
-
as well as a new contextual diff callback, Diff::LCS::ContextDiffCallbacks,
|
14
|
-
that should improve the context sensitivity of patching.
|
3
|
+
home :: http://diff-lcs.rubyforge.org/
|
4
|
+
code :: https://github.com/halostatue/diff-lcs
|
5
|
+
bugs :: https://github.com/halostatue/diff-lcs/issues
|
6
|
+
rdoc :: http://rubydoc.info/github/halostatue/diff-lcs
|
15
7
|
|
16
|
-
|
17
|
-
which was restrictively licensed. This version has seen a minor license change:
|
18
|
-
instead of being under Ruby's license as an option, the third optional license
|
19
|
-
is the MIT license.
|
20
|
-
|
21
|
-
== Where
|
8
|
+
== Description
|
22
9
|
|
23
|
-
|
10
|
+
Diff::LCS computes the difference between two Enumerable sequences using the
|
11
|
+
McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
|
12
|
+
to create a simple HTML diff output format and a standard diff-like tool.
|
24
13
|
|
25
|
-
This is
|
26
|
-
it
|
14
|
+
This is release 1.2. Everyone is strongly encouraged to upgrade to this version
|
15
|
+
as it fixes all known outstanding issues.
|
27
16
|
|
28
17
|
== Synopsis
|
29
18
|
|
@@ -64,9 +53,45 @@ extended for use this way.
|
|
64
53
|
|
65
54
|
Note that Diff::LCS requires a sequenced enumerable container, which means that
|
66
55
|
the order of enumeration is both predictable and consistent for the same set of
|
67
|
-
data. While it is theoretically possible to generate a diff for
|
56
|
+
data. While it is theoretically possible to generate a diff for an unordered
|
68
57
|
hash, it will only be meaningful if the enumeration of the hashes is
|
69
58
|
consistent. In general, this will mean that containers that behave like String
|
70
59
|
or Array will perform best.
|
71
60
|
|
61
|
+
== History
|
62
|
+
|
63
|
+
Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt
|
64
|
+
longest common subsequence (LCS) algorithm to compute intelligent differences
|
65
|
+
between two sequenced enumerable containers. The implementation is based on
|
66
|
+
Mario I. Wolczko's {Smalltalk version 1.2}[ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st]
|
67
|
+
(1993) and Ned Konz's Perl version
|
68
|
+
{Algorithm::Diff 1.15}[http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/].
|
69
|
+
|
70
|
+
This library is called Diff::LCS because of an early version of Algorithm::Diff
|
71
|
+
which was restrictively licensed.
|
72
|
+
|
73
|
+
== Continuous Integration Status
|
74
|
+
|
75
|
+
{<img src="https://travis-ci.org/halostatue/diff-lcs.png" />}[https://travis-ci.org/halostatue/diff-lcs]
|
76
|
+
|
77
|
+
== Contributing
|
78
|
+
|
79
|
+
If you'd like to hack on Diff::LCS, start by forking the repo on GitHub:
|
80
|
+
|
81
|
+
https://github.com/halostatue/diff-lcs
|
82
|
+
|
83
|
+
The best way to get your changes merged back into core is as follows:
|
84
|
+
|
85
|
+
1. Clone down your fork.
|
86
|
+
2. Create a thoughtfully named topic branch to contain your change.
|
87
|
+
3. Hack away.
|
88
|
+
4. Add tests and make sure everything still passes by running rake.
|
89
|
+
5. If you are adding new functionality, document it in the README.
|
90
|
+
6. Do not change the version number, we will do that on our end.
|
91
|
+
7. If necessary, rebase your commits into logical chunks, without errors.
|
92
|
+
8. Push the branch up to GitHub.
|
93
|
+
9. Send a pull request for your branch
|
94
|
+
|
95
|
+
:include: Contributing.rdoc
|
96
|
+
|
72
97
|
:include: License.rdoc
|
data/Rakefile
CHANGED
@@ -4,16 +4,18 @@ require 'rubygems'
|
|
4
4
|
require 'rspec'
|
5
5
|
require 'hoe'
|
6
6
|
|
7
|
+
Hoe.plugin :bundler
|
7
8
|
Hoe.plugin :doofus
|
8
9
|
Hoe.plugin :gemspec
|
9
10
|
Hoe.plugin :git
|
11
|
+
Hoe.plugin :rubyforge
|
12
|
+
Hoe.plugin :email
|
13
|
+
Hoe.plugin :travis
|
10
14
|
|
11
15
|
Hoe.spec 'diff-lcs' do
|
12
|
-
self.rubyforge_name = 'ruwiki'
|
13
|
-
|
14
16
|
developer('Austin Ziegler', 'austin@rubyforge.org')
|
15
17
|
|
16
|
-
self.remote_rdoc_dir = '
|
18
|
+
self.remote_rdoc_dir = '.'
|
17
19
|
self.rsync_args << ' --exclude=statsvn/'
|
18
20
|
|
19
21
|
self.history_file = 'History.rdoc'
|
@@ -21,6 +23,18 @@ Hoe.spec 'diff-lcs' do
|
|
21
23
|
self.extra_rdoc_files = FileList["*.rdoc"].to_a
|
22
24
|
|
23
25
|
self.extra_dev_deps << ['rspec', '~> 2.0']
|
26
|
+
self.extra_dev_deps << ['rake', '~> 10.0']
|
27
|
+
self.extra_dev_deps << ['hoe-bundler', '~> 1.2.0']
|
28
|
+
self.extra_dev_deps << ['hoe-doofus', '~> 1.0.0']
|
29
|
+
self.extra_dev_deps << ['hoe-gemspec', '~> 1.0.0']
|
30
|
+
self.extra_dev_deps << ['hoe-git', '~> 1.5.0']
|
31
|
+
self.extra_dev_deps << ['hoe-rubygems', '~> 1.0.0']
|
32
|
+
# self.extra_dev_deps << ['hoe-seattlerb', '~> 1.2.9, 1.2.8']
|
33
|
+
self.extra_dev_deps << ['hoe-travis', '~> 1.2']
|
34
|
+
end
|
35
|
+
|
36
|
+
unless Rake::Task.task_defined? :test
|
37
|
+
task :test => :spec
|
24
38
|
end
|
25
39
|
|
26
40
|
# vim: syntax=ruby
|
@@ -0,0 +1 @@
|
|
1
|
+
Autotest.add_discovery { "rspec2" }
|
data/diff-lcs.gemspec
CHANGED
@@ -1,51 +1,63 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "1.
|
4
|
+
s.name = "diff-lcs"
|
5
|
+
s.version = "1.2.0'
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Austin Ziegler"]
|
9
|
-
s.date =
|
10
|
-
s.description =
|
11
|
-
longest common subsequence (LCS) algorithm to compute intelligent differences
|
12
|
-
between two sequenced enumerable containers. The implementation is based on
|
13
|
-
Mario I. Wolczko's {Smalltalk version 1.2}[ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st]
|
14
|
-
(1993) and Ned Konz's Perl version
|
15
|
-
{Algorithm::Diff 1.15}[http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/].
|
16
|
-
|
17
|
-
This is release 1.1.3, fixing several small bugs found over the years. Version
|
18
|
-
1.1.0 added new features, including the ability to #patch and #unpatch changes
|
19
|
-
as well as a new contextual diff callback, Diff::LCS::ContextDiffCallbacks,
|
20
|
-
that should improve the context sensitivity of patching.
|
21
|
-
|
22
|
-
This library is called Diff::LCS because of an early version of Algorithm::Diff
|
23
|
-
which was restrictively licensed. This version has seen a minor license change:
|
24
|
-
instead of being under Ruby's license as an option, the third optional license
|
25
|
-
is the MIT license.}
|
9
|
+
s.date = "2013-01-21"
|
10
|
+
s.description = "Diff::LCS computes the difference between two Enumerable sequences using the\nMcIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities\nto create a simple HTML diff output format and a standard diff-like tool.\n\nThis is release 1.2. Everyone is strongly encouraged to upgrade to this version\nas it fixes all known outstanding issues."
|
26
11
|
s.email = ["austin@rubyforge.org"]
|
27
12
|
s.executables = ["htmldiff", "ldiff"]
|
28
|
-
s.extra_rdoc_files = ["Manifest.txt", "docs/COPYING.txt", "History.rdoc", "License.rdoc", "README.rdoc"]
|
29
|
-
s.files = ["History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "bin/htmldiff", "bin/ldiff", "diff-lcs.gemspec", "docs/COPYING.txt", "docs/artistic.
|
13
|
+
s.extra_rdoc_files = ["Contributing.rdoc", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "docs/COPYING.txt", "docs/artistic.txt", "Contributing.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
|
14
|
+
s.files = [".autotest", ".rspec", ".travis.yml", "Contributing.rdoc", "Gemfile", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "autotest/discover.rb", "bin/htmldiff", "bin/ldiff", "diff-lcs.gemspec", "docs/COPYING.txt", "docs/artistic.txt", "lib/diff-lcs.rb", "lib/diff/lcs.rb", "lib/diff/lcs/array.rb", "lib/diff/lcs/block.rb", "lib/diff/lcs/callbacks.rb", "lib/diff/lcs/change.rb", "lib/diff/lcs/htmldiff.rb", "lib/diff/lcs/hunk.rb", "lib/diff/lcs/internals.rb", "lib/diff/lcs/ldiff.rb", "lib/diff/lcs/string.rb", "spec/change_spec.rb", "spec/diff_spec.rb", "spec/issues_spec.rb", "spec/lcs_spec.rb", "spec/patch_spec.rb", "spec/sdiff_spec.rb", "spec/spec_helper.rb", "spec/traverse_balanced_spec.rb", "spec/traverse_sequences_spec.rb", ".gemtest"]
|
15
|
+
s.homepage = "http://diff-lcs.rubyforge.org/"
|
30
16
|
s.rdoc_options = ["--main", "README.rdoc"]
|
31
17
|
s.require_paths = ["lib"]
|
32
|
-
s.rubyforge_project =
|
33
|
-
s.rubygems_version =
|
34
|
-
s.summary =
|
18
|
+
s.rubyforge_project = "diff-lcs"
|
19
|
+
s.rubygems_version = "1.8.24"
|
20
|
+
s.summary = "Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm"
|
35
21
|
|
36
22
|
if s.respond_to? :specification_version then
|
37
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
38
23
|
s.specification_version = 3
|
39
24
|
|
40
|
-
if Gem::Version.new(Gem::
|
25
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
+
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
27
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
41
28
|
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
|
42
|
-
s.add_development_dependency(%q<
|
29
|
+
s.add_development_dependency(%q<rake>, ["~> 10.0"])
|
30
|
+
s.add_development_dependency(%q<hoe-bundler>, ["~> 1.2.0"])
|
31
|
+
s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0.0"])
|
32
|
+
s.add_development_dependency(%q<hoe-gemspec>, ["~> 1.0.0"])
|
33
|
+
s.add_development_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
34
|
+
s.add_development_dependency(%q<hoe-rubygems>, ["~> 1.0.0"])
|
35
|
+
s.add_development_dependency(%q<hoe-travis>, ["~> 1.2"])
|
36
|
+
s.add_development_dependency(%q<hoe>, ["~> 3.4"])
|
43
37
|
else
|
38
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
39
|
+
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
44
40
|
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
45
|
-
s.add_dependency(%q<
|
41
|
+
s.add_dependency(%q<rake>, ["~> 10.0"])
|
42
|
+
s.add_dependency(%q<hoe-bundler>, ["~> 1.2.0"])
|
43
|
+
s.add_dependency(%q<hoe-doofus>, ["~> 1.0.0"])
|
44
|
+
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0.0"])
|
45
|
+
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
46
|
+
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0.0"])
|
47
|
+
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
48
|
+
s.add_dependency(%q<hoe>, ["~> 3.4"])
|
46
49
|
end
|
47
50
|
else
|
51
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
52
|
+
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
48
53
|
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
49
|
-
s.add_dependency(%q<
|
54
|
+
s.add_dependency(%q<rake>, ["~> 10.0"])
|
55
|
+
s.add_dependency(%q<hoe-bundler>, ["~> 1.2.0"])
|
56
|
+
s.add_dependency(%q<hoe-doofus>, ["~> 1.0.0"])
|
57
|
+
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0.0"])
|
58
|
+
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
59
|
+
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0.0"])
|
60
|
+
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
61
|
+
s.add_dependency(%q<hoe>, ["~> 3.4"])
|
50
62
|
end
|
51
63
|
end
|
data/docs/COPYING.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
2
|
+
Version 2, June 1991
|
3
3
|
|
4
|
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc
|
5
|
-
|
4
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6
6
|
Everyone is permitted to copy and distribute verbatim copies
|
7
7
|
of this license document, but changing it is not allowed.
|
8
8
|
|
9
|
-
|
9
|
+
Preamble
|
10
10
|
|
11
11
|
The licenses for most software are designed to take away your
|
12
12
|
freedom to share and change it. By contrast, the GNU General Public
|
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
|
|
15
15
|
General Public License applies to most of the Free Software
|
16
16
|
Foundation's software and to any other program whose authors commit to
|
17
17
|
using it. (Some other Free Software Foundation software is covered by
|
18
|
-
the GNU
|
18
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
19
19
|
your programs, too.
|
20
20
|
|
21
21
|
When we speak of free software, we are referring to freedom, not
|
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
|
|
55
55
|
|
56
56
|
The precise terms and conditions for copying, distribution and
|
57
57
|
modification follow.
|
58
|
-
|
59
|
-
|
58
|
+
|
59
|
+
GNU GENERAL PUBLIC LICENSE
|
60
60
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61
61
|
|
62
62
|
0. This License applies to any program or other work which contains
|
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
|
|
110
110
|
License. (Exception: if the Program itself is interactive but
|
111
111
|
does not normally print such an announcement, your work based on
|
112
112
|
the Program is not required to print an announcement.)
|
113
|
-
|
113
|
+
|
114
114
|
These requirements apply to the modified work as a whole. If
|
115
115
|
identifiable sections of that work are not derived from the Program,
|
116
116
|
and can be reasonably considered independent and separate works in
|
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
|
|
168
168
|
access to copy the source code from the same place counts as
|
169
169
|
distribution of the source code, even though third parties are not
|
170
170
|
compelled to copy the source along with the object code.
|
171
|
-
|
171
|
+
|
172
172
|
4. You may not copy, modify, sublicense, or distribute the Program
|
173
173
|
except as expressly provided under this License. Any attempt
|
174
174
|
otherwise to copy, modify, sublicense or distribute the Program is
|
@@ -225,7 +225,7 @@ impose that choice.
|
|
225
225
|
|
226
226
|
This section is intended to make thoroughly clear what is believed to
|
227
227
|
be a consequence of the rest of this License.
|
228
|
-
|
228
|
+
|
229
229
|
8. If the distribution and/or use of the Program is restricted in
|
230
230
|
certain countries either by patents or by copyrighted interfaces, the
|
231
231
|
original copyright holder who places the Program under this License
|
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
|
|
255
255
|
of preserving the free status of all derivatives of our free software and
|
256
256
|
of promoting the sharing and reuse of software generally.
|
257
257
|
|
258
|
-
|
258
|
+
NO WARRANTY
|
259
259
|
|
260
260
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261
261
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
277
277
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278
278
|
POSSIBILITY OF SUCH DAMAGES.
|
279
279
|
|
280
|
-
|
281
|
-
|
282
|
-
|
280
|
+
END OF TERMS AND CONDITIONS
|
281
|
+
|
282
|
+
How to Apply These Terms to Your New Programs
|
283
283
|
|
284
284
|
If you develop a new program, and you want it to be of the greatest
|
285
285
|
possible use to the public, the best way to achieve this is to make it
|
@@ -291,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least
|
|
291
291
|
the "copyright" line and a pointer to where the full notice is found.
|
292
292
|
|
293
293
|
<one line to give the program's name and a brief idea of what it does.>
|
294
|
-
Copyright (C)
|
294
|
+
Copyright (C) <year> <name of author>
|
295
295
|
|
296
296
|
This program is free software; you can redistribute it and/or modify
|
297
297
|
it under the terms of the GNU General Public License as published by
|
@@ -303,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
303
303
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304
304
|
GNU General Public License for more details.
|
305
305
|
|
306
|
-
You should have received a copy of the GNU General Public License
|
307
|
-
|
308
|
-
|
309
|
-
|
306
|
+
You should have received a copy of the GNU General Public License along
|
307
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
308
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
310
309
|
|
311
310
|
Also add information on how to contact you by electronic and paper mail.
|
312
311
|
|
313
312
|
If the program is interactive, make it output a short notice like this
|
314
313
|
when it starts in an interactive mode:
|
315
314
|
|
316
|
-
Gnomovision version 69, Copyright (C)
|
315
|
+
Gnomovision version 69, Copyright (C) year name of author
|
317
316
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
318
317
|
This is free software, and you are welcome to redistribute it
|
319
318
|
under certain conditions; type `show c' for details.
|
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
|
|
336
335
|
This General Public License does not permit incorporating your program into
|
337
336
|
proprietary programs. If your program is a subroutine library, you may
|
338
337
|
consider it more useful to permit linking proprietary applications with the
|
339
|
-
library. If this is what you want to do, use the GNU
|
338
|
+
library. If this is what you want to do, use the GNU Lesser General
|
340
339
|
Public License instead of this License.
|