Skip to content

Commit b981aaf

Browse files
committed
patch: Properly align around module/file slugs
- Change `list_amendment` to `list_amendment` where not converted - Add test that properly checks for version parity between README and version.rb - Adjust release process docs in README
1 parent cc356e4 commit b981aaf

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
asciisourcerer (0.2.0)
4+
asciisourcerer (0.2.1)
55
asciidoctor (~> 2.0)
66
asciidoctor-html5s (~> 0.5)
77
jekyll (~> 4.4)

README.adoc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ endif::[]
3939
:this_prod_vrsn_major: 0
4040
:this_prod_vrsn_minor: 2
4141
:this_prod_vrsn_majmin: {this_prod_vrsn_major}.{this_prod_vrsn_minor}
42-
:this_prod_vrsn_patch: 0
42+
:this_prod_vrsn_patch: 1
4343
:this_prod_vrsn: {this_prod_vrsn_majmin}.{this_prod_vrsn_patch}
4444
:next_prod_vrsn: 0.3.0
4545
// end::global-settings[]
@@ -482,7 +482,7 @@ Merges a user-supplied list into a default list using `+`/`-` amendment tokens.
482482
.Require
483483
[source,ruby]
484484
----
485-
require 'sourcerer/util/list_amendment'
485+
require 'sourcerer/util/list_amend'
486486
----
487487

488488
.API
@@ -723,14 +723,21 @@ Standard release flow:
723723

724724
. Update version in `lib/sourcerer/version.rb` and `README.adoc` attributes.
725725

726+
. Commit to Git.
727+
728+
. Push to GitHub.
729+
726730
. Run `./scripts/build.sh` to validate the environment, run tests, and build the gem file to `pkg/`.
727731

732+
. Tag the release in Git:
733+
+
734+
[.prompt,subs=+attributes]
735+
git tag v{this_prod_vrsn} && git push origin v{this_prod_vrsn}`.
736+
728737
. Publish to RubyGems.
729738
+
730739
RUBYGEMS_API_KEY=<rubygems.org key> ./scripts/publish.sh
731740

732-
. Tag the release in Git: `git tag v<version> && git push origin v<version>`.
733-
734741
[NOTE]
735742
AsciiSourcerer does not yet publish a release history document.
736743

lib/sourcerer/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Sourcerer
4-
VERSION = '0.2.0'
4+
VERSION = '0.2.1'
55
end

specs/tests/rspec/ascii_sourcerer_alias_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
asciisourcerer_attrs = described_class.load_attributes(readme_path)
4545

4646
expect(asciisourcerer_attrs).to eq(sourcerer_attrs)
47-
expect(asciisourcerer_attrs['this_prod_vrsn']).to eq('0.2.0')
47+
expect(asciisourcerer_attrs['this_prod_vrsn']).to eq(Sourcerer::VERSION)
4848
end
4949
end
5050

File renamed without changes.

0 commit comments

Comments
 (0)