mumukit 2.41.0 → 2.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50c02218ee8201dec0cafb926af1244f37005ca30defbf277647e8f578b80b5f
4
- data.tar.gz: ca71b312b3b89e4af2601a30248d25e218c2cfa2e51144f839996e12d097bdf8
3
+ metadata.gz: 13101751c0e9c513185940d8bc107133d1615fbb308b134c1d355673f99ad2a1
4
+ data.tar.gz: ba07a835f81ec89e070c0fefe7b9907bc7ecb5a100ff6d9b5c05577ecabda72b
5
5
  SHA512:
6
- metadata.gz: 1d7a38c84758cfc37544a392215164550c8adf7885d7fc4bc836e96dada9436a4f1a542b7c7ccc82dde5590d787e8f906b9d7fef711b3db1b2e27e9b21628b8d
7
- data.tar.gz: aa52beb81dff6b2986ac84aaa400c15cd3bec40f6947b8286b9b62ec2eb315bce5a7ff04b99c89927339cd54021e34ec37c583a5927eb98515337dacb9d4cca8
6
+ metadata.gz: c2842baf00a47c75db0161f2a5bccbf293740c46310a845b219d983d081c314743573091550074b9c9ea174a894c273cd018b19dfeaf893e00b75c4019684482
7
+ data.tar.gz: 51618512772abaa8542ae5f58ea6a01b13f724fda80256baad645d1390cf99c647023d933a51823c27412d5de92e4eb925a9b2f198c2ea789fdeef6ea057aa9f
@@ -11,22 +11,21 @@ module Mumukit
11
11
  dirnames = filenames.map { |it| Pathname.new(it).dirname }.uniq
12
12
 
13
13
  binds = dirnames.map { |it| "#{it}:#{it}" }
14
- volumes = Hash[dirnames.map { |it| [[it, {}]] }]
15
14
 
16
15
  command = yield(*filenames)
17
16
  command = command.split if command.is_a? String
18
17
 
19
- configure_container! command, binds, volumes
18
+ configure_container! command, binds
20
19
  end
21
20
 
22
- def configure_container!(command, binds, volumes)
21
+ def configure_container!(command, binds)
23
22
  self.container = Docker::Container.create(
24
- 'Image' => Mumukit.config.docker_image,
25
- 'Cmd' => command,
26
- 'NetworkDisabled' => true,
27
- 'HostConfig' => {
28
- 'Binds' => binds},
29
- 'Volumes' => volumes)
23
+ image: Mumukit.config.docker_image,
24
+ cmd: command,
25
+ hostConfig: {
26
+ binds: binds
27
+ },
28
+ networkDisabled: true)
30
29
  end
31
30
 
32
31
  def run!
@@ -1,3 +1,3 @@
1
1
  module Mumukit
2
- VERSION = '2.41.0'
2
+ VERSION = '2.42.0'
3
3
  end
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.41.0
4
+ version: 2.42.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: 2021-03-06 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.22.2
159
+ version: '1.25'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.22.2
166
+ version: '1.25'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: excon
169
169
  requirement: !ruby/object:Gem::Requirement