diff-lcs 1.5.1 → 1.6.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +518 -0
- data/CODE_OF_CONDUCT.md +128 -0
- data/CONTRIBUTING.md +71 -0
- data/CONTRIBUTORS.md +49 -0
- data/{License.md → LICENCE.md} +15 -16
- data/Manifest.txt +61 -5
- data/README.md +92 -0
- data/Rakefile +48 -63
- data/SECURITY.md +41 -0
- data/docs/artistic.txt +1 -1
- data/lib/diff/lcs/backports.rb +4 -0
- data/lib/diff/lcs/change.rb +3 -3
- data/lib/diff/lcs/htmldiff.rb +5 -3
- data/lib/diff/lcs/hunk.rb +38 -22
- data/lib/diff/lcs/ldiff.rb +65 -49
- data/lib/diff/lcs/version.rb +7 -0
- data/lib/diff/lcs.rb +12 -11
- data/mise.toml +5 -0
- data/spec/fixtures/123_x +2 -0
- data/spec/fixtures/456_x +2 -0
- data/spec/fixtures/empty +0 -0
- data/spec/fixtures/file1.bin +0 -0
- data/spec/fixtures/file2.bin +0 -0
- data/spec/fixtures/four_lines +4 -0
- data/spec/fixtures/four_lines_with_missing_new_line +4 -0
- data/spec/fixtures/ldiff/diff.missing_new_line1-e +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line1-f +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line2-e +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line2-f +1 -0
- data/spec/fixtures/ldiff/error.diff.chef-e +2 -0
- data/spec/fixtures/ldiff/error.diff.chef-f +2 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line1-e +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line1-f +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line2-e +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line2-f +1 -0
- data/spec/fixtures/ldiff/output.diff.bin1 +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-c +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-e +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-f +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-u +0 -0
- data/spec/fixtures/ldiff/output.diff.bin2 +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-c +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-e +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-f +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-u +1 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines +5 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-c +9 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-e +6 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-f +6 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-u +7 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty +5 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-c +9 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-e +1 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-f +1 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-u +7 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context +4 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-c +9 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-e +3 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-f +3 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-u +6 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1 +5 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-c +14 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-e +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-f +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-u +9 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2 +5 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-c +14 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-e +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-f +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-u +9 -0
- data/spec/hunk_spec.rb +1 -1
- data/spec/issues_spec.rb +32 -32
- data/spec/ldiff_spec.rb +21 -10
- data/spec/patch_spec.rb +1 -1
- data/spec/spec_helper.rb +93 -93
- metadata +87 -65
- data/Code-of-Conduct.md +0 -74
- data/Contributing.md +0 -121
- data/History.md +0 -431
- data/README.rdoc +0 -84
metadata
CHANGED
@@ -1,77 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diff-lcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-05-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: hoe
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: hoe-doofus
|
35
14
|
requirement: !ruby/object:Gem::Requirement
|
36
15
|
requirements:
|
37
16
|
- - "~>"
|
38
17
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
18
|
+
version: '4.0'
|
40
19
|
type: :development
|
41
20
|
prerelease: false
|
42
21
|
version_requirements: !ruby/object:Gem::Requirement
|
43
22
|
requirements:
|
44
23
|
- - "~>"
|
45
24
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
25
|
+
version: '4.0'
|
47
26
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: hoe-
|
27
|
+
name: hoe-halostatue
|
49
28
|
requirement: !ruby/object:Gem::Requirement
|
50
29
|
requirements:
|
51
30
|
- - "~>"
|
52
31
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '1.1'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: hoe-git2
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '1.7'
|
32
|
+
version: '2.0'
|
68
33
|
type: :development
|
69
34
|
prerelease: false
|
70
35
|
version_requirements: !ruby/object:Gem::Requirement
|
71
36
|
requirements:
|
72
37
|
- - "~>"
|
73
38
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
39
|
+
version: '2.0'
|
75
40
|
- !ruby/object:Gem::Dependency
|
76
41
|
name: hoe-rubygems
|
77
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,15 +116,15 @@ description: |-
|
|
151
116
|
McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
|
152
117
|
to create a simple HTML diff output format and a standard diff-like tool.
|
153
118
|
|
154
|
-
This is release 1.
|
155
|
-
Diff::LCS::Change objects to be treated implicitly as arrays and fixes a
|
156
|
-
|
119
|
+
This is release 1.6.1, providing a simple extension that allows for
|
120
|
+
Diff::LCS::Change objects to be treated implicitly as arrays and fixes a number
|
121
|
+
of formatting issues.
|
157
122
|
|
158
|
-
Ruby versions below 2.5 are soft-deprecated, which means that older versions
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
123
|
+
Ruby versions below 2.5 are soft-deprecated, which means that older versions are
|
124
|
+
no longer part of the CI test suite. If any changes have been introduced that
|
125
|
+
break those versions, bug reports and patches will be accepted, but it will be
|
126
|
+
up to the reporter to verify any fixes prior to release. The next major release
|
127
|
+
will completely break compatibility.
|
163
128
|
email:
|
164
129
|
- halostatue@gmail.com
|
165
130
|
executables:
|
@@ -167,23 +132,27 @@ executables:
|
|
167
132
|
- ldiff
|
168
133
|
extensions: []
|
169
134
|
extra_rdoc_files:
|
170
|
-
-
|
171
|
-
-
|
172
|
-
-
|
173
|
-
-
|
135
|
+
- CHANGELOG.md
|
136
|
+
- CODE_OF_CONDUCT.md
|
137
|
+
- CONTRIBUTING.md
|
138
|
+
- CONTRIBUTORS.md
|
139
|
+
- LICENCE.md
|
174
140
|
- Manifest.txt
|
175
|
-
- README.
|
141
|
+
- README.md
|
142
|
+
- SECURITY.md
|
176
143
|
- docs/COPYING.txt
|
177
144
|
- docs/artistic.txt
|
178
145
|
files:
|
179
146
|
- ".rspec"
|
180
|
-
-
|
181
|
-
-
|
182
|
-
-
|
183
|
-
-
|
147
|
+
- CHANGELOG.md
|
148
|
+
- CODE_OF_CONDUCT.md
|
149
|
+
- CONTRIBUTING.md
|
150
|
+
- CONTRIBUTORS.md
|
151
|
+
- LICENCE.md
|
184
152
|
- Manifest.txt
|
185
|
-
- README.
|
153
|
+
- README.md
|
186
154
|
- Rakefile
|
155
|
+
- SECURITY.md
|
187
156
|
- bin/htmldiff
|
188
157
|
- bin/ldiff
|
189
158
|
- docs/COPYING.txt
|
@@ -200,17 +169,46 @@ files:
|
|
200
169
|
- lib/diff/lcs/internals.rb
|
201
170
|
- lib/diff/lcs/ldiff.rb
|
202
171
|
- lib/diff/lcs/string.rb
|
172
|
+
- lib/diff/lcs/version.rb
|
173
|
+
- mise.toml
|
203
174
|
- spec/change_spec.rb
|
204
175
|
- spec/diff_spec.rb
|
176
|
+
- spec/fixtures/123_x
|
177
|
+
- spec/fixtures/456_x
|
205
178
|
- spec/fixtures/aX
|
206
179
|
- spec/fixtures/bXaX
|
207
180
|
- spec/fixtures/ds1.csv
|
208
181
|
- spec/fixtures/ds2.csv
|
182
|
+
- spec/fixtures/empty
|
183
|
+
- spec/fixtures/file1.bin
|
184
|
+
- spec/fixtures/file2.bin
|
185
|
+
- spec/fixtures/four_lines
|
186
|
+
- spec/fixtures/four_lines_with_missing_new_line
|
187
|
+
- spec/fixtures/ldiff/diff.missing_new_line1-e
|
188
|
+
- spec/fixtures/ldiff/diff.missing_new_line1-f
|
189
|
+
- spec/fixtures/ldiff/diff.missing_new_line2-e
|
190
|
+
- spec/fixtures/ldiff/diff.missing_new_line2-f
|
191
|
+
- spec/fixtures/ldiff/error.diff.chef-e
|
192
|
+
- spec/fixtures/ldiff/error.diff.chef-f
|
193
|
+
- spec/fixtures/ldiff/error.diff.missing_new_line1-e
|
194
|
+
- spec/fixtures/ldiff/error.diff.missing_new_line1-f
|
195
|
+
- spec/fixtures/ldiff/error.diff.missing_new_line2-e
|
196
|
+
- spec/fixtures/ldiff/error.diff.missing_new_line2-f
|
209
197
|
- spec/fixtures/ldiff/output.diff
|
210
198
|
- spec/fixtures/ldiff/output.diff-c
|
211
199
|
- spec/fixtures/ldiff/output.diff-e
|
212
200
|
- spec/fixtures/ldiff/output.diff-f
|
213
201
|
- spec/fixtures/ldiff/output.diff-u
|
202
|
+
- spec/fixtures/ldiff/output.diff.bin1
|
203
|
+
- spec/fixtures/ldiff/output.diff.bin1-c
|
204
|
+
- spec/fixtures/ldiff/output.diff.bin1-e
|
205
|
+
- spec/fixtures/ldiff/output.diff.bin1-f
|
206
|
+
- spec/fixtures/ldiff/output.diff.bin1-u
|
207
|
+
- spec/fixtures/ldiff/output.diff.bin2
|
208
|
+
- spec/fixtures/ldiff/output.diff.bin2-c
|
209
|
+
- spec/fixtures/ldiff/output.diff.bin2-e
|
210
|
+
- spec/fixtures/ldiff/output.diff.bin2-f
|
211
|
+
- spec/fixtures/ldiff/output.diff.bin2-u
|
214
212
|
- spec/fixtures/ldiff/output.diff.chef
|
215
213
|
- spec/fixtures/ldiff/output.diff.chef-c
|
216
214
|
- spec/fixtures/ldiff/output.diff.chef-e
|
@@ -222,6 +220,31 @@ files:
|
|
222
220
|
- spec/fixtures/ldiff/output.diff.chef2-e
|
223
221
|
- spec/fixtures/ldiff/output.diff.chef2-f
|
224
222
|
- spec/fixtures/ldiff/output.diff.chef2-u
|
223
|
+
- spec/fixtures/ldiff/output.diff.empty.vs.four_lines
|
224
|
+
- spec/fixtures/ldiff/output.diff.empty.vs.four_lines-c
|
225
|
+
- spec/fixtures/ldiff/output.diff.empty.vs.four_lines-e
|
226
|
+
- spec/fixtures/ldiff/output.diff.empty.vs.four_lines-f
|
227
|
+
- spec/fixtures/ldiff/output.diff.empty.vs.four_lines-u
|
228
|
+
- spec/fixtures/ldiff/output.diff.four_lines.vs.empty
|
229
|
+
- spec/fixtures/ldiff/output.diff.four_lines.vs.empty-c
|
230
|
+
- spec/fixtures/ldiff/output.diff.four_lines.vs.empty-e
|
231
|
+
- spec/fixtures/ldiff/output.diff.four_lines.vs.empty-f
|
232
|
+
- spec/fixtures/ldiff/output.diff.four_lines.vs.empty-u
|
233
|
+
- spec/fixtures/ldiff/output.diff.issue95_trailing_context
|
234
|
+
- spec/fixtures/ldiff/output.diff.issue95_trailing_context-c
|
235
|
+
- spec/fixtures/ldiff/output.diff.issue95_trailing_context-e
|
236
|
+
- spec/fixtures/ldiff/output.diff.issue95_trailing_context-f
|
237
|
+
- spec/fixtures/ldiff/output.diff.issue95_trailing_context-u
|
238
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line1
|
239
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line1-c
|
240
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line1-e
|
241
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line1-f
|
242
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line1-u
|
243
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line2
|
244
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line2-c
|
245
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line2-e
|
246
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line2-f
|
247
|
+
- spec/fixtures/ldiff/output.diff.missing_new_line2-u
|
225
248
|
- spec/fixtures/new-chef
|
226
249
|
- spec/fixtures/new-chef2
|
227
250
|
- spec/fixtures/old-chef
|
@@ -238,17 +261,17 @@ files:
|
|
238
261
|
homepage: https://github.com/halostatue/diff-lcs
|
239
262
|
licenses:
|
240
263
|
- MIT
|
241
|
-
- Artistic-
|
264
|
+
- Artistic-1.0-Perl
|
242
265
|
- GPL-2.0-or-later
|
243
266
|
metadata:
|
244
267
|
homepage_uri: https://github.com/halostatue/diff-lcs
|
268
|
+
changelog_uri: https://github.com/halostatue/diff-lcs/blob/main/CHANGELOG.md
|
245
269
|
source_code_uri: https://github.com/halostatue/diff-lcs
|
246
270
|
bug_tracker_uri: https://github.com/halostatue/diff-lcs/issues
|
247
271
|
rubygems_mfa_required: 'true'
|
248
|
-
post_install_message:
|
249
272
|
rdoc_options:
|
250
273
|
- "--main"
|
251
|
-
- README.
|
274
|
+
- README.md
|
252
275
|
require_paths:
|
253
276
|
- lib
|
254
277
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -262,8 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
285
|
- !ruby/object:Gem::Version
|
263
286
|
version: '0'
|
264
287
|
requirements: []
|
265
|
-
rubygems_version: 3.
|
266
|
-
signing_key:
|
288
|
+
rubygems_version: 3.6.6
|
267
289
|
specification_version: 4
|
268
290
|
summary: Diff::LCS computes the difference between two Enumerable sequences using
|
269
291
|
the McIlroy-Hunt longest common subsequence (LCS) algorithm
|
data/Code-of-Conduct.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Contributing.md
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
## Contributing
|
2
|
-
|
3
|
-
I value any contribution to Diff::LCS you can provide: a bug report, a
|
4
|
-
feature request, or code contributions. Code contributions to Diff::LCS are
|
5
|
-
especially <del>welcome</del>encouraged. Because Diff::LCS is a complex
|
6
|
-
codebase, there are a few guidelines:
|
7
|
-
|
8
|
-
- Code changes _will not_ be accepted without tests. The test suite is
|
9
|
-
written with [RSpec][].
|
10
|
-
- Match my coding style.
|
11
|
-
- Use a thoughtfully-named topic branch that contains your change. Rebase
|
12
|
-
your commits into logical chunks as necessary.
|
13
|
-
- Use [quality commit messages][].
|
14
|
-
- Do not change the version number; when your patch is accepted and a release
|
15
|
-
is made, the version will be updated at that point.
|
16
|
-
- Submit a GitHub pull request with your changes.
|
17
|
-
- New or changed behaviours require appropriate documentation.
|
18
|
-
|
19
|
-
### Test Dependencies
|
20
|
-
|
21
|
-
Diff::LCS uses Ryan Davis’s [Hoe][] to manage the release process, and it
|
22
|
-
adds a number of rake tasks. You will mostly be interested in:
|
23
|
-
|
24
|
-
```sh
|
25
|
-
$ rake
|
26
|
-
```
|
27
|
-
|
28
|
-
which runs the tests the same way that:
|
29
|
-
|
30
|
-
```sh
|
31
|
-
$ rake spec
|
32
|
-
```
|
33
|
-
|
34
|
-
will do.
|
35
|
-
|
36
|
-
To assist with the installation of the development dependencies, I have
|
37
|
-
provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file. This
|
38
|
-
will permit you to do:
|
39
|
-
|
40
|
-
```sh
|
41
|
-
$ bundle install
|
42
|
-
```
|
43
|
-
|
44
|
-
to get the development dependencies. If you aleady have `hoe` installed, you
|
45
|
-
can accomplish the same thing with:
|
46
|
-
|
47
|
-
```sh
|
48
|
-
$ rake newb
|
49
|
-
```
|
50
|
-
|
51
|
-
This task will install any missing dependencies, run the tests/specs, and
|
52
|
-
generate the RDoc.
|
53
|
-
|
54
|
-
You can run tests with code coverage analysis by running:
|
55
|
-
|
56
|
-
```sh
|
57
|
-
$ rake spec:coverage
|
58
|
-
```
|
59
|
-
|
60
|
-
### Workflow
|
61
|
-
|
62
|
-
Here's the most direct way to get your work merged into the project:
|
63
|
-
|
64
|
-
- Fork the project.
|
65
|
-
- Clone down your fork (`git clone git://github.com/<username>/diff-lcs.git`).
|
66
|
-
- Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
|
67
|
-
- Hack away, add tests. Not necessarily in that order.
|
68
|
-
- Make sure everything still passes by running `rake`.
|
69
|
-
- If necessary, rebase your commits into logical chunks, without errors.
|
70
|
-
- Push the branch up (`git push origin my_awesome_feature`).
|
71
|
-
- Create a pull request against halostatue/diff-lcs and describe what your
|
72
|
-
change does and the why you think it should be merged.
|
73
|
-
|
74
|
-
### Contributors
|
75
|
-
|
76
|
-
- Austin Ziegler created Diff::LCS.
|
77
|
-
|
78
|
-
Thanks to everyone else who has contributed code or bug reports to Diff::LCS:
|
79
|
-
|
80
|
-
- @ginriki
|
81
|
-
- @joshbronson
|
82
|
-
- @kevinmook
|
83
|
-
- @mckaz
|
84
|
-
- Akinori Musha
|
85
|
-
- Artem Ignatyev
|
86
|
-
- Brandon Fish
|
87
|
-
- Camille Drapier
|
88
|
-
- Cédric Boutillier
|
89
|
-
- Gregg Kellogg
|
90
|
-
- Jagdeep Singh
|
91
|
-
- Jason Gladish
|
92
|
-
- Jon Rowe
|
93
|
-
- Josef Strzibny
|
94
|
-
- Josep (@apuratepp)
|
95
|
-
- Josh Bronson
|
96
|
-
- Jun Aruga
|
97
|
-
- Justin Steele
|
98
|
-
- Kenichi Kamiya
|
99
|
-
- Kensuke Nagae
|
100
|
-
- Kevin Ansfield
|
101
|
-
- Koichi Ito
|
102
|
-
- Mark Friedgan
|
103
|
-
- Michael Granger
|
104
|
-
- Myron Marston
|
105
|
-
- Nicolas Leger
|
106
|
-
- Oleg Orlov
|
107
|
-
- Paul Kunysch
|
108
|
-
- Pete Higgins
|
109
|
-
- Peter Goldstein
|
110
|
-
- Peter Wagenet
|
111
|
-
- Philippe Lafoucrière
|
112
|
-
- Ryan Lovelett
|
113
|
-
- Scott Steele
|
114
|
-
- Simon Courtois
|
115
|
-
- Tien (@tiendo1011)
|
116
|
-
- Tomas Jura
|
117
|
-
- Vít Ondruch
|
118
|
-
|
119
|
-
[rspec]: http://rspec.info/documentation/
|
120
|
-
[quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
121
|
-
[hoe]: https://github.com/seattlerb/hoe
|