sah 0.0.12 → 0.0.13
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/lib/sah/cli.rb +4 -4
- data/lib/sah/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 645a2ca8ff9b51859aae215349d4f8b48682b0b9
|
|
4
|
+
data.tar.gz: ff18f43f8fcd7f168893d789e96294e10a57e15a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f484c511d14a755f7bec965791a9f348db9b6163ebe6e5cc2ca8975376dc4c92c3bc4de82e915a0d3fe8e7ab40db4fadee2bc61ef8aaac3abb658e7c8273c953
|
|
7
|
+
data.tar.gz: 99dee4737fa360ff39d1db133d6d7be52cddb14ac9b86e0559c7ba5c0f46841744aaea7c6161b5a9919a6061c66dcb804b2040da15ec7000d7f043f06655081a
|
data/lib/sah/cli.rb
CHANGED
|
@@ -67,7 +67,7 @@ module Sah
|
|
|
67
67
|
abort res.body["errors"].first["message"]
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
url =
|
|
70
|
+
url = res.body["links"]["self"].first["href"]
|
|
71
71
|
|
|
72
72
|
if [options[:branch], options[:commit], options[:'pull-request']].compact.count > 1
|
|
73
73
|
abort "Multiple options (--branch, --commit, --pull-request) cannot be handled."
|
|
@@ -331,9 +331,9 @@ module Sah
|
|
|
331
331
|
upstream --add-remote [--fetch-pull-request] [--prevent-push] [--remote-name=REMOTE-NAME]
|
|
332
332
|
\x5# add upstream to remote settings
|
|
333
333
|
LONG_DESCRIPTION
|
|
334
|
-
method_option :"add-remote", desc: "Add a upstream repository to remote settings"
|
|
335
|
-
method_option :"fetch-pull-request", desc: "Fetch pull requests"
|
|
336
|
-
method_option :"prevent-push", desc: "Prevent push to upstream"
|
|
334
|
+
method_option :"add-remote", type: :boolean, desc: "Add a upstream repository to remote settings"
|
|
335
|
+
method_option :"fetch-pull-request", type: :boolean, desc: "Fetch pull requests"
|
|
336
|
+
method_option :"prevent-push", type: :boolean, desc: "Prevent push to upstream"
|
|
337
337
|
method_option :"remote-name", type: :string, default: "", desc: "Specify a remote name of upstream"
|
|
338
338
|
def upstream
|
|
339
339
|
upstream_url =
|
data/lib/sah/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- f440
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|