github_bus_factor 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 61e345b8761d9a99bde28e928f19c0aca2c87df3
4
- data.tar.gz: f66abf0e0782317be6c99039582097f5948c3fdf
3
+ metadata.gz: a5c5b085e00f9ffdd929a7eb84daf8f715dd18b6
4
+ data.tar.gz: 87ece193f2752fd0d33185da6ad45996c0954bac
5
5
  SHA512:
6
- metadata.gz: a0725b63144cba98ee30dce3c5524e45adc9f12c85981366b3c6c7d263713b1df8ce79a16b5cb54258cd62df4ae3ef6c12f4be1a65ead218e386205956a4f9eb
7
- data.tar.gz: 4a269513237988f5f1fd691e500429ad750a9e60e35a9dcdec1f4add19424b69f742b2604873e1f44bbe2c485d7d3634b8216a40acb9da481b23875a3e02c56c
6
+ metadata.gz: 99edffe871b7f0f3635f1ee95666b1b6e21f65977c4ad3be8d6fe6548d4c36e6e4ba9173ceb9d1849eb6c2ed78b43918fdaa7b6ae36ac4b2d96eafefb7e91043
7
+ data.tar.gz: 54db9a99c9f11b92a9a868a8eb3d28fd0ff6df4d1a7f395117a1bf82d3520a7fdef379a9ae69287eb1cbf00d3a8e8109d70e6b2d9e6ff36d0aeb63a8ef0ffba3
@@ -1,3 +1,3 @@
1
1
  module GitHubBusFactor
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -62,11 +62,20 @@ command :fetch do |c|
62
62
  c.option '--verbose', 'Add extra logging'
63
63
  c.action do |args, options|
64
64
  # owner / repo
65
- throw "Expect owner/repo as an argument" unless args.count == 1
65
+ unless args.count == 1
66
+ log "Usage: github_bus_factor owner/repo"
67
+ exit
68
+ end
66
69
  matches = args.first.match(/^(.+)\/(.+)$/)
67
- throw "Expect owner/repo as an argument" unless !matches.nil?
70
+ unless !matches.nil?
71
+ log "Usage: github_bus_factor owner/repo"
72
+ exit
73
+ end
68
74
  ownerName, repoName = matches.captures
69
- throw "Expect owner/repo as an argument" if ownerName.nil? || ownerName.empty? || repoName.nil? || repoName.empty?
75
+ if ownerName.nil? || ownerName.empty? || repoName.nil? || repoName.empty?
76
+ log "Usage: github_bus_factor owner/repo"
77
+ exit
78
+ end
70
79
 
71
80
  # Token
72
81
  tokenPassword = Security::GenericPassword.find(service: KEYCHAIN_SERVICE)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_bus_factor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sash Zats