near_api 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/near_api/actions/function_call.rb +1 -1
- data/lib/near_api/api.rb +1 -1
- data/lib/near_api/version.rb +1 -1
- data/lib/near_api.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3321406fa6e93eb872d618a950f3d8e38f50a7f20c8398038b03ed0a11a286b7
|
4
|
+
data.tar.gz: c861d3af27c33b26d3b40f9e36c964cf703a41e73d6866ff7b9a8fb7eb123964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d2cf490753804dcaf32ec7f3b2503e8588fe58ecaa11978f5b384cbc72ca778202da6b452b7ede3f541ed517fb8851cad92fcabfef0f02734e076d6c5884e41
|
7
|
+
data.tar.gz: '0338419ebd09175aaa6644011f45be6e371851ca46c2f3a3f1153b8873ddecbc1fcb919012be8373f6a5c5b1dfa4f917082fafe1b234956ddda16f80b20f31a6'
|
@@ -13,7 +13,7 @@ module NearApi
|
|
13
13
|
|
14
14
|
def initialize(method_name, args, gas: 100_000_000_000_000, amount: 0)
|
15
15
|
@method_name = method_name
|
16
|
-
@args = args.is_a?(String) ? args : args.to_json
|
16
|
+
@args = args.is_a?(::String) ? args : args.to_json
|
17
17
|
@gas = gas
|
18
18
|
@amount = amount
|
19
19
|
end
|
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.
|
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)
|
data/lib/near_api/version.rb
CHANGED
data/lib/near_api.rb
CHANGED
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.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serg Tyatin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-25 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.
|
127
|
+
rubygems_version: 3.3.7
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: NEAR blockchain ruby API
|