mumuki-ruby-runner 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metadata_hook.rb +1 -1
- data/lib/query_hook.rb +9 -2
- data/lib/version.rb +1 -1
- 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: 4a2bedb07a8e9c63e70eb70e83d93b50f7a60273
|
4
|
+
data.tar.gz: 0b5b54432935f0c91ae89bf6a6c7e125740d7953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1600a9ae10500f298096e123f99695afcb1b466daf570f82a4974f2f54006bdd9046ca84a920bca41219bdbc8fced61d707b51f8f87a6e50819ed7581c5d048
|
7
|
+
data.tar.gz: db6869d69ea366d1c38a9db756a9b5d6365ae277512c9515c7dd9a377e5a1e459a076f1494cc5a4d4b6840a8c529150c9a21926e8515d2920111bac2295352eb
|
data/lib/metadata_hook.rb
CHANGED
data/lib/query_hook.rb
CHANGED
@@ -63,10 +63,17 @@ ruby
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def error_output?(result)
|
66
|
-
|
66
|
+
error_regexp =~ result
|
67
67
|
end
|
68
68
|
|
69
69
|
def sanitize_error_output(result)
|
70
|
-
result.
|
70
|
+
result.gsub(error_regexp, '').strip
|
71
|
+
end
|
72
|
+
|
73
|
+
def error_regexp
|
74
|
+
# Matches lines like:
|
75
|
+
# * from /tmp/mumuki.compile20170404-3221-1db8ntk.rb:17:in `<main>'
|
76
|
+
# * /tmp/mumuki.compile20170404-3221-1db8ntk.rb:17:in `respond_to?':
|
77
|
+
/(from )?(.)+\.rb:(\d)+:in `([\w|<|>|?|!|+|*|-|\/|=]+)'(:)?/
|
71
78
|
end
|
72
79
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-ruby-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|