cybrid_api_id_ruby 0.123.229 → 0.123.231

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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_id_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
  6. data/lib/cybrid_api_id_ruby/api/customer_tokens_idp_api.rb +1 -1
  7. data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
  8. data/lib/cybrid_api_id_ruby/api/users_idp_api.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
  17. data/lib/cybrid_api_id_ruby/models/error_response_idp_model.rb +1 -1
  18. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  19. data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
  20. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  21. data/lib/cybrid_api_id_ruby/models/post_user_idp_model.rb +1 -1
  22. data/lib/cybrid_api_id_ruby/models/user_idp_model.rb +1 -1
  23. data/lib/cybrid_api_id_ruby/models/user_list_idp_model.rb +1 -1
  24. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  25. data/lib/cybrid_api_id_ruby.rb +1 -1
  26. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  27. data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
  28. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  29. data/spec/api/users_idp_api_spec.rb +1 -1
  30. data/spec/api_client_spec.rb +1 -1
  31. data/spec/configuration_spec.rb +1 -1
  32. data/spec/models/application_idp_model_spec.rb +1 -1
  33. data/spec/models/application_list_idp_model_spec.rb +1 -1
  34. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  35. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  36. data/spec/models/customer_token_idp_model_spec.rb +1 -1
  37. data/spec/models/error_response_idp_model_spec.rb +1 -1
  38. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  39. data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
  40. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  41. data/spec/models/post_user_idp_model_spec.rb +1 -1
  42. data/spec/models/user_idp_model_spec.rb +1 -1
  43. data/spec/models/user_list_idp_model_spec.rb +1 -1
  44. data/spec/spec_helper.rb +1 -1
  45. data/vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.6.0.gem +0 -0
  46. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  47. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  48. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  49. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.3/gem_make.out +5 -5
  50. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  51. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.2/gem_make.out +5 -5
  52. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CHANGELOG.md +491 -0
  53. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CODE_OF_CONDUCT.md +128 -0
  54. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTING.md +74 -0
  55. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTORS.md +48 -0
  56. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/Contributing.md +74 -0
  57. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/Manifest.txt +7 -4
  58. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/README.md +92 -0
  59. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/Rakefile +12 -44
  60. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/SECURITY.md +41 -0
  61. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/docs/artistic.txt +1 -1
  62. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/change.rb +1 -1
  63. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/htmldiff.rb +2 -0
  64. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/hunk.rb +38 -22
  65. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/ldiff.rb +60 -50
  66. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs.rb +10 -9
  67. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/hunk_spec.rb +1 -1
  68. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/issues_spec.rb +32 -32
  69. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/ldiff_spec.rb +21 -10
  70. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/patch_spec.rb +1 -1
  71. data/vendor/bundle/ruby/3.3.0/specifications/{diff-lcs-1.5.1.gemspec → diff-lcs-1.6.0.gemspec} +11 -10
  72. metadata +66 -63
  73. data/vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.5.1.gem +0 -0
  74. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Code-of-Conduct.md +0 -74
  75. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Contributing.md +0 -121
  76. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/History.md +0 -431
  77. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/README.rdoc +0 -84
  78. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/.rspec +0 -0
  79. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1/License.md → diff-lcs-1.6.0/LICENCE.md} +0 -0
  80. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/bin/htmldiff +0 -0
  81. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/bin/ldiff +0 -0
  82. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/docs/COPYING.txt +0 -0
  83. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/array.rb +0 -0
  84. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/backports.rb +0 -0
  85. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/block.rb +0 -0
  86. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/callbacks.rb +0 -0
  87. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/internals.rb +0 -0
  88. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/string.rb +0 -0
  89. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff-lcs.rb +0 -0
  90. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/change_spec.rb +0 -0
  91. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/diff_spec.rb +0 -0
  92. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/aX +0 -0
  93. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/bXaX +0 -0
  94. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ds1.csv +0 -0
  95. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ds2.csv +0 -0
  96. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff +0 -0
  97. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-c +0 -0
  98. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-e +0 -0
  99. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-f +0 -0
  100. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-u +0 -0
  101. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef +0 -0
  102. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-c +0 -0
  103. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-e +0 -0
  104. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-f +0 -0
  105. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-u +0 -0
  106. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2 +0 -0
  107. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-c +0 -0
  108. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-d +0 -0
  109. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-e +0 -0
  110. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-f +0 -0
  111. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-u +0 -0
  112. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/new-chef +0 -0
  113. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/new-chef2 +0 -0
  114. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/old-chef +0 -0
  115. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/old-chef2 +0 -0
  116. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/lcs_spec.rb +0 -0
  117. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/sdiff_spec.rb +0 -0
  118. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/spec_helper.rb +0 -0
  119. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/traverse_balanced_spec.rb +0 -0
  120. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/traverse_sequences_spec.rb +0 -0
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at [INSERT CONTACT
63
+ METHOD]. All complaints will be reviewed and investigated promptly and fairly.
64
+
65
+ All community leaders are obligated to respect the privacy and security of the
66
+ reporter of any incident.
67
+
68
+ ## Enforcement Guidelines
69
+
70
+ Community leaders will follow these Community Impact Guidelines in determining
71
+ the consequences for any action they deem in violation of this Code of Conduct:
72
+
73
+ ### 1. Correction
74
+
75
+ **Community Impact**: Use of inappropriate language or other behavior deemed
76
+ unprofessional or unwelcome in the community.
77
+
78
+ **Consequence**: A private, written warning from community leaders, providing
79
+ clarity around the nature of the violation and an explanation of why the
80
+ behavior was inappropriate. A public apology may be requested.
81
+
82
+ ### 2. Warning
83
+
84
+ **Community Impact**: A violation through a single incident or series of
85
+ actions.
86
+
87
+ **Consequence**: A warning with consequences for continued behavior. No
88
+ interaction with the people involved, including unsolicited interaction with
89
+ those enforcing the Code of Conduct, for a specified period of time. This
90
+ includes avoiding interactions in community spaces as well as external channels
91
+ like social media. Violating these terms may lead to a temporary or permanent
92
+ ban.
93
+
94
+ ### 3. Temporary Ban
95
+
96
+ **Community Impact**: A serious violation of community standards, including
97
+ sustained inappropriate behavior.
98
+
99
+ **Consequence**: A temporary ban from any sort of interaction or public
100
+ communication with the community for a specified period of time. No public or
101
+ private interaction with the people involved, including unsolicited interaction
102
+ with those enforcing the Code of Conduct, is allowed during this period.
103
+ Violating these terms may lead to a permanent ban.
104
+
105
+ ### 4. Permanent Ban
106
+
107
+ **Community Impact**: Demonstrating a pattern of violation of community
108
+ standards, including sustained inappropriate behavior, harassment of an
109
+ individual, or aggression toward or disparagement of classes of individuals.
110
+
111
+ **Consequence**: A permanent ban from any sort of public interaction within the
112
+ community.
113
+
114
+ ## Attribution
115
+
116
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117
+ version 2.1, available at
118
+ <https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
119
+
120
+ Community Impact Guidelines were inspired by
121
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
122
+
123
+ For answers to common questions about this code of conduct, see the FAQ at
124
+ <https://www.contributor-covenant.org/faq>. Translations are available at
125
+ <https://www.contributor-covenant.org/translations>.
126
+
127
+ [homepage]: https://www.contributor-covenant.org
128
+ [Mozilla CoC]: https://github.com/mozilla/diversity
@@ -0,0 +1,74 @@
1
+ # Contributing
2
+
3
+ Contribution to diff-lcs is encouraged in any form: a bug report, a feature
4
+ request, or code contributions. There are a few DOs and DON'Ts for
5
+
6
+ - DO:
7
+
8
+ - Keep the coding style that already exists for any updated Ruby code (support
9
+ or otherwise). I use [Standard Ruby][standardrb] for linting and formatting.
10
+
11
+ - Use thoughtfully-named topic branches for contributions. Rebase your commits
12
+ into logical chunks as necessary.
13
+
14
+ - Use [quality commit messages][qcm].
15
+
16
+ - Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
17
+ `CHANGELOG.md` as a separate commit from your main change. (Follow the style
18
+ in the `CHANGELOG.md` and provide a link to your PR.)
19
+
20
+ - Add or update tests, written in [RSpec][rspec], as appropriate.
21
+
22
+ - Add or update documentation, as appropriate.
23
+
24
+ - DO NOT:
25
+
26
+ - Modify `VERSION` in `lib/diff/lcs.rb`. When your patch is accepted and a
27
+ release is made, the version will be updated at that point.
28
+
29
+ - Modify `diff-lcs.gemspect`; it is a generated file. (You _may_ use
30
+ `rake gemspec` to regenerate it if your change involves metadata related to
31
+ gem itself).
32
+
33
+ - Modify the `Gemfile`.
34
+
35
+ ## Test Dependencies
36
+
37
+ diff-lcs uses Ryan Davis's [Hoe][Hoe] to manage the release process, and it adds
38
+ a number of rake tasks. You will mostly be interested in `rake`, which runs
39
+ tests in the same way that `rake spec` does.
40
+
41
+ To assist with the installation of the development dependencies for diff-lcs, I
42
+ have provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file.
43
+ `minitar.gemspec` file. This will permit you to use `bundle install` to install
44
+ the dependencies.
45
+
46
+ You can run tests with code coverage analysis by running `rake spec:coverage`.
47
+
48
+ ## Workflow
49
+
50
+ Here's the most direct way to get your work merged into the project:
51
+
52
+ - Fork the project.
53
+ - Clone your fork (`git clone git://github.com/<username>/diff-lcs.git`).
54
+ - Create a topic branch to contain your change
55
+ (`git checkout -b my_awesome_feature`).
56
+ - Hack away, add tests. Not necessarily in that order.
57
+ - Make sure everything still passes by running `rake`.
58
+ - If necessary, rebase your commits into logical chunks, without errors.
59
+ - Push the branch up (`git push origin my_awesome_feature`).
60
+ - Create a pull request against halostatue/diff-lcs and describe what your
61
+ change does and the why you think it should be merged.
62
+
63
+ ### Help Wanted
64
+
65
+ I want to automated the releases. I am **not** switching from Hoe for release
66
+ management, so the use of [rubygems/release-gem][release-gem] requires some care
67
+ (perhaps by exporting `VERSION=$(rake version)` to the job), but assistance in
68
+ getting this action going for an automated release would be greatly appreciated.
69
+
70
+ [hoe]: https://github.com/seattlerb/hoe
71
+ [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
72
+ [release-gem]: https://github.com/rubygems/release-gem
73
+ [rspec]: http://rspec.info/documentation/
74
+ [standardrb]: https://github.com/standardrb/standard
@@ -0,0 +1,48 @@
1
+ # Contributors
2
+
3
+ - Austin Ziegler (@halostatue) created diff-lcs.
4
+
5
+ Thanks to everyone else who has contributed to diff-lcs over the years:
6
+
7
+ - @ginriki
8
+ - @joshbronson
9
+ - @kevinmook
10
+ - @mckaz
11
+ - Akinori Musha
12
+ - Artem Ignatyev
13
+ - Brandon Fish
14
+ - Baptiste Courtois (@annih)
15
+ - Camille Drapier
16
+ - Cédric Boutillier
17
+ - Gregg Kellogg
18
+ - Jagdeep Singh
19
+ - Jason Gladish
20
+ - Jon Rowe
21
+ - Josef Strzibny
22
+ - Josep (@apuratepp)
23
+ - Josh Bronson
24
+ - Jun Aruga
25
+ - Justin Steele
26
+ - Kenichi Kamiya
27
+ - Kensuke Nagae
28
+ - Kevin Ansfield
29
+ - Koichi Ito
30
+ - Mark Friedgan
31
+ - Masato Nakamura
32
+ - Mark Young
33
+ - Michael Granger
34
+ - Myron Marston
35
+ - Nicolas Leger
36
+ - Oleg Orlov
37
+ - Patrick Linnane
38
+ - Paul Kunysch
39
+ - Pete Higgins
40
+ - Peter Goldstein
41
+ - Peter Wagenet
42
+ - Philippe Lafoucrière
43
+ - Ryan Lovelett
44
+ - Scott Steele
45
+ - Simon Courtois
46
+ - Tien (@tiendo1011)
47
+ - Tomas Jura
48
+ - Vít Ondruch
@@ -0,0 +1,74 @@
1
+ # Contributing
2
+
3
+ Contribution to diff-lcs is encouraged in any form: a bug report, a feature
4
+ request, or code contributions. There are a few DOs and DON'Ts for
5
+
6
+ - DO:
7
+
8
+ - Keep the coding style that already exists for any updated Ruby code (support
9
+ or otherwise). I use [Standard Ruby][standardrb] for linting and formatting.
10
+
11
+ - Use thoughtfully-named topic branches for contributions. Rebase your commits
12
+ into logical chunks as necessary.
13
+
14
+ - Use [quality commit messages][qcm].
15
+
16
+ - Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
17
+ `CHANGELOG.md` as a separate commit from your main change. (Follow the style
18
+ in the `CHANGELOG.md` and provide a link to your PR.)
19
+
20
+ - Add or update tests, written in [RSpec][rspec], as appropriate.
21
+
22
+ - Add or update documentation, as appropriate.
23
+
24
+ - DO NOT:
25
+
26
+ - Modify `VERSION` in `lib/diff/lcs.rb`. When your patch is accepted and a
27
+ release is made, the version will be updated at that point.
28
+
29
+ - Modify `diff-lcs.gemspect`; it is a generated file. (You _may_ use
30
+ `rake gemspec` to regenerate it if your change involves metadata related to
31
+ gem itself).
32
+
33
+ - Modify the `Gemfile`.
34
+
35
+ ## Test Dependencies
36
+
37
+ diff-lcs uses Ryan Davis's [Hoe][Hoe] to manage the release process, and it adds
38
+ a number of rake tasks. You will mostly be interested in `rake`, which runs
39
+ tests in the same way that `rake spec` does.
40
+
41
+ To assist with the installation of the development dependencies for diff-lcs, I
42
+ have provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file.
43
+ `minitar.gemspec` file. This will permit you to use `bundle install` to install
44
+ the dependencies.
45
+
46
+ You can run tests with code coverage analysis by running `rake spec:coverage`.
47
+
48
+ ## Workflow
49
+
50
+ Here's the most direct way to get your work merged into the project:
51
+
52
+ - Fork the project.
53
+ - Clone your fork (`git clone git://github.com/<username>/diff-lcs.git`).
54
+ - Create a topic branch to contain your change
55
+ (`git checkout -b my_awesome_feature`).
56
+ - Hack away, add tests. Not necessarily in that order.
57
+ - Make sure everything still passes by running `rake`.
58
+ - If necessary, rebase your commits into logical chunks, without errors.
59
+ - Push the branch up (`git push origin my_awesome_feature`).
60
+ - Create a pull request against halostatue/diff-lcs and describe what your
61
+ change does and the why you think it should be merged.
62
+
63
+ ### Help Wanted
64
+
65
+ I want to automated the releases. I am **not** switching from Hoe for release
66
+ management, so the use of [rubygems/release-gem][release-gem] requires some care
67
+ (perhaps by exporting `VERSION=$(rake version)` to the job), but assistance in
68
+ getting this action going for an automated release would be greatly appreciated.
69
+
70
+ [hoe]: https://github.com/seattlerb/hoe
71
+ [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
72
+ [release-gem]: https://github.com/rubygems/release-gem
73
+ [rspec]: http://rspec.info/documentation/
74
+ [standardrb]: https://github.com/standardrb/standard
@@ -1,11 +1,14 @@
1
1
  .rspec
2
- Code-of-Conduct.md
2
+ CHANGELOG.md
3
+ CODE_OF_CONDUCT.md
4
+ CONTRIBUTING.md
5
+ CONTRIBUTORS.md
3
6
  Contributing.md
4
- History.md
5
- License.md
7
+ LICENCE.md
6
8
  Manifest.txt
7
- README.rdoc
9
+ README.md
8
10
  Rakefile
11
+ SECURITY.md
9
12
  bin/htmldiff
10
13
  bin/ldiff
11
14
  docs/COPYING.txt
@@ -0,0 +1,92 @@
1
+ # Diff::LCS
2
+
3
+ - home :: https://github.com/halostatue/diff-lcs
4
+ - changelog :: https://github.com/halostatue/diff-lcs/blob/main/CHANGELOG.md
5
+ - code :: https://github.com/halostatue/diff-lcs
6
+ - bugs :: https://github.com/halostatue/diff-lcs/issues
7
+ - rdoc :: http://rubydoc.info/github/halostatue/diff-lcs
8
+
9
+ <a href="https://github.com/halostatue/diff-lcs/actions">
10
+ <img src="https://github.com/halostatue/diff-lcs/workflows/CI/badge.svg" />
11
+ </a>
12
+
13
+ ## Description
14
+
15
+ Diff::LCS computes the difference between two Enumerable sequences using the
16
+ McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
17
+ to create a simple HTML diff output format and a standard diff-like tool.
18
+
19
+ This is release 1.4.3, providing a simple extension that allows for
20
+ Diff::LCS::Change objects to be treated implicitly as arrays and fixes a number
21
+ of formatting issues.
22
+
23
+ Ruby versions below 2.5 are soft-deprecated, which means that older versions are
24
+ no longer part of the CI test suite. If any changes have been introduced that
25
+ break those versions, bug reports and patches will be accepted, but it will be
26
+ up to the reporter to verify any fixes prior to release. The next major release
27
+ will completely break compatibility.
28
+
29
+ ## Synopsis
30
+
31
+ Using this module is quite simple. By default, Diff::LCS does not extend objects
32
+ with the Diff::LCS interface, but will be called as if it were a function:
33
+
34
+ ```ruby
35
+ require 'diff/lcs'
36
+
37
+ seq1 = %w(a b c e h j l m n p)
38
+ seq2 = %w(b c d e f j k l m r s t)
39
+
40
+ lcs = Diff::LCS.LCS(seq1, seq2)
41
+ diffs = Diff::LCS.diff(seq1, seq2)
42
+ sdiff = Diff::LCS.sdiff(seq1, seq2)
43
+ seq = Diff::LCS.traverse_sequences(seq1, seq2, callback_obj)
44
+ bal = Diff::LCS.traverse_balanced(seq1, seq2, callback_obj)
45
+ seq2 == Diff::LCS.patch!(seq1, diffs)
46
+ seq1 == Diff::LCS.unpatch!(seq2, diffs)
47
+ seq2 == Diff::LCS.patch!(seq1, sdiff)
48
+ seq1 == Diff::LCS.unpatch!(seq2, sdiff)
49
+ ```
50
+
51
+ Objects can be extended with Diff::LCS:
52
+
53
+ ```ruby
54
+ seq1.extend(Diff::LCS)
55
+ lcs = seq1.lcs(seq2)
56
+ diffs = seq1.diff(seq2)
57
+ sdiff = seq1.sdiff(seq2)
58
+ seq = seq1.traverse_sequences(seq2, callback_obj)
59
+ bal = seq1.traverse_balanced(seq2, callback_obj)
60
+ seq2 == seq1.patch!(diffs)
61
+ seq1 == seq2.unpatch!(diffs)
62
+ seq2 == seq1.patch!(sdiff)
63
+ seq1 == seq2.unpatch!(sdiff)
64
+ ```
65
+
66
+ By requiring 'diff/lcs/array' or 'diff/lcs/string', Array or String will be
67
+ extended for use this way.
68
+
69
+ Note that Diff::LCS requires a sequenced enumerable container, which means that
70
+ the order of enumeration is both predictable and consistent for the same set of
71
+ data. While it is theoretically possible to generate a diff for an unordered
72
+ hash, it will only be meaningful if the enumeration of the hashes is consistent.
73
+ In general, this will mean that containers that behave like String or Array will
74
+ perform best.
75
+
76
+ ## History
77
+
78
+ Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt longest
79
+ common subsequence (LCS) algorithm to compute intelligent differences between
80
+ two sequenced enumerable containers. The implementation is based on Mario I.
81
+ Wolczko's [Smalltalk version 1.2][smalltalk] (1993) and Ned Konz's Perl version
82
+ [Algorithm::Diff 1.15][perl]. `Diff::LCS#sdiff` and
83
+ `Diff::LCS#traverse_balanced` were originally written for the Perl version by
84
+ Mike Schilli.
85
+
86
+ The algorithm is described in <em>A Fast Algorithm for Computing Longest Common
87
+ Subsequences</em>, CACM, vol.20, no.5, pp.350-353, May 1977, with a few minor
88
+ improvements to improve the speed. A simplified description of the algorithm,
89
+ originally written for the Perl version, was written by Mark-Jason Dominus.
90
+
91
+ [smalltalk]: ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st
92
+ [perl]: http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/
@@ -1,49 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
1
  require "rubygems"
4
2
  require "rspec"
5
3
  require "rspec/core/rake_task"
6
4
  require "hoe"
5
+ require "rake/clean"
7
6
 
8
- # This is required until https://github.com/seattlerb/hoe/issues/112 is fixed
9
- class Hoe
10
- def with_config
11
- config = Hoe::DEFAULT_CONFIG
12
-
13
- rc = File.expand_path("~/.hoerc")
14
- homeconfig = load_config(rc)
15
- config = config.merge(homeconfig)
16
-
17
- localconfig = load_config(File.expand_path(File.join(Dir.pwd, ".hoerc")))
18
- config = config.merge(localconfig)
19
-
20
- yield config, rc
21
- end
22
-
23
- def load_config(name)
24
- File.exist?(name) ? safe_load_yaml(name) : {}
25
- end
26
-
27
- def safe_load_yaml(name)
28
- return safe_load_yaml_file(name) if YAML.respond_to?(:safe_load_file)
29
-
30
- data = IO.binread(name)
31
- YAML.safe_load(data, permitted_classes: [Regexp])
32
- rescue
33
- YAML.safe_load(data, [Regexp])
34
- end
35
-
36
- def safe_load_yaml_file(name)
37
- YAML.safe_load_file(name, permitted_classes: [Regexp])
38
- rescue
39
- YAML.safe_load_file(name, [Regexp])
40
- end
41
- end
42
-
43
- Hoe.plugin :bundler
7
+ Hoe.plugin :cov
44
8
  Hoe.plugin :doofus
45
9
  Hoe.plugin :gemspec2
46
- Hoe.plugin :git
10
+ Hoe.plugin :git2
11
+ Hoe.plugin :rubygems
47
12
 
48
13
  if RUBY_VERSION < "1.9"
49
14
  class Array # :nodoc:
@@ -70,13 +35,16 @@ end
70
35
  _spec = Hoe.spec "diff-lcs" do
71
36
  developer("Austin Ziegler", "halostatue@gmail.com")
72
37
 
73
- require_ruby_version ">= 1.8"
38
+ self.history_file = "CHANGELOG.md"
39
+ self.readme_file = "README.md"
40
+ self.licenses = ["MIT", "Artistic-1.0-Perl", "GPL-2.0-or-later"]
74
41
 
75
- self.history_file = "History.md"
76
- self.readme_file = "README.rdoc"
77
- self.licenses = ["MIT", "Artistic-2.0", "GPL-2.0-or-later"]
42
+ require_ruby_version ">= 1.8"
78
43
 
79
- spec_extras[:metadata] = ->(val) { val["rubygems_mfa_required"] = "true" }
44
+ spec_extras[:metadata] = ->(val) {
45
+ val["rubygems_mfa_required"] = "true"
46
+ val["changelog_uri"] = "https://github.com/halostatue/diff-lcs/blob/main/CHANGELOG.md"
47
+ }
80
48
 
81
49
  extra_dev_deps << ["hoe", ">= 3.0", "< 5"]
82
50
  extra_dev_deps << ["hoe-doofus", "~> 1.0"]
@@ -0,0 +1,41 @@
1
+ # diff-lcs Security
2
+
3
+ ## Supported Versions
4
+
5
+ Security reports are accepted for the most recent major release and the previous
6
+ version for a limited time after the initial major release version. After a
7
+ major release, the previous version will receive full support for six months and
8
+ security support for an additional six months (for a total of twelve months).
9
+
10
+ Because diff-lcs 1.x supports a wide range of Ruby versions, security reports
11
+ will only be accepted when they can be demonstrated on Ruby 3.1 or higher.
12
+
13
+ > [!information]
14
+ >
15
+ > There will be a diff-lcs 2.0 released in 2025 which narrows support to modern
16
+ > versions of Ruby only.
17
+ >
18
+ > | Release Date | Support Ends | Security Support Ends |
19
+ > | ------------ | ------------ | --------------------- |
20
+ > | 2025 | +6 months | +12 months |
21
+ >
22
+ > If the 2.0.0 release happens on 2025-07-01, regular support for diff-lcs 1.x
23
+ > will end on 2026-12-31 and security support for diff-lcs 1.x will end on
24
+ > 2026-06-30.
25
+
26
+ ## Reporting a Vulnerability
27
+
28
+ By preference, use the [Tidelift security contact][tidelift]. Tidelift will
29
+ coordinate the fix and disclosure.
30
+
31
+ Alternatively, Send an email to [diff-lcs@halostatue.ca][email] with the text
32
+ `Diff::LCS` in the subject. Emails sent to this address should be encrypted
33
+ using [age][age] with the following public key:
34
+
35
+ ```
36
+ age1fc6ngxmn02m62fej5cl30lrvwmxn4k3q2atqu53aatekmnqfwumqj4g93w
37
+ ```
38
+
39
+ [tidelift]: https://tidelift.com/security
40
+ [email]: mailto:diff-lcs@halostatue.ca
41
+ [age]: https://github.com/FiloSottile/age
@@ -122,6 +122,6 @@ products derived from this software without specific prior written permission.
122
122
 
123
123
  10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
124
124
  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
125
- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
125
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
126
126
 
127
127
  The End
@@ -4,7 +4,7 @@
4
4
  # addition of an element from either the old or the new sequenced
5
5
  # enumerable.
6
6
  class Diff::LCS::Change
7
- IntClass = 1.class # Fixnum is deprecated in Ruby 2.4 # rubocop:disable Naming/ConstantName
7
+ IntClass = 1.class # Fixnum is deprecated in Ruby 2.4 # standard:disable Naming/ConstantName
8
8
 
9
9
  # The only actions valid for changes are '+' (add), '-' (delete), '='
10
10
  # (no change), '!' (changed), '<' (tail changes from first sequence), or
@@ -5,7 +5,9 @@ require "cgi"
5
5
  # Produce a simple HTML diff view.
6
6
  class Diff::LCS::HTMLDiff
7
7
  class << self
8
+ # standard:disable ThreadSafety/ClassAndModuleAttributes
8
9
  attr_accessor :can_expand_tabs # :nodoc:
10
+ # standard:enable ThreadSafety/ClassAndModuleAttributes
9
11
  end
10
12
  self.can_expand_tabs = true
11
13