rbbrs24 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.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data/lib/rbbrs24.rb +40 -0
- data.tar.gz.sig +0 -0
- metadata +72 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b4fd0913a748d2d67b4a358ccca05d3bbfb5a5136449db11a1fc081be4a85cdb
|
4
|
+
data.tar.gz: 743ab891f1d8860f17476cc1e699a27cf8cb836efaaf02301907d63488c05f35
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e6f994155a751be9fb20cad7dfc2df92d207435caeed26a02abc9a08c051869e7a79d8abff01abfdbbd2a3d2f1a750d57b12d9b310baa26d97e6da763d03db8
|
7
|
+
data.tar.gz: 2a441c0c2bad2029d7aa72fc66439131d0f9a047255a6a6aa32cd786394ba65ddf27cafb9b0852e16638fd7c7d558f1958846242e157720c2a4d895ef1753abb
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/lib/rbbrs24.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# file: rbbrs24.rb
|
4
|
+
|
5
|
+
# description: Experiment with submitting Ruby code from the browser to
|
6
|
+
# be executed on the server. Recommended for private use only.
|
7
|
+
|
8
|
+
class Rbbrs24
|
9
|
+
|
10
|
+
def initialize(action: 'run')
|
11
|
+
@action = action
|
12
|
+
end
|
13
|
+
|
14
|
+
def render_input()
|
15
|
+
%Q(
|
16
|
+
<html>
|
17
|
+
<head>
|
18
|
+
<style>
|
19
|
+
form {background-color: #e34}
|
20
|
+
textarea {background-color: #eee}
|
21
|
+
</style>
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
<div>
|
25
|
+
<form action="#{@action}" method="get" target="output">
|
26
|
+
<textarea autofocus="true" name="input1"></textarea>
|
27
|
+
<input type="submit" value="run"/>
|
28
|
+
</form>
|
29
|
+
<iframe name="output" id="output"/>
|
30
|
+
</div>
|
31
|
+
</body>
|
32
|
+
</html>
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
def evalx(s)
|
37
|
+
eval s
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rbbrs24
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Robertson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEljCCAv6gAwIBAgIBATANBgkqhkiG9w0BAQsFADBIMRIwEAYDVQQDDAlnZW1t
|
14
|
+
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
+
8ixkARkWAmV1MB4XDTIzMDIyNDA4NTkwNloXDTI0MDIyNDA4NTkwNlowSDESMBAG
|
16
|
+
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
|
+
EjAQBgoJkiaJk/IsZAEZFgJldTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoC
|
18
|
+
ggGBANw9VYYEHWVKO5QGzul0wd9uX3twNMG/fkrI2KFgppkKEWOiHsJsF1C7p8Mj
|
19
|
+
oaBqSiZ6ZJnPoiqT9dDxERILeHOSh3zjdNeTMrBAzzRb2rZPKdExB9eV2T/OcjNg
|
20
|
+
OgAlaCsWRmYBkZHjDvqN4aQdyjEpXwIChTHJgp4CfxrsUl+N2EBIrwqloISpOsgo
|
21
|
+
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36gPSibzpm5Kc90b/P0
|
36
|
+
HD8BA/DDxAf1FZOrlDKDae6nvRkB4p6RszXYsgPWtr1rO6djhdVNZb2/nIY1JnJ5
|
37
|
+
/y6Aj1To3h8KJ06lUcCJdTqrrLulZoqPxZw=
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
40
|
+
dependencies: []
|
41
|
+
description:
|
42
|
+
email: digital.robertson@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- lib/rbbrs24.rb
|
48
|
+
homepage: https://github.com/jrobertson/rbbrs24
|
49
|
+
licenses:
|
50
|
+
- MIT
|
51
|
+
metadata: {}
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubygems_version: 3.4.4
|
68
|
+
signing_key:
|
69
|
+
specification_version: 4
|
70
|
+
summary: Experiment with submitting Ruby code from the browser to be executed on the
|
71
|
+
server. Recommended for private use only.
|
72
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|