rsk_snitch 0.1.0 → 0.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
  SHA1:
3
- metadata.gz: 9cf6d2df8c8ec6401be90d2def3099268a0946d9
4
- data.tar.gz: d379775ce897b2ca15f51f60ac0bb266455af9f8
3
+ metadata.gz: 2d918e04f319d5c047cc07a4797c61474fe2faa1
4
+ data.tar.gz: 99d066a75bd3a84b287e41bd03c180ad8301c1aa
5
5
  SHA512:
6
- metadata.gz: 60a1e0466923f226d090aaf41ac45fb900c708af7a4156f72a2a393eddbfe617645b460a27f079b307efc74f9dd8b4ae3b1bf326dc55cfc50fe23208e036c65d
7
- data.tar.gz: e3b041489a77eae0161c7d19061fc2b2fb0435b2b4372c367ce3a436f81ad3af193ef590c2b7059b8a6937ab817ab5eedb8cc9f77e9250a9eaaf9e664a7a5a2b
6
+ metadata.gz: a1796ebcf1c14e26e7e71433173b5caf586e6e29c00aff3c8613db6988935d266f8eee993caea419c94a65d1654bef0b596a0b2283085a37e6a0a9e08bf6a57f
7
+ data.tar.gz: 1efd0208bce14e5bb10f148425bdd62fbd2b4749ea087cb08e01311e432fdaa2f9f8fb77497f192d518c97a8fbc04fb0aebeb7e76ddf989296bc72efda4b6fc3
@@ -1,3 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "rsk_snitch"
3
+ require 'rsk_snitch'
4
+
5
+ puts "Looking for a node with id #{ARGV[0]}, this may take a while."
6
+
7
+ if RskSnitch::Nodes.up?(ARGV[0], 10)
8
+ puts "Found it"
9
+ exit 0
10
+ else
11
+ puts "Not found"
12
+ exit 1
13
+ end
14
+
@@ -1,3 +1,3 @@
1
1
  module RskSnitch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["yo@nubis.im"]
11
11
 
12
12
  spec.summary = %q{Check if a node is reporting stats in stats.rsk.co}
13
- spec.description = %q{Check if a node is reporting stats in stats.rsk.co. Can be used as lib or executable.}
13
+ spec.description = %q{Check if a node is reporting stats in stats.rsk.co}
14
14
  spec.homepage = "https://github.com/bitex-la/rsk-snitch"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsk_snitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nubis
@@ -122,8 +122,7 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.0'
125
- description: Check if a node is reporting stats in stats.rsk.co. Can be used as lib
126
- or executable.
125
+ description: Check if a node is reporting stats in stats.rsk.co
127
126
  email:
128
127
  - yo@nubis.im
129
128
  executables:
@@ -139,7 +138,6 @@ files:
139
138
  - README.md
140
139
  - Rakefile
141
140
  - bin/console
142
- - bin/rsk_snitch
143
141
  - bin/setup
144
142
  - exe/rsk_snitch
145
143
  - lib/rsk_snitch.rb
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rsk_snitch'
4
-
5
- puts "Looking for a node with id #{ARGV[0]}, this may take a while."
6
-
7
- if RskSnitch::Nodes.up?(ARGV[0], 10)
8
- puts "Found it"
9
- exit 0
10
- else
11
- puts "Not found"
12
- exit 1
13
- end
14
-