ruby-eval-in 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eval-in.rb +1 -1
- data/lib/eval-in/result.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35627ff595b801dfb99244f29b5db4b3449482e5
|
4
|
+
data.tar.gz: 06ba0b3183798f28a5cb4ccf26ff05fe4209eaaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a246d7e22a19d7f5e5fe848b9005e5941a5273b6fe084cbf9071d223e16faa840352aa212a5ff768895b409aed196e906201e0da20e75e58042079d30916bcd
|
7
|
+
data.tar.gz: 6dd771ae982100268ee9f5daa75186f50c645f9a634c5362dc06473a6a0ef1b64f79337a53ca98a6a5be298703a47dc6d728faa4f7035f123b07d8d2dc41b302
|
data/lib/eval-in.rb
CHANGED
data/lib/eval-in/result.rb
CHANGED
@@ -29,6 +29,7 @@ module EvalIn
|
|
29
29
|
"perl" => "perl/perl-5.20.0",
|
30
30
|
"python" => "python/cpython-3.4.1",
|
31
31
|
"python2" => "python/cpython-2.7.8",
|
32
|
+
"racket" => "racket/racket-6.10.1",
|
32
33
|
"ruby" => "ruby/mri-2.4",
|
33
34
|
"slash" => "slash/slash-head",
|
34
35
|
"nasm" => "assembly/nasm-2.07",
|
@@ -77,6 +78,9 @@ module EvalIn
|
|
77
78
|
raise ConnectionError, result unless result.is_a? Net::HTTPFound
|
78
79
|
|
79
80
|
@url = URI(result["location"])
|
81
|
+
html = Nokogiri::HTML(Net::HTTP.get(@url))
|
82
|
+
@output = html.css("pre").last.text
|
83
|
+
@status = html.css("p")[1].text
|
80
84
|
end
|
81
85
|
end
|
82
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-eval-in
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|