qiita-sdk 0.6.0 → 0.7.0

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: 2716dbba91a8409b7ce9d46224d0a4ece49295afdb823247051397d9c16a845e
4
- data.tar.gz: f3e95589615131bfd2f81ffeaec87b38d31a85d55493d24772d6dd6a85596b8f
3
+ metadata.gz: 5fb7f4ead0fdfd705c05a7beb92f889dd8e870250e70f915c5670c3b0a0c368f
4
+ data.tar.gz: ce242595daad20cae3f1734d1b6367e83616a07fb9b8a02bf3627ea3edf40c6b
5
5
  SHA512:
6
- metadata.gz: 0e5f0c1e411c30547513a461603056a63492677a33c3e75ea6a236b6c8f1214a0f611a9752ee705b2201d91c1111298e0b90fca671d73a5a8adca9c4549e231d
7
- data.tar.gz: 69741e730d90d4d00d35c2e2162c6342ab2990b122485eec5c0a73b543b07fd3fe4a20470b60237832689acf58ba43d19ec9122991bf60b20df04880c89eacc3
6
+ metadata.gz: 147c97a2fe2bfdee4f08e9ccbb2deec3200888e4996fcff5303d62747a68e413298717aa9c9bbc9a95077473c9245f7c96410ecda360e3808bb116bf60cb27a3
7
+ data.tar.gz: 0e0a25442d373f6bd125aaa829c64a6e1cbf314463bac95205c116d3f655669105b180d7d903e90530e9c0cfd3057f903bd12ad80e4ff3e977b4cb04dd2cc897
@@ -32,25 +32,25 @@ module Qiita
32
32
  headers
33
33
  end
34
34
 
35
- def get(path, params)
35
+ def get(path, params = {})
36
36
  url = endpoint + path
37
37
  httpclient = HTTPClient.new
38
38
  httpclient.get(url, params, headers)
39
39
  end
40
40
 
41
- def patch(path, params)
41
+ def patch(path, params = {})
42
42
  url = endpoint + path
43
43
  httpclient = HTTPClient.new
44
44
  httpclient.patch(url, params.to_json, headers)
45
45
  end
46
46
 
47
- def put(path, params)
47
+ def put(path, params = {})
48
48
  url = endpoint + path
49
49
  httpclient = HTTPClient.new
50
50
  httpclient.put(url, params)
51
51
  end
52
52
 
53
- def post(path, params)
53
+ def post(path, params = {})
54
54
  url = endpoint + path
55
55
  httpclient = HTTPClient.new
56
56
  httpclient.post(url, params.to_json, headers)
@@ -1,5 +1,5 @@
1
1
  module Qiita
2
2
  module Sdk
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.7.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sibakeny
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-05 00:00:00.000000000 Z
11
+ date: 2020-09-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: qiita sdk for ruby
14
14
  email: