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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/release_flow/cli.rb +8 -4
- data/lib/release_flow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 838070d87a038ef71d00635280b7cd4326567f8ba878e3e6895efde785961266
|
|
4
|
+
data.tar.gz: c4c03c1098ea43002d699181c23833edcebf1c01d4006bcdfd1050790bef4035
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/lib/release_flow/cli.rb
CHANGED
|
@@ -7,14 +7,18 @@ module ReleaseFlow
|
|
|
7
7
|
module CLI
|
|
8
8
|
module_function
|
|
9
9
|
|
|
10
|
-
def start(argv, root:)
|
|
11
|
-
config
|
|
10
|
+
def start(argv, root:, config: nil)
|
|
11
|
+
config ||= Config.load(root)
|
|
12
12
|
options = {}
|
|
13
|
-
|
|
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
|
-
|
|
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
|
data/lib/release_flow/version.rb
CHANGED