asciisourcerer 0.2.0 → 0.2.1

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +49 -13
  3. data/lib/sourcerer/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ed8f8523d54a5f1627241552ea3ed79513e7721d4b615622f37c149f797b236
4
- data.tar.gz: 8a926eac14aa811b7b573bd61cd5eb209900fa77551c5330c4581133148a3faa
3
+ metadata.gz: abee321c7941006227f85f6a006a9b6ea795f8bcfd0e5c3a5837b11400e43a23
4
+ data.tar.gz: 92dc5d0bfb4435f1d1a42a558ed1aa975d297aff3201a4cd40266da21e86f816
5
5
  SHA512:
6
- metadata.gz: 5467d009399728b3e251ee96cace5279a99c27aa5eaa45605dddbdd10ec2758da39e741212fb9d193db9480ad7029d429150832c8d33391839e5fa2ad719e38d
7
- data.tar.gz: c592774a5427067c102ade751fbbc8e77e899afec0d327bce0ae8a2c0101d684f0b27e818f778fa4a065a93a756bb887e976d1e7352ba1eae21a8bbb6cd9fd96
6
+ metadata.gz: 70c932c2a7875d27cec949952bc413dce9c240fe19f8fabbcd756bfa1c94d970d0d9d217538d68c2fb7325b4040dc9cae4ad71fa4c595ab89a8ffa6b650aab1d
7
+ data.tar.gz: 39b7c3e368ed5149012f4e07d6c33809d6b11e5e82e75f8562ab5edae9fde98b32928407801cdd6941951d375ac488c008b2857d3378a2115c4767b398194f1a
data/README.adoc CHANGED
@@ -39,7 +39,7 @@ endif::[]
39
39
  :this_prod_vrsn_major: 0
40
40
  :this_prod_vrsn_minor: 2
41
41
  :this_prod_vrsn_majmin: {this_prod_vrsn_major}.{this_prod_vrsn_minor}
42
- :this_prod_vrsn_patch: 0
42
+ :this_prod_vrsn_patch: 1
43
43
  :this_prod_vrsn: {this_prod_vrsn_majmin}.{this_prod_vrsn_patch}
44
44
  :next_prod_vrsn: 0.3.0
45
45
  // end::global-settings[]
@@ -482,7 +482,7 @@ Merges a user-supplied list into a default list using `+`/`-` amendment tokens.
482
482
  .Require
483
483
  [source,ruby]
484
484
  ----
485
- require 'sourcerer/util/list_amendment'
485
+ require 'sourcerer/util/list_amend'
486
486
  ----
487
487
 
488
488
  .API
@@ -545,15 +545,15 @@ result = Sourcerer::Util::Pathifier.match(input, recursive: true, include_dirs:
545
545
  ----
546
546
 
547
547
  Classification rules::
548
- `:file`::: `File.file?(input)` is true.
549
- `:dir`::: `File.directory?(input)` is true.
550
- `:glob`::: Input contains glob metacharacters (`* ? [ ] { }`).
551
- `:missing`::: None of the above.
548
+ `:file`::: `File.file?(input)` is true.
549
+ `:dir`::: `File.directory?(input)` is true.
550
+ `:glob`::: Input contains glob metacharacters (`* ? [ ] { }`).
551
+ `:missing`::: None of the above.
552
552
 
553
553
  Options::
554
- `recursive`::: Traverse directories recursively via `Find.find` (default: `true`).
555
- `include_dirs`::: Also yield directory paths during traversal (default: `false`).
556
- `follow_symlinks`::: Follow symlink directories during recursion (default: `false`).
554
+ `recursive`::: Traverse directories recursively via `Find.find` (default: `true`).
555
+ `include_dirs`::: Also yield directory paths during traversal (default: `false`).
556
+ `follow_symlinks`::: Follow symlink directories during recursion (default: `false`).
557
557
 
558
558
  .Examples
559
559
  [source,ruby]
@@ -669,18 +669,24 @@ The link:{docopslab_src_www_url}/lab/tree/main/gems/docopslab-dev/README.adoc[Do
669
669
  === API Design
670
670
 
671
671
  The API is designed to be stable and backward-compatible, with a clear deprecation path for any breaking changes.
672
- The top-level `Sourcerer.*` methods are deprecated in favor of direct namespace usage (`Sourcerer::Yaml`, `Sourcerer::AsciiDoc`, `Sourcerer::Rendering`, `Sourcerer::Sync`), which will be removed in version 1.0.
672
+ The top-level `Sourcerer.*` methods are deprecated in favor of direct namespace usage (`Sourcerer::Yaml`, `Sourcerer::AsciiDoc`, `Sourcerer::Rendering`), which will be removed in version 1.0.
673
673
 
674
674
  Do not add new public methods directly to the `Sourcerer` namespace;
675
675
  instead, add them to the appropriate submodule.
676
676
 
677
- Ruby API shape policy::
677
+ [[api-shape-policy]]
678
+ ==== Ruby API shape policy
679
+
678
680
  Use singleton methods (`def self.*`) on namespace modules for stateless primitives.
681
+
679
682
  Use classes when behavior is naturally stateful or lifecycle-driven.
683
+
680
684
  Use mixin modules for host-integration surfaces (for example, Liquid filters/tags) where the host expects instance methods.
681
- For mixin modules, keep public entrypoints as thin wrappers and place transformation logic in an internal helper module/object.
685
+ Keep public entrypoints as thin wrappers and place transformation logic in an internal helper module/object.
686
+
687
+ [[visibility-policy]]
688
+ ==== Visibility policy
682
689
 
683
- Visibility policy::
684
690
  Use `private_class_method` for singleton helper methods defined with `def self.*`.
685
691
  Use `private` for instance helper methods in classes or mixins.
686
692
  Avoid exporting helper methods as accidental public API.
@@ -705,6 +711,36 @@ Run the PR/CI test suite:
705
711
  [.prompt]
706
712
  bundle exec rake pr_test
707
713
 
714
+ [[release-process]]
715
+ === Release Process and History
716
+
717
+ AsciiSourcerer is intended to be the most primal gem in the DocOps Lab pool.
718
+ As such, its development is less formal.
719
+
720
+ Each release is tested against all downstream gems and tools, but we are somewhat less formal about issue tracking and development branch management, at least in early stages.
721
+
722
+ Standard release flow:
723
+
724
+ . Update version in `lib/sourcerer/version.rb` and `README.adoc` attributes.
725
+
726
+ . Commit to Git.
727
+
728
+ . Push to GitHub.
729
+
730
+ . Run `./scripts/build.sh` to validate the environment, run tests, and build the gem file to `pkg/`.
731
+
732
+ . Publish to RubyGems.
733
+ +
734
+ RUBYGEMS_API_KEY=<rubygems.org key> ./scripts/publish.sh
735
+
736
+ . Tag the release in Git:
737
+ +
738
+ [.prompt,subs=+attributes]
739
+ git tag v{this_prod_vrsn} && git push origin v{this_prod_vrsn}`.
740
+
741
+ [NOTE]
742
+ AsciiSourcerer does not yet publish a release history document.
743
+
708
744
 
709
745
  [[legal]]
710
746
  == Legal
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sourcerer
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciisourcerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocOps Lab