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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73f75c21a90cfa0edbce574ce269414b66684172
4
- data.tar.gz: 3003813f791edcf17e8d07916b4b9a4693ef76b6
3
+ metadata.gz: 35627ff595b801dfb99244f29b5db4b3449482e5
4
+ data.tar.gz: 06ba0b3183798f28a5cb4ccf26ff05fe4209eaaa
5
5
  SHA512:
6
- metadata.gz: db4cdb798b4281821df3c2e2a44173b2b732876a966c9cb1c116a364f538c79449d8a2d7d096122e7dbe0a54852a1696339226fa7dc9c77bbbcfd85b6952eeaa
7
- data.tar.gz: 8d607751ea5bc26659587e0c3729b3423a94b16116de5316e93fbf5a47b67600774d18bd5d6154b806708674f6655666c4f03c0026935a055849d2d2713fff92
6
+ metadata.gz: 2a246d7e22a19d7f5e5fe848b9005e5941a5273b6fe084cbf9071d223e16faa840352aa212a5ff768895b409aed196e906201e0da20e75e58042079d30916bcd
7
+ data.tar.gz: 6dd771ae982100268ee9f5daa75186f50c645f9a634c5362dc06473a6a0ef1b64f79337a53ca98a6a5be298703a47dc6d728faa4f7035f123b07d8d2dc41b302
data/lib/eval-in.rb CHANGED
@@ -8,7 +8,7 @@ require_relative "eval-in/exceptions"
8
8
  # @since 0.0.1
9
9
  module EvalIn
10
10
  # The library's current version.
11
- VERSION = "0.0.5"
11
+ VERSION = "0.0.6"
12
12
 
13
13
  # Evaluate some code in a given language.
14
14
  # @example
@@ -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.5
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-17 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri