release_flow 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7b889dd512fd0e5aa6af560b92a2f6fe0e58d1c087c4731738405204e903037
4
- data.tar.gz: 03a63137a76d8b4f030814e740cce67498b0a94a8c2c5c259df445eaab1339b2
3
+ metadata.gz: 838070d87a038ef71d00635280b7cd4326567f8ba878e3e6895efde785961266
4
+ data.tar.gz: c4c03c1098ea43002d699181c23833edcebf1c01d4006bcdfd1050790bef4035
5
5
  SHA512:
6
- metadata.gz: 98fc8c51ed01ba688cfbabfbe47ddd4aa44ed484200000fef5329a726150086db3942c608a32f6b78198259f207e10d1180b68ad05a196ae58d52a5b1300371b
7
- data.tar.gz: 28a47976be60cfacc64414f4d56f9285dff442520bd951ae5ca928da474ab27ff38243a326cfee5c4cf9776707f5ddf9a380977a78b95c91ff549e3587c368f6
6
+ metadata.gz: bbff016206421588276c4ac066f4ce4345521019383341af9516b5af056293ae21219b549cf75b3c19f01e674b892f452571eefc58bcc9a4e1edbb68ab3f0998
7
+ data.tar.gz: eea0787b4c5055267a01aeee5bf97718a38d27adde19430e7b7559fe4dfceffb8fbcc4315c61c0f71f0d485391548bd395a3aa0d5a0e51d5480c45c4fef5e0b2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.1
6
+
7
+ - `ReleaseFlow::CLI.start` takes a `config:`, so a binstub can add a setting `.release_flow.yml` doesn't carry, such as a fork's template read from elsewhere; `--help` returns instead of exiting mid-parse.
8
+
5
9
  ## 0.1.0
6
10
 
7
11
  - First release: `bin/release prepare`, `cut`, `ship`, `merge-back` and `check`, extracted from ModelRails; `release_flow init` installs the binstub, the release workflow, the release PR template and the `changelog.d/` README.
@@ -7,14 +7,18 @@ module ReleaseFlow
7
7
  module CLI
8
8
  module_function
9
9
 
10
- def start(argv, root:)
11
- config = Config.load(root)
10
+ def start(argv, root:, config: nil)
11
+ config ||= Config.load(root)
12
12
  options = {}
13
- args = OptionParser.new do |o|
13
+ parser = OptionParser.new do |o|
14
14
  o.banner = "#{Release::USAGE} (see #{config.guide})"
15
15
  o.on("--dry-run", "Print the plan without changing anything") { options[:dry_run] = true }
16
16
  o.on("--if-needed", "prepare, cut: when there's nothing to do yet, say so and stop without failing") { options[:if_needed] = true }
17
- end.parse(argv)
17
+ o.on("-h", "--help", "Show this") { options[:help] = true }
18
+ end
19
+ args = parser.parse(argv)
20
+ return puts(parser.help) || 0 if options[:help]
21
+
18
22
  Release.new(options, root: root, config: config).run(*args)
19
23
  0
20
24
  rescue Error, OptionParser::ParseError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReleaseFlow
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: release_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Chmura