kirin_http 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f38178916012eec66ddf3d608517c45224431f6a187291f04dbb8e420f43093b
4
- data.tar.gz: 91d693248337ccddb5a74143df44eb3c5a641c36645357548c23af698cb413bc
3
+ metadata.gz: c9dc6ffd55b18537229dbad28bd8f9bb56b1e2d50a51f84172c996de348c5c86
4
+ data.tar.gz: 6a546950fad80ac3cab6ac1b2a27e22d2afaa430c297a6d973fa96526663fe32
5
5
  SHA512:
6
- metadata.gz: bb1df63a4976c643748768ff487c252064b9af476b3c96b8149db06ffe1bbd01b0817db926acfde07ecc54ec2c4bd516f083410295ce5a998e36a65f384dc904
7
- data.tar.gz: 4f9651a9c8f6c4459238ed2f7b015a60f4171b7386b31b90e8fb34e3adc101fc7483d34616106a1ef2b97196cc35180e57c5e27c1ac3a919a2a08a7b791b7c2d
6
+ metadata.gz: bfad0234669bbea3ac8333de654558a3ab137038e871885a6358fb92140b7203fb88a648e3e8e2cd3f968a992b30d80ef82ea72119c6d52ababb129165e5d47b
7
+ data.tar.gz: 18449a15a115fd6c3e081abaee7ebb2abc47a42320426e54c0c461de1d4bcf2da16d1c3f0b1e5fbfaaebc55b4e0451925fa3a783d6bd1355943fd785c7f943fc
@@ -1,3 +1,5 @@
1
+ require "net/http"
2
+
1
3
  module KirinHttp
2
4
  class Client
3
5
  # Sends the http message
@@ -31,7 +33,7 @@ module KirinHttp
31
33
  req = type.new(request.path, request.header)
32
34
  req.body = request.content unless request.content.nil?
33
35
  resp = http.request(req)
34
- Response.new(resp.body, resp.to_hash, resp.code)
36
+ Response.new(resp.body, resp.to_hash, resp.code.to_i)
35
37
  end
36
38
  end
37
39
 
@@ -1,3 +1,3 @@
1
1
  module KirinHttp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kirin_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kirinnee