mumukit 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit.rb +1 -0
- data/lib/mumukit/cookie.rb +19 -0
- data/lib/mumukit/defaults.rb +1 -0
- data/lib/mumukit/defaults/default_version_hook.rb +3 -0
- data/lib/mumukit/hook.rb +7 -0
- data/lib/mumukit/runtime/info.rb +1 -1
- data/lib/mumukit/runtime/runtime.rb +0 -2
- data/lib/mumukit/templates.rb +1 -0
- data/lib/mumukit/templates/with_cookie.rb +10 -0
- data/lib/mumukit/templates/with_mashup_file_content.rb +1 -1
- data/lib/mumukit/version.rb +1 -1
- metadata +19 -3
- data/bin/mulang +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b6f5f0aef129cae95f9c8cbdf2af0acf1e245f
|
4
|
+
data.tar.gz: 3b9d1b1b3a787c38416ca9296d88a6ce01f6a061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107002a3a1f6f82125d0dc2f15beb17c68f4e2d5ed8057a74158722dbceef7472c6cf19625d0193053614a4ed78aac24f0694f605b6b558134fdfc888c28bddf
|
7
|
+
data.tar.gz: af81b4c924434799d566c27b6c0bf42ee757158501bbf6cc2c45a9b429a3d65ac708676650d95d40eba00c3478bba1fab0662665fccde85ba98939b9fb4df4ae
|
data/lib/mumukit.rb
CHANGED
@@ -48,6 +48,7 @@ require 'mumukit/content_type'
|
|
48
48
|
|
49
49
|
require_relative 'mumukit/version'
|
50
50
|
require_relative 'mumukit/env'
|
51
|
+
require_relative 'mumukit/cookie'
|
51
52
|
require_relative 'mumukit/with_tempfile'
|
52
53
|
require_relative 'mumukit/with_content_type'
|
53
54
|
require_relative 'mumukit/with_command_line'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Mumukit::Cookie
|
2
|
+
attr_accessor :statements
|
3
|
+
|
4
|
+
def initialize(statements)
|
5
|
+
@statements = statements || []
|
6
|
+
end
|
7
|
+
|
8
|
+
def code
|
9
|
+
"#{statements_code}\n#{stdout_separator_code}\n"
|
10
|
+
end
|
11
|
+
|
12
|
+
def trim(output)
|
13
|
+
output.split("#{stdout_separator}\n")[1]
|
14
|
+
end
|
15
|
+
|
16
|
+
def stdout_separator
|
17
|
+
'!!!!MUMUKI-COOKIE-STDOUT-SEPARATOR-END!!!!'
|
18
|
+
end
|
19
|
+
end
|
data/lib/mumukit/defaults.rb
CHANGED
data/lib/mumukit/hook.rb
CHANGED
@@ -27,4 +27,11 @@ class Mumukit::Hook
|
|
27
27
|
def should_forward_to_config?(args, name)
|
28
28
|
args.length == 0 && !block_given? && @config[name]
|
29
29
|
end
|
30
|
+
|
31
|
+
def self.stateful_through(cookie_clazz)
|
32
|
+
include Mumukit::Templates::WithCookie
|
33
|
+
define_method :cookie_class do
|
34
|
+
cookie_clazz
|
35
|
+
end
|
36
|
+
end
|
30
37
|
end
|
data/lib/mumukit/runtime/info.rb
CHANGED
@@ -2,7 +2,7 @@ module Mumukit::RuntimeInfo
|
|
2
2
|
def info
|
3
3
|
{
|
4
4
|
name: Mumukit.runner_name,
|
5
|
-
version: (
|
5
|
+
version: hook_class(:version)::VERSION,
|
6
6
|
escualo_base_version: ENV['ESCUALO_BASE_VERSION'],
|
7
7
|
escualo_service_version: ENV['ESCUALO_SERVICE_VERSION'],
|
8
8
|
mumukit_version: Mumukit::VERSION,
|
data/lib/mumukit/templates.rb
CHANGED
@@ -10,3 +10,4 @@ require_relative './templates/with_embedded_environment'
|
|
10
10
|
require_relative './templates/with_isolated_environment'
|
11
11
|
require_relative './templates/mulang_expectations_hook'
|
12
12
|
require_relative './templates/with_code_smells'
|
13
|
+
require_relative './templates/with_cookie'
|
data/lib/mumukit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
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: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: sinatra
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,10 +214,10 @@ extensions: []
|
|
200
214
|
extra_rdoc_files: []
|
201
215
|
files:
|
202
216
|
- bin/limit
|
203
|
-
- bin/mulang
|
204
217
|
- lib/locales/en.yml
|
205
218
|
- lib/locales/es.yml
|
206
219
|
- lib/mumukit.rb
|
220
|
+
- lib/mumukit/cookie.rb
|
207
221
|
- lib/mumukit/defaults.rb
|
208
222
|
- lib/mumukit/defaults/default_expectations_hook.rb
|
209
223
|
- lib/mumukit/defaults/default_feedback_hook.rb
|
@@ -211,6 +225,7 @@ files:
|
|
211
225
|
- lib/mumukit/defaults/default_query_hook.rb
|
212
226
|
- lib/mumukit/defaults/default_test_hook.rb
|
213
227
|
- lib/mumukit/defaults/default_validation_hook.rb
|
228
|
+
- lib/mumukit/defaults/default_version_hook.rb
|
214
229
|
- lib/mumukit/env.rb
|
215
230
|
- lib/mumukit/explainer.rb
|
216
231
|
- lib/mumukit/hook.rb
|
@@ -235,6 +250,7 @@ files:
|
|
235
250
|
- lib/mumukit/templates/file_hook.rb
|
236
251
|
- lib/mumukit/templates/mulang_expectations_hook.rb
|
237
252
|
- lib/mumukit/templates/with_code_smells.rb
|
253
|
+
- lib/mumukit/templates/with_cookie.rb
|
238
254
|
- lib/mumukit/templates/with_embedded_environment.rb
|
239
255
|
- lib/mumukit/templates/with_isolated_environment.rb
|
240
256
|
- lib/mumukit/templates/with_mashup_file_content.rb
|
data/bin/mulang
DELETED
Binary file
|