near_api 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa4a1b8997930d0b94e6a6a748a47cf5da7f1f80b5538e284b9d332f74429037
4
- data.tar.gz: c00578f5f62af686602a4b7f87f9ecc713d419a4cc7d7cb8d663597d54245642
3
+ metadata.gz: e76e031c4fe62f157e985fab73174bebe2322b2b03f18e49cca7eb145475206b
4
+ data.tar.gz: a5ec1a25f334e8ec6bf0e278260cac5c20bae0f27238dc63e9f04d95d2bc0384
5
5
  SHA512:
6
- metadata.gz: 215dced20e4c338fa050e4f6d25e6b7f62511db23056bf9aaaa849d53eadebf7af4151f01b2921ff767cf54c79a9c29525470ebfabd64ed571b552c69eec1f00
7
- data.tar.gz: ba78a6b6935a1d6e891ea3edb7872fd544a539301c53a61ddbc904f2cc5723f89e210aaebf9d734c022b8e4f66a78120d9e65b8b7809fbeccebda4ce01e18ece
6
+ metadata.gz: 57ce82c7da5333399dd35662dbd51b874ccdcc80f53e82276152fb101683b288f62483a8b025f66c3ddc352eca9f84b93b6292e237a94b36ac236a53b2f85d4b
7
+ data.tar.gz: a83b8d65267fd4ef95b5a7f9c3c23d357e5ee737998a520feeb96d5e5790641d127a8afab6feb8bf94b582b6639912322136a42986a5a1090c44e231436145da
data/lib/near_api/api.rb CHANGED
@@ -65,7 +65,7 @@ class NearApi::Api
65
65
  }
66
66
 
67
67
  uri = URI.parse(config.node_url)
68
- req = Net::HTTP::Post.new(uri.to_s)
68
+ req = Net::HTTP::Post.new(uri.path == '' ? '/' : uri.path)
69
69
  req.body = json_rpc_payload.to_json
70
70
  req['Content-Type'] = 'application/json'
71
71
  response = Net::HTTP.new(uri.host, uri.port).tap { |http| http.use_ssl = true }.request(req)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NearApi
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: near_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serg Tyatin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: borsh-rb
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.2.22
127
+ rubygems_version: 3.3.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: NEAR blockchain ruby API