sah 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sah/cli.rb +4 -4
  3. data/lib/sah/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 393a7e6d9875efdaee240fb172dc5dc599093bb2
4
- data.tar.gz: 26d09b3e0890833aea94d1663e4c7e5c67e14767
3
+ metadata.gz: 645a2ca8ff9b51859aae215349d4f8b48682b0b9
4
+ data.tar.gz: ff18f43f8fcd7f168893d789e96294e10a57e15a
5
5
  SHA512:
6
- metadata.gz: d9fbc09cb692d722a82a067a2fb2376e0e3b1aae0e0e2478314326dcfe8417e6c79a694128ebc3fc94e05e3f1de7931b1ec2d5f33c76759310575e75e62c872a
7
- data.tar.gz: 4ecaa80f5c5bbc32ab86c5cf3ac5105ebd6ac5221c63ebfeb8a0f6e8659a2808f9b722fd3c44fd5964b4cdf591e4ee4fec7c71db32b5a6ccd36d9d6dcf61a8e6
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 = config.url + res.body["link"]["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
@@ -1,3 +1,3 @@
1
1
  module Sah
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.12
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-01-12 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor