qiita_org 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qiita_org/get.rb +13 -5
- data/lib/qiita_org/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bb85efad88dee4bf4f1e6516b492da4c91e49e957c7125826367cc83f99249b
|
4
|
+
data.tar.gz: c4acfb2d0b07099a154fe9f0bda5293901614baf42bed61d6d54b3af0f78068e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaa82eb2bb51cf9c0a5f223c451475d54419638e25c49a933b872cfe6c5e71486b85292b61e4c6366d70f19eea3f83d8c6ea38028eb3e95a58a453b0482e80ae
|
7
|
+
data.tar.gz: 387089efb347315589648aebbb144d773a85a20654b037bb16848051b79e98c0b928d10d294ad950669f1536ba821f7395828b644efd76be23e8ef3b74efda6f
|
data/Gemfile.lock
CHANGED
data/lib/qiita_org/get.rb
CHANGED
@@ -40,11 +40,19 @@ class QiitaGet
|
|
40
40
|
headers = { "Authorization" => "Bearer #{@access_token}",
|
41
41
|
"Content-Type" => "application/json" }
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
begin
|
44
|
+
response = URI.open(
|
45
|
+
"#{uri}",
|
46
|
+
"Authorization" => "#{headers["Authorization"]}",
|
47
|
+
)
|
48
|
+
#raise "NOT FOUND: # {@get_id} report".red
|
49
|
+
rescue => e
|
50
|
+
puts "#{$!}".red
|
51
|
+
exit
|
52
|
+
else
|
53
|
+
p response
|
54
|
+
@items = JSON.parse(response.read)
|
55
|
+
end
|
48
56
|
end
|
49
57
|
|
50
58
|
# select report
|
data/lib/qiita_org/version.rb
CHANGED