pr-with-params 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pr/with/params/config_parser.rb +1 -1
- data/lib/pr/with/params/version.rb +1 -1
- data/lib/pr/with/params.rb +3 -1
- data/pr-with-params.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445be6f9d1bb4ce51a180ab2461e571f9493fe99a0449513368ebec0af97a452
|
4
|
+
data.tar.gz: f1f45b9f921973258461cdb61b61f058bf9ad7e60e3fe79043bff02804189e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b60aa172d6def35082fee5ac9826a6e155eaae786b1a2aa8a2eacde81448417a42883672f08b5defaaac41be40c725fba0d0084860b8b96df6d1b703a403d0
|
7
|
+
data.tar.gz: 4d651b5b57042e4d25daadabeb4088863cabf38d3106b0d12b10226973bfc0eb736b52223744fe8218cecb37963631ca6bf1d71bd5d5e06073fe27d39a67733c
|
data/Gemfile.lock
CHANGED
@@ -36,8 +36,8 @@ module PR
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def validate_file_type!
|
39
|
-
raise ArgumentError.new('Config file path is invalid or file does not exist.') unless file_exists?
|
40
39
|
raise TypeError.new('Config file type must be YAML (.yaml or .yml)') unless yaml_file?
|
40
|
+
raise ArgumentError.new("Config file path is invalid or file does not exist: #{config_file_path}") unless file_exists?
|
41
41
|
end
|
42
42
|
|
43
43
|
def yaml_file?
|
data/lib/pr/with/params.rb
CHANGED
@@ -20,7 +20,9 @@ module PR
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def parse_config(file_path, scope)
|
23
|
-
|
23
|
+
return {} if file_path.empty?
|
24
|
+
|
25
|
+
ConfigParser.new(config_file_path: file_path, scope: scope).parse!
|
24
26
|
rescue StandardError => e
|
25
27
|
error_message = {
|
26
28
|
message: "Error parsing config file. Using defaults",
|
data/pr-with-params.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "Pushes current local branch to remote with upstream at origin/[local-branch-name]. It also opens a new pull request browser window at a URL with customized query params, based on specified options, which pre-populates certain fields in the pull request. This is especially useful when supporting multiple PR templates within a code base."
|
12
12
|
spec.homepage = "https://github.com/2k-joker/pr-with-params"
|
13
|
+
spec.licenses = ["MIT"]
|
13
14
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
15
|
|
15
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pr-with-params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 2k-joker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -35,7 +35,8 @@ files:
|
|
35
35
|
- lib/pr/with/params/version.rb
|
36
36
|
- pr-with-params.gemspec
|
37
37
|
homepage: https://github.com/2k-joker/pr-with-params
|
38
|
-
licenses:
|
38
|
+
licenses:
|
39
|
+
- MIT
|
39
40
|
metadata:
|
40
41
|
homepage_uri: https://github.com/2k-joker/pr-with-params
|
41
42
|
post_install_message:
|