ruby-client 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/nimiq.rb +58 -0
- metadata +61 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9f91d1357cebee6d662eff00309fa181670968f188ae0d80b45e0212871baea1
|
4
|
+
data.tar.gz: 5a3e51a481c1f925e6cde7b8755fd16a11518371a1572f6f6f6e4811b9f60c81
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 94936b259bd28aa4011861b39b6569a6950fb712bd0c74cee23650e8294440f79de092d973db808d071b978e1d71096118e0a67898c76261f80d8e948c5a9faa
|
7
|
+
data.tar.gz: 1c117e1ca9bbd5c7ad090b0d89910ad278625513bdfd0a2998694ef3bb7a1f1f6055c77bb4fb38ae68307dbbcd8596554ffcd0c856084aa8a14c649ecfdfdf52
|
data/lib/nimiq.rb
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# =begin
|
2
|
+
# Copyright 2020 Nimiq community.
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
# =end
|
16
|
+
|
17
|
+
# require_relative "nimiq/version"
|
18
|
+
# require_relative "rpcclient"
|
19
|
+
# require_relative "api"
|
20
|
+
# require "json"
|
21
|
+
|
22
|
+
# module Nimiq
|
23
|
+
# class Error < StandardError; end # :nodoc: all
|
24
|
+
|
25
|
+
# attr_reader :rpc # :nodoc: all
|
26
|
+
|
27
|
+
# class Client
|
28
|
+
# include Api
|
29
|
+
|
30
|
+
# def initialize(opts)
|
31
|
+
# return @rpc = ClientRPC::Connect.new(opts)
|
32
|
+
# puts "Connecting to #{@opts}"
|
33
|
+
# end
|
34
|
+
|
35
|
+
# # Sends a raw request to the Nimiq node.
|
36
|
+
# def request(name, params = nil)
|
37
|
+
# return @rpc.request(name, params)
|
38
|
+
# end
|
39
|
+
|
40
|
+
# # Ping the Nimiq node.
|
41
|
+
# def ping
|
42
|
+
# @rpc.ping_node
|
43
|
+
# @pingres = @rpc.instance_variable_get(:@pingres)
|
44
|
+
# end
|
45
|
+
# end
|
46
|
+
# end
|
47
|
+
|
48
|
+
require "nimiq/version"
|
49
|
+
|
50
|
+
module Nimiq
|
51
|
+
class Error < StandardError; end
|
52
|
+
|
53
|
+
class Client
|
54
|
+
def world
|
55
|
+
puts "hey world"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- jxdv
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: oj
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.15'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.15'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- root@localhost
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/nimiq.rb
|
35
|
+
homepage: https://github.com/jxdv/ruby-client
|
36
|
+
licenses:
|
37
|
+
- Apache-2.0
|
38
|
+
metadata:
|
39
|
+
homepage_uri: https://github.com/jxdv/ruby-client
|
40
|
+
source_code_uri: https://github.com/jxdv/ruby-client
|
41
|
+
changelog_uri: https://github.com/jxdv/ruby-client/readme.md
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 2.3.0
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubygems_version: 3.1.4
|
58
|
+
signing_key:
|
59
|
+
specification_version: 4
|
60
|
+
summary: Ruby implementation of the Nimiq RPC client specifications.
|
61
|
+
test_files: []
|