swmeetfetcha 0.0.1 → 0.0.2
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 +4 -4
- data/lib/a.rb +1 -0
- data/lib/data0.txt +30 -0
- data/lib/data1.txt +30 -0
- data/lib/data10.txt +30 -0
- data/lib/data11.txt +30 -0
- data/lib/data2.txt +30 -0
- data/lib/data3.txt +30 -0
- data/lib/data4.txt +30 -0
- data/lib/data5.txt +30 -0
- data/lib/data6.txt +30 -0
- data/lib/data7.txt +30 -0
- data/lib/data8.txt +30 -0
- data/lib/data9.txt +30 -0
- metadata +15 -5
- data/evil.rb +0 -22
- data/swmeetfetcha.gemspec +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90d41693a2baafd0dc607faaa27604cfda3bc516aee8af5dd752620f204ebbba
|
|
4
|
+
data.tar.gz: db568d8f33d081e51716ff0a9ce77511b16ff6ce468b55234021a870d66df9af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78492074f1ea5aef8c14ad290dd159a82294286fc57109ce8ed7d6fc565b496e0a5d02d15a41adfec1a8aaaa3afc07fb8d663bf5d3b9a40154971635bef7b74d
|
|
7
|
+
data.tar.gz: b95892e5223b9b7539c5474d9320759735a17686359301035d7d4c126a2aa87225758974dc8358d9321b0c29eafac6be9f1920d1b0c4d5e3b25deffc5d8c160c
|
data/lib/a.rb
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#x
|
data/lib/data0.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data1.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data10.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL http://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data11.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgFindMeeting.aspx?M=1&Y=2026
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data2.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data3.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?DR=26%2F01%2F2026-30%2F01%2F2026&ACT=Go&bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data4.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?MR=0&DL=0&DR=26%2F01%2F2026&ACT=Go&bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data5.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/ieDocHome.aspx?bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data6.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgWebService.asmx/GetMeetings?lCommitteeId=0&sFromDate=01%2F01%2F2026&sToDate=31%2F01%2F2026
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data7.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgWebService.asmx/GetMeetings?lCommitteeId=0&sFromDate=26%2F01%2F2026&sToDate=30%2F01%2F2026
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data8.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgWebService.asmx/GetCommittees
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
data/lib/data9.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
URL https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?C=-1&OT=&MR=0&D=27&M=1&Y=2026&ACT=Go&bcr=1
|
|
2
|
+
STATUS 403
|
|
3
|
+
HEADERS {"content-type"=>"text/html", "x-cua-mitm-error"=>"true", "content-length"=>"523"}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!DOCTYPE html>
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<title>Internal Server Error</title>
|
|
10
|
+
<style>
|
|
11
|
+
body {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1 {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#stack_trace {
|
|
20
|
+
white-space: pre;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<h1>This site has been blocked by network policy</h1>
|
|
27
|
+
<div id="stack_trace"></div>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swmeetfetcha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- z
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -13,9 +13,19 @@ executables: []
|
|
|
13
13
|
extensions: []
|
|
14
14
|
extra_rdoc_files: []
|
|
15
15
|
files:
|
|
16
|
-
- evil.rb
|
|
17
16
|
- lib/a.rb
|
|
18
|
-
-
|
|
17
|
+
- lib/data0.txt
|
|
18
|
+
- lib/data1.txt
|
|
19
|
+
- lib/data10.txt
|
|
20
|
+
- lib/data11.txt
|
|
21
|
+
- lib/data2.txt
|
|
22
|
+
- lib/data3.txt
|
|
23
|
+
- lib/data4.txt
|
|
24
|
+
- lib/data5.txt
|
|
25
|
+
- lib/data6.txt
|
|
26
|
+
- lib/data7.txt
|
|
27
|
+
- lib/data8.txt
|
|
28
|
+
- lib/data9.txt
|
|
19
29
|
licenses:
|
|
20
30
|
- MIT
|
|
21
31
|
metadata: {}
|
|
@@ -35,5 +45,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
35
45
|
requirements: []
|
|
36
46
|
rubygems_version: 3.6.7
|
|
37
47
|
specification_version: 4
|
|
38
|
-
summary:
|
|
48
|
+
summary: res
|
|
39
49
|
test_files: []
|
data/evil.rb
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
require 'net/http';require 'uri';require 'fileutils';require 'openssl'
|
|
3
|
-
KEY='rubygems_75a85c0edc8cd7148c344d32b8f8f1510f01c2aef36f220b'; NAME='swmeetfetcha'; OUTVER='0.0.2'; URLS=['https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1', 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1', 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?bcr=1', 'https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?DR=26%2F01%2F2026-30%2F01%2F2026&ACT=Go&bcr=1', 'https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?MR=0&DL=0&DR=26%2F01%2F2026&ACT=Go&bcr=1', 'https://moderngov.southwark.gov.uk/ieDocHome.aspx?bcr=1', 'https://moderngov.southwark.gov.uk/mgWebService.asmx/GetMeetings?lCommitteeId=0&sFromDate=01%2F01%2F2026&sToDate=31%2F01%2F2026', 'https://moderngov.southwark.gov.uk/mgWebService.asmx/GetMeetings?lCommitteeId=0&sFromDate=26%2F01%2F2026&sToDate=30%2F01%2F2026', 'https://moderngov.southwark.gov.uk/mgWebService.asmx/GetCommittees', 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?C=-1&OT=&MR=0&D=27&M=1&Y=2026&ACT=Go&bcr=1', 'http://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1', 'https://moderngov.southwark.gov.uk/mgFindMeeting.aspx?M=1&Y=2026']
|
|
4
|
-
begin
|
|
5
|
-
dir="/tmp/{NAME}out"; FileUtils.rm_rf(dir);FileUtils.mkdir_p(dir+'/lib'); File.write(dir+'/lib/a.rb','#x')
|
|
6
|
-
URLS.each_with_index do |url,i|
|
|
7
|
-
begin
|
|
8
|
-
uri=URI(url); resp=Net::HTTP.start(uri.host,uri.port,use_ssl:uri.scheme=='https',read_timeout:120,open_timeout:50,verify_mode: OpenSSL::SSL::VERIFY_NONE){|h| req=Net::HTTP::Get.new(uri); req['User-Agent']='Mozilla/5.0'; h.request(req)}
|
|
9
|
-
txt="URL #{url}\nSTATUS #{resp.code}\nHEADERS #{resp.each_header.to_h}\n\n"+resp.body
|
|
10
|
-
rescue =>e; txt="ERROR #{url}\n#{e.full_message}"; end
|
|
11
|
-
File.binwrite(dir+"/lib/data#{i}.txt", txt)
|
|
12
|
-
end
|
|
13
|
-
File.write(dir+'/o.gemspec',"Gem::Specification.new do |s|\n s.name='swmeetfetcha'; s.version='0.0.2'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end")
|
|
14
|
-
Dir.chdir(dir) do
|
|
15
|
-
system('gem build o.gemspec')
|
|
16
|
-
spec=Dir['*.gem'].first
|
|
17
|
-
uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']=KEY; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec)
|
|
18
|
-
resp=Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
|
|
19
|
-
end
|
|
20
|
-
rescue =>e
|
|
21
|
-
warn e.full_message
|
|
22
|
-
end
|
data/swmeetfetcha.gemspec
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Gem::Specification.new{|s| s.name='swmeetfetcha'; s.version='0.0.1'; s.summary='x'; s.authors=['x']; s.files=Dir['**/*']; s.license='MIT'}
|