mumuki-bash-runner 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/try_hook.rb +11 -11
  3. data/lib/version_hook.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db5cf0f24de7c5d1b48ac6f6d2e731b7ad37e1ffb925cf6b5e7fc0b86d5edf12
4
- data.tar.gz: 8e93f26e6319a4623c057f15b8068a6ed3c2e7d69f3f5220e6ea38593459a080
3
+ metadata.gz: d7e943e721047ea7b8eae3140aed5fd786a816ea9c2be1c4b6fcaf746a6270c6
4
+ data.tar.gz: 739ba7b8e688951e1b92381b2b601be60691032a1933cd8bad999dfccad4a6c1
5
5
  SHA512:
6
- metadata.gz: c46e7741ddb6c21e97cccb1cc6b24ebee3c523cd114461d61f4e83570dcfe9919125f1f7d5f3eb18ff3ccc4a03b843a21671f2141d6c70f5b7f388345aaf27b3
7
- data.tar.gz: 7915c353e051678ecb65aa0ee9a51874097aca67388be6868f710c0995c6270566f371fd15057ecb772b8a4b0bb384eb52fc37c6d956e0789d495bc8d519e5a6
6
+ metadata.gz: e2872b0805e592ed64aa75747905f9fb8cf79ef95769665652a54ca30d4430e8742eb497b4062403893c24aba91a9327d69795016378b4bb58dbe077a60074c3
7
+ data.tar.gz: f642ca1de76746c5402453dc1af69d2d4604ed5b8b87860d6b3f13cab469e680643168a8afb500e46a4259d9dd1747c499b38e135134f84dd75c544ed14f0760
@@ -6,17 +6,17 @@ class BashTryHook < Mumukit::Templates::TryHook
6
6
  end
7
7
 
8
8
  def compile_file_content(r)
9
- <<bash.split("\n").map { |it| "#{it} 2>&1" }.join("\n")
10
- echo #{extra_separator}
11
- #{r.extra}
12
- echo #{cookie_separator}
13
- #{(r.cookie || []).join("\n")}
14
- echo #{query_separator}
15
- #{r.query}
16
- echo $?
17
- echo #{goal_separator}
18
- #{r.goal.with_indifferent_access[:query]}
19
- bash
9
+ <<~bash
10
+ (echo #{extra_separator}
11
+ #{r.extra}
12
+ echo #{cookie_separator}
13
+ #{(r.cookie || []).join("\n")}
14
+ echo #{query_separator}
15
+ #{r.query}
16
+ echo $?
17
+ echo #{goal_separator}
18
+ #{r.goal.with_indifferent_access[:query]}) 2>&1
19
+ bash
20
20
  end
21
21
 
22
22
  def command_line(filename)
@@ -1,3 +1,3 @@
1
1
  module BashVersionHook
2
- VERSION = '1.1.6'
2
+ VERSION = '1.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-bash-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - mumuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.0.3
126
+ rubygems_version: 3.0.4
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: bash Runner for Mumuki