gist 4.4.0 → 4.4.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/bin/gist +1 -0
- data/lib/gist.rb +7 -4
- 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: c154966f285a79263f14498695afd85e8db74292
|
4
|
+
data.tar.gz: 85d674e7b3aea4dc2f43a021b14452cbcd0c0d00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7462a1f302e37d2ae64805e95cfe6783c9f50b5c1c3668e4f24adf30e872bb806f176370da575f84a1f06d46d53528dfdb550e99017ced2593ad87db7ee08cef
|
7
|
+
data.tar.gz: fb8981e8d31d31f7549b3da10dd3d6c2d5a3321fbcb8faac11457afce188eaa076683c846146c8933d6d7334abd4dcbba8a1debd40513a407c7ff57518ee1bc8
|
data/bin/gist
CHANGED
data/lib/gist.rb
CHANGED
@@ -12,7 +12,7 @@ end
|
|
12
12
|
module Gist
|
13
13
|
extend self
|
14
14
|
|
15
|
-
VERSION = '4.4.
|
15
|
+
VERSION = '4.4.1'
|
16
16
|
|
17
17
|
# A list of clipboard commands with copy and paste support.
|
18
18
|
CLIPBOARD_COMMANDS = {
|
@@ -152,6 +152,7 @@ module Gist
|
|
152
152
|
# otherwise list public gists for given username (optional argument)
|
153
153
|
#
|
154
154
|
# @param [String] user
|
155
|
+
# @deprecated
|
155
156
|
#
|
156
157
|
# see https://developer.github.com/v3/gists/#list-gists
|
157
158
|
def list_gists(user = "")
|
@@ -187,14 +188,14 @@ module Gist
|
|
187
188
|
if user == ""
|
188
189
|
access_token = auth_token()
|
189
190
|
if access_token.to_s != ''
|
190
|
-
url << "/gists?
|
191
|
+
url << "/gists?per_page=100&taccess_token=" << CGI.escape(access_token)
|
191
192
|
get_gist_pages(url)
|
192
193
|
else
|
193
194
|
raise Error, "Not authenticated. Use 'gist --login' to login or 'gist -l username' to view public gists."
|
194
195
|
end
|
195
196
|
|
196
197
|
else
|
197
|
-
url << "/users/#{user}/gists"
|
198
|
+
url << "/users/#{user}/gists?per_page=100"
|
198
199
|
get_gist_pages(url)
|
199
200
|
end
|
200
201
|
|
@@ -225,7 +226,9 @@ module Gist
|
|
225
226
|
body = JSON.parse(response.body)
|
226
227
|
if response.code == '200'
|
227
228
|
body.each do |gist|
|
228
|
-
|
229
|
+
description = "#{gist['description'] || gist['files'].keys.join(" ")} #{gist['public'] ? '' : '(secret)'}"
|
230
|
+
puts "#{gist['html_url']} #{description.tr("\n", " ")}\n"
|
231
|
+
$stdout.flush
|
229
232
|
end
|
230
233
|
|
231
234
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Conrad Irwin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|