judge_system 0.1.3 → 0.1.4

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: b4f9ab3c04a0b530005fe0613709730e0300cd5f
4
- data.tar.gz: 8924e7156b77e4acb903dd3e04f78b596a1e5efb
3
+ metadata.gz: c73121c4708109516c5cdcafc94d9c3f76d6888d
4
+ data.tar.gz: 744db4db054f41ad05d6525814c6916239da0f60
5
5
  SHA512:
6
- metadata.gz: c4e83a3cea4fefa8a86040c693b961efa6712b823282f53fa3340efef5ca417ddcf71a4771d9044276408078fa79d8de6087308603b3f2fc2703bcc29bf76ed0
7
- data.tar.gz: e5873b973165948edebd439759e1fda1e4490669aa938b5a15d854b70b461bbb064d2824ed2592cb8a5bc9cc950bcb01f45118b3f2e0a4131c71527595edd9ce
6
+ metadata.gz: 92cc7bbcf994f7ea2c54643ca4110e22e4ee02bf4c926ba8d2233de12208af0601dd4d97594301b2cf258b0f27732722bd3f2b3f03e6b2884b4bd10fdcd7327c
7
+ data.tar.gz: 61b643ba3f4f11a82508af9777fff50ffbe36029ef86474b38f142faa4d104ecc9fef4fa078a0093a38ba583c87b57df455d6e7a701b3b17e1d4192188bbe84e
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+
26
26
 
27
27
  ## Development
28
28
 
@@ -1,3 +1,3 @@
1
1
  module JudgeSystem
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/judge_system.rb CHANGED
@@ -37,7 +37,8 @@ module JudgeSystem
37
37
 
38
38
  module Wandbox
39
39
  def run lang, code, input, time
40
- sys = File.open("./lib/compile_systems/#{lang}_system.cpp", "r").read
40
+ path = Gem::Specification.find_by_path('judge_system').full_gem_path
41
+ sys = File.open("#{path}/lib/compile_systems/#{lang}_system.cpp", "r").read
41
42
  data = nil
42
43
  stdin = code + "\n<$><*><$><*><$><*><$><*><$><*><$><*><$>\n" + input
43
44
  begin
data/test.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'judge_system'
2
+ p JudgeSystem.judge_result 'rb', 'puts 2', '2', '', 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judge_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshifumi Kiyono
@@ -76,6 +76,7 @@ files:
76
76
  - lib/compile_systems/rb_system.cpp
77
77
  - lib/judge_system.rb
78
78
  - lib/judge_system/version.rb
79
+ - test.rb
79
80
  homepage: https://github.com/getty104/judge_system
80
81
  licenses:
81
82
  - MIT