plain-merge 7.1.20 → 7.1.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff99ee6866c0fd9ec574898121ac44c69c80d1387ebe1b0a85456fdb38feac40
4
- data.tar.gz: 6acc432ce1c44245a6dee569aee51dc1c28610b0d8c6d94b8a5903c9ab83e7a6
3
+ metadata.gz: 4c6e6221df0c5de15670b1c7a185763d5055906c794b96986aa3123018ced462
4
+ data.tar.gz: da0b3383714cecabc7401f87c0e8b56414c410d515fc79fbd6d247d0afced59d
5
5
  SHA512:
6
- metadata.gz: 892bf74fb3d74f41f98d9bbb4184956802b2cd73d0569b7a571819f9048a9fa20bcce9b107adb4cf3d914430ac936f2c30e5379e9271d36015dd4c94cf14427d
7
- data.tar.gz: 0061c1104a20162627f5a162ae1b7d6291026b5889c0a3bf420d8b23fb7e092164769445c30f888fc771f3a2656a7699cac2b6474f1ba1a77f53a16a14d3565f
6
+ metadata.gz: 6c5f66275160cfa264c40d68990f778012c276d1c125665af59d65077f7f691d46d4bd92d09cc69f6d060dc701953dd8ab2913d67615c59e0815c3471132a888
7
+ data.tar.gz: 256ad18e4f91d70de6abcfddc10126838484d63bd3ce2f82da58dd225dd50aa278c9d88ecd664dd32a9efee1c2ddb9b06ae04f4a0b1b789cd83656f46300f1bd
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -2,22 +2,16 @@
2
2
 
3
3
  # ☯️ Plain::Merge
4
4
 
5
- [![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: AGPL-3.0-only OR PolyForm-Small-Business-1.0.0][📄license-img]][📄license] [![Total downloads][👽dl-ranki]][👽dl-rank] [![CI Current][🚎11-c-wfi]][🚎11-c-wf]
5
+ [![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: AGPL-3.0-only OR PolyForm-Small-Business-1.0.0][📄license-img]][📄license] [![Total downloads][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf]
6
6
 
7
7
  `if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know on Discord][✉️discord-invite] or [RubyForum][✉️ruby-forum], as I may have missed the notification.
8
8
 
9
- ---
10
-
11
9
  `if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
12
10
 
13
11
  [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
14
12
 
15
- <details markdown="1">
16
- <summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
17
-
18
- I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
19
-
20
- </details>
13
+ <!-- kettle-sponsors:shields:start -->
14
+ <!-- kettle-sponsors:shields:end -->
21
15
 
22
16
  ## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
23
17
 
@@ -36,6 +30,40 @@ callers can enter plain text analysis through
36
30
  - `TreeHaver.parser_for` registration for `:text` and `:plain` through the
37
31
  `:line` backend.
38
32
 
33
+ ## ✨ Installation
34
+
35
+ Install the gem and add to the application's Gemfile by executing:
36
+
37
+ ```console
38
+ bundle add plain-merge
39
+ ```
40
+
41
+ If bundler is not being used to manage dependencies, install the gem by executing:
42
+
43
+ ```console
44
+ gem install plain-merge
45
+ ```
46
+
47
+ ## ⚙️ Configuration
48
+
49
+ The default similarity threshold is `Plain::Merge::DEFAULT_TEXT_REFINEMENT_THRESHOLD`. Use `Plain::Merge.is_similar(left, right, threshold)` when a caller needs to decide whether a text fallback is acceptable.
50
+
51
+ `Plain::Merge.text_feature_profile` returns the family profile used by conformance runners.
52
+
53
+ ## 🔧 Basic Usage
54
+
55
+ ```ruby
56
+ require "plain/merge"
57
+
58
+ result = Plain::Merge.merge_text(
59
+ File.read("template.txt"),
60
+ File.read("notes.txt"),
61
+ )
62
+
63
+ abort result.fetch(:diagnostics).inspect unless result.fetch(:ok)
64
+ File.write("notes.txt", result.fetch(:output))
65
+ ```
66
+
39
67
  ## 💡 Info you can shake a stick at
40
68
 
41
69
  | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
@@ -54,7 +82,7 @@ callers can enter plain text analysis through
54
82
  The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
55
83
  CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
56
84
  The current MRI CI lane runs on Linux and macOS.
57
- The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
85
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
58
86
  When it is higher than the runtime floor, older runtime-compatible Rubies are
59
87
  not covered by the generated CI or Appraisal matrix.
60
88
 
@@ -78,40 +106,6 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
78
106
 
79
107
  </details>
80
108
 
81
- ## ✨ Installation
82
-
83
- Install the gem and add to the application's Gemfile by executing:
84
-
85
- ```console
86
- bundle add plain-merge
87
- ```
88
-
89
- If bundler is not being used to manage dependencies, install the gem by executing:
90
-
91
- ```console
92
- gem install plain-merge
93
- ```
94
-
95
- ## ⚙️ Configuration
96
-
97
- The default similarity threshold is `Plain::Merge::DEFAULT_TEXT_REFINEMENT_THRESHOLD`. Use `Plain::Merge.is_similar(left, right, threshold)` when a caller needs to decide whether a text fallback is acceptable.
98
-
99
- `Plain::Merge.text_feature_profile` returns the family profile used by conformance runners.
100
-
101
- ## 🔧 Basic Usage
102
-
103
- ```ruby
104
- require "plain/merge"
105
-
106
- result = Plain::Merge.merge_text(
107
- File.read("template.txt"),
108
- File.read("notes.txt"),
109
- )
110
-
111
- abort result.fetch(:diagnostics).inspect unless result.fetch(:ok)
112
- File.write("notes.txt", result.fetch(:output))
113
- ```
114
-
115
109
  ## 🔐 Security
116
110
 
117
111
  See [SECURITY.md][🔐security].
@@ -158,6 +152,16 @@ See [LICENSE.md][📄license] for details.
158
152
 
159
153
  If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
160
154
 
155
+ ### Please give the project a star ⭐ ♥.
156
+
157
+ Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
158
+
159
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
160
+
161
+ [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal] 💌 [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] 💌 [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
162
+
163
+ Thanks for RTFM. ☺️
164
+
161
165
  [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
162
166
  [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
163
167
  [⛳liberapay]: https://liberapay.com/pboling/donate
@@ -181,6 +185,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
181
185
  [✉️ruby-forum-top-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=flat&logo=discourse&label=Ruby%20Users%20Forum
182
186
  [✉️ruby-forum-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=for-the-badge&logo=discourse&label=Ruby%20Users%20Forum
183
187
  [✉️ruby-forum]: https://www.rubyforum.org/tag/structuredmerge
188
+
184
189
  [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
185
190
  [⛳️gem-namespace]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/plain-merge
186
191
  [⛳️namespace-img]: https://img.shields.io/badge/namespace-Plain::Merge-3C2D2D.svg?style=square&logo=ruby&logoColor=white
@@ -212,6 +217,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
212
217
  [💖🐙hub]: https://github.org/pboling
213
218
  [💖🛖hut]: https://sr.ht/~galtzo/
214
219
  [💖🧪lab]: https://gitlab.com/pboling
220
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
215
221
  [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
216
222
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
217
223
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
@@ -234,6 +240,16 @@ If none of the available licenses suit your use case, please [contact us](mailto
234
240
  [👽dl-ranki]: https://img.shields.io/gem/dt/plain-merge.svg
235
241
  [👽version]: https://clickgems.clickhouse.com/dashboard/plain-merge
236
242
  [👽versioni]: https://img.shields.io/gem/v/plain-merge.svg
243
+ [🏀qlty-mnt]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby
244
+ [🏀qlty-mnti]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/maintainability.svg
245
+ [🏀qlty-cov]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/metrics/code?sort=coverageRating
246
+ [🏀qlty-covi]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/coverage.svg
247
+ [🏀codecov]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby
248
+ [🏀codecovi]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
249
+ [🏀coveralls]: https://coveralls.io/github/structuredmerge/structuredmerge-ruby?branch=main
250
+ [🏀coveralls-img]: https://coveralls.io/repos/github/structuredmerge/structuredmerge-ruby/badge.svg?branch=main
251
+ [🚎2-cov-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml
252
+ [🚎2-cov-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml/badge.svg
237
253
  [🚎11-c-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml
238
254
  [🚎11-c-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml/badge.svg
239
255
  [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
@@ -245,6 +261,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
245
261
  [🤝cb-pulls]: https://codeberg.org/structuredmerge/structuredmerge-ruby/pulls
246
262
  [🤝cb-donate]: https://donate.codeberg.org/
247
263
  [🤝contributing]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/CONTRIBUTING.md
264
+ [🏀codecov-g]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
248
265
  [🖐contrib-rocks]: https://contrib.rocks
249
266
  [🖐contributors]: https://github.com/structuredmerge/structuredmerge-ruby/graphs/contributors
250
267
  [🖐contributors-img]: https://contrib.rocks/image?repo=structuredmerge/structuredmerge-ruby
@@ -261,7 +278,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
261
278
  [📌gitmoji]: https://gitmoji.dev
262
279
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
263
280
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
264
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.000-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
281
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.225-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
265
282
  [🔐security]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/SECURITY.md
266
283
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
267
284
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -270,6 +287,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
270
287
  [📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only_OR_PolyForm--Small--Business--1.0.0-259D6C.svg
271
288
  [📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
272
289
  [📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
290
+
273
291
  [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
274
292
  [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
275
293
  [🚎yard-current]: http://rubydoc.info/gems/plain-merge
@@ -5,7 +5,7 @@ module Plain
5
5
  # Version namespace for this gem.
6
6
  module Version
7
7
  # Current gem version.
8
- VERSION = '7.1.20'
8
+ VERSION = '7.1.22'
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain-merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.20
4
+ version: 7.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -44,7 +44,7 @@ dependencies:
44
44
  -
45
45
  - "="
46
46
  - !ruby/object:Gem::Version
47
- version: 7.1.20
47
+ version: 7.1.22
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  -
53
53
  - "="
54
54
  - !ruby/object:Gem::Version
55
- version: 7.1.20
55
+ version: 7.1.22
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: tree_haver
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ dependencies:
60
60
  -
61
61
  - "="
62
62
  - !ruby/object:Gem::Version
63
- version: 7.1.20
63
+ version: 7.1.22
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -68,7 +68,7 @@ dependencies:
68
68
  -
69
69
  - "="
70
70
  - !ruby/object:Gem::Version
71
- version: 7.1.20
71
+ version: 7.1.22
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: version_gem
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ dependencies:
104
104
  -
105
105
  - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: 3.1.31
107
+ version: 3.1.36
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  -
117
117
  - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 3.1.31
119
+ version: 3.1.36
120
120
  - !ruby/object:Gem::Dependency
121
121
  name: bundler-audit
122
122
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +232,7 @@ dependencies:
232
232
  -
233
233
  - ">="
234
234
  - !ruby/object:Gem::Version
235
- version: 2.0.30
235
+ version: 2.0.31
236
236
  type: :development
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
@@ -244,7 +244,7 @@ dependencies:
244
244
  -
245
245
  - ">="
246
246
  - !ruby/object:Gem::Version
247
- version: 2.0.30
247
+ version: 2.0.31
248
248
  - !ruby/object:Gem::Dependency
249
249
  name: turbo_tests2
250
250
  requirement: !ruby/object:Gem::Requirement
@@ -354,10 +354,10 @@ licenses:
354
354
  - PolyForm-Small-Business-1.0.0
355
355
  metadata:
356
356
  homepage_uri: "https://structuredmerge.org"
357
- source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.20"
358
- changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.20/CHANGELOG.md"
357
+ source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.22"
358
+ changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.22/CHANGELOG.md"
359
359
  bug_tracker_uri: "https://github.com/structuredmerge/structuredmerge-ruby/issues"
360
- documentation_uri: "https://www.rubydoc.info/gems/plain-merge/7.1.20"
360
+ documentation_uri: "https://www.rubydoc.info/gems/plain-merge/7.1.22"
361
361
  funding_uri: "https://github.com/sponsors/pboling"
362
362
  wiki_uri: "https://github.com/structuredmerge/structuredmerge-ruby/wiki"
363
363
  news_uri: "https://www.railsbling.com/tags/plain-merge"
metadata.gz.sig CHANGED
Binary file