ruby-client 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nimiq.rb +58 -0
- metadata +4 -14
- data/.gitignore +0 -8
- data/.travis.yml +0 -6
- data/Gemfile +0 -7
- data/LICENSE.txt +0 -21
- data/README.md +0 -40
- data/Rakefile +0 -10
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/ruby/client.rb +0 -11
- data/lib/ruby/client/version.rb +0 -5
- data/ruby-client.gemspec +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f91d1357cebee6d662eff00309fa181670968f188ae0d80b45e0212871baea1
|
4
|
+
data.tar.gz: 5a3e51a481c1f925e6cde7b8755fd16a11518371a1572f6f6f6e4811b9f60c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jxdv
|
@@ -24,24 +24,14 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.15'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
|
-
-
|
29
|
+
- root@localhost
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
-
|
35
|
-
- ".travis.yml"
|
36
|
-
- Gemfile
|
37
|
-
- LICENSE.txt
|
38
|
-
- README.md
|
39
|
-
- Rakefile
|
40
|
-
- bin/console
|
41
|
-
- bin/setup
|
42
|
-
- lib/ruby/client.rb
|
43
|
-
- lib/ruby/client/version.rb
|
44
|
-
- ruby-client.gemspec
|
34
|
+
- lib/nimiq.rb
|
45
35
|
homepage: https://github.com/jxdv/ruby-client
|
46
36
|
licenses:
|
47
37
|
- Apache-2.0
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2020 TODO: Write your name
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# Ruby::Client
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby/client`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'ruby-client'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install ruby-client
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby-client.
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "ruby/client"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/lib/ruby/client.rb
DELETED
data/lib/ruby/client/version.rb
DELETED
data/ruby-client.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# lib = File.expand_path("lib", __dir__)
|
2
|
-
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
# require "nimiq/version"
|
4
|
-
require_relative "lib/ruby/client/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "ruby-client"
|
8
|
-
spec.version = Ruby::Client::VERSION
|
9
|
-
spec.authors = ["jxdv"]
|
10
|
-
spec.email = ["name@email.address"]
|
11
|
-
|
12
|
-
spec.summary = %q{Ruby implementation of the Nimiq RPC client specifications.}
|
13
|
-
spec.description = %q{Write a longer description or delete this line.}
|
14
|
-
spec.homepage = "https://github.com/jxdv/ruby-client"
|
15
|
-
spec.license = "Apache-2.0"
|
16
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
17
|
-
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/jxdv/ruby-client"
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/jxdv/ruby-client/readme.md"
|
21
|
-
|
22
|
-
spec.add_dependency "oj", "~> 2.15"
|
23
|
-
|
24
|
-
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
end
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
end
|