octokitty 1.0.0 → 1.0.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/.gitignore +2 -1
- data/bin/octokitty +3 -9
- data/octokitty.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2235a1d441812ee48c8db821a9882f0e0193b628
|
|
4
|
+
data.tar.gz: f082151ea5d7366c4fca2bf7bb257ed1c15c3ca5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7ba721d1cdb8c3facca3bff880bcbf12dd5401cb907359c9a42d24bcf2e472d5a316ab5efd87609233a6e72be6ed71fe52be3d45f95fef55be1387038903889
|
|
7
|
+
data.tar.gz: 2bee644db67fab320b12811ec6b23996a0c6f0c8beefd888b5232b7dab90947b5514e3ef38758e4bde57cdfc6ed938757c63a327c0ee55b2e57da7f0e0f2e409
|
data/.gitignore
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
vendor/**
|
|
1
|
+
vendor/**
|
|
2
|
+
*.gem
|
data/bin/octokitty
CHANGED
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
require 'octokit'
|
|
4
4
|
require 'json'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
def github
|
|
8
|
-
@github ||= Octokit::Client.new auto_paginate: true, access_token: ENV.fetch('GITHUB_ACCESS_TOKEN')
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
github = OctoKiTTY.new.github
|
|
13
|
-
|
|
6
|
+
github = Octokit::Client.new auto_paginate: true, access_token: ENV.fetch('GITHUB_ACCESS_TOKEN')
|
|
14
7
|
command = File.basename($0).gsub('-', '_')
|
|
15
8
|
|
|
16
9
|
if command == 'octokitty'
|
|
@@ -31,4 +24,5 @@ if arguments.length < required.length
|
|
|
31
24
|
exit false
|
|
32
25
|
end
|
|
33
26
|
|
|
34
|
-
|
|
27
|
+
response = github.method(command).call(*arguments, options)
|
|
28
|
+
puts JSON.dump(response.class == Sawyer::Resource ? response.to_h : response.map(&:to_h))
|
data/octokitty.gemspec
CHANGED