qiita_org 0.1.19 → 0.1.20

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
  SHA256:
3
- metadata.gz: 48c7ed2d91e672109554b42ca394d251f6c43e820ecdaecf9954390b891c750e
4
- data.tar.gz: b07304fcad2dab5c3151fabef9ea561a3c0144d1db52dc6aee01a778a7cbd1f6
3
+ metadata.gz: 0bb85efad88dee4bf4f1e6516b492da4c91e49e957c7125826367cc83f99249b
4
+ data.tar.gz: c4acfb2d0b07099a154fe9f0bda5293901614baf42bed61d6d54b3af0f78068e
5
5
  SHA512:
6
- metadata.gz: 03d49d5477a852efb7ad002748fc684ec84373d88c7f10a5a452711b1725c05f2ade168215ad5eec18accfa9617e15600259caab7e56c55f756450336cf4c382
7
- data.tar.gz: 5af068bc255f81b4d0afcda540e998933c0317fbfe537d27f3cf75070b17bce10dc3e9c4aafb2a857c2e8d66690291b2a8197021f30f5dcf0357d03c417ad679
6
+ metadata.gz: eaa82eb2bb51cf9c0a5f223c451475d54419638e25c49a933b872cfe6c5e71486b85292b61e4c6366d70f19eea3f83d8c6ea38028eb3e95a58a453b0482e80ae
7
+ data.tar.gz: 387089efb347315589648aebbb144d773a85a20654b037bb16848051b79e98c0b928d10d294ad950669f1536ba821f7395828b644efd76be23e8ef3b74efda6f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiita_org (0.1.18)
4
+ qiita_org (0.1.19)
5
5
  colorize
6
6
  command_line (> 2.0.0)
7
7
  fileutils
@@ -40,11 +40,19 @@ class QiitaGet
40
40
  headers = { "Authorization" => "Bearer #{@access_token}",
41
41
  "Content-Type" => "application/json" }
42
42
 
43
- response = URI.open(
44
- "#{uri}",
45
- "Authorization" => "#{headers["Authorization"]}",
46
- )
47
- @items = JSON.parse(response.read)
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
@@ -1,3 +1,3 @@
1
1
  module QiitaOrg
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Yamamoto