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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f74d0df43412d097d373189e16f97c9c42ddf06c36d3572965f981c92b567908
4
- data.tar.gz: 1b40f0e1da6dbc4c9bd1ad6d55a023c3d5b37906630144da42ff8ef984c30432
3
+ metadata.gz: 9f91d1357cebee6d662eff00309fa181670968f188ae0d80b45e0212871baea1
4
+ data.tar.gz: 5a3e51a481c1f925e6cde7b8755fd16a11518371a1572f6f6f6e4811b9f60c81
5
5
  SHA512:
6
- metadata.gz: 783734f65efdb41e8931c8988b681487118d6cffa378248e8d1f70b9480e96c17d947ac6ddca758d4d5054c91a997eb8d0cd21a2c0d3de4c03b99bc7e170c5e7
7
- data.tar.gz: 162aee07d62082e8a1cbf51d128bfe8a270b6eaca254d3ce4867ab45c3b67187777f956ae0ebb50e9c7091e1068253282f604b82993500c4721736514f130619
6
+ metadata.gz: 94936b259bd28aa4011861b39b6569a6950fb712bd0c74cee23650e8294440f79de092d973db808d071b978e1d71096118e0a67898c76261f80d8e948c5a9faa
7
+ data.tar.gz: 1c117e1ca9bbd5c7ad090b0d89910ad278625513bdfd0a2998694ef3bb7a1f1f6055c77bb4fb38ae68307dbbcd8596554ffcd0c856084aa8a14c649ecfdfdf52
@@ -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.0
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: Write a longer description or delete this line.
27
+ description:
28
28
  email:
29
- - name@email.address
29
+ - root@localhost
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".gitignore"
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
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.6
6
- before_install: gem install bundler -v 2.1.4
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in ruby-client.gemspec
4
- gemspec
5
-
6
- gem "rake", "~> 12.0"
7
- gem "minitest", "~> 5.0"
@@ -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
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test
@@ -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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,11 +0,0 @@
1
- require "client/version"
2
-
3
- module Nimiq
4
- class Error < StandardError; end
5
-
6
- class Client
7
- def world
8
- puts "hey world"
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- module Ruby
2
- module Client
3
- VERSION = "1.1.0"
4
- end
5
- end
@@ -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